ext4: fix bug_on in ext4_writepages

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003839: ext4: fix bug_on in ext4_writepages. Affects Kernel versions < de1732b5c1693ad489c5d254f124f67cb775f37d. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The ext4 package is a file system driver for the Linux kernel. It provides support for the fourth extended file system (ext4), which is commonly used in Linux distributions. The ext4 file system offers improved performance, scalability, and reliability compared to its predecessors. However, a vulnerability has been discovered in the ext4_writepages function, which could potentially lead to security issues.

Vulnerability Detail

The vulnerability in the ext4_writepages function arises from a bug_on condition. This condition can be triggered when writing pages to the ext4 file system, potentially resulting in a kernel panic or other unexpected behavior. An attacker may be able to exploit this vulnerability to crash the system or execute arbitrary code with elevated privileges. The impact and attack plausibility of this vulnerability have not been proven yet. It is important to note that this vulnerability has been fixed in the Linux Kernel version v4.19.247 by commit de1732b5c1693ad489c5d254f124f67cb775f37d.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended approach is to apply the fix by updating the Linux Kernel to the patched version.

Conclusion

In conclusion, the ext4 package in the Linux Kernel has a vulnerability in the ext4_writepages function, which can be triggered by a bug_on condition. This vulnerability has the potential to cause a kernel panic or enable arbitrary code execution. It is crucial to update the Linux Kernel to version v4.19.247 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ext4 is a file system driver for the Linux kernel, providing support for the fourth extended file system (ext4). It offers improved performance, scalability, and reliability compared to previous versions.

The ext4_writepages function is responsible for writing pages to the ext4 file system. It is a critical component of the ext4 driver.

bug_on is a macro in the Linux kernel that checks for a specific condition and triggers a kernel panic if the condition is true. It is used for debugging purposes and to catch potential issues.

The vulnerability in ext4_writepages could lead to a kernel panic or other unexpected behavior, potentially allowing an attacker to crash the system or execute arbitrary code with elevated privileges.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback