ext4: Fix ext4_mb_mark_bb() with flex_bg with fast_commit
Summary
GSD-2022-1002051: ext4: fix ext4_mb_mark_bb() with flex_bg with fast_commit. Affects Kernel versions < cd6d719534af993210306f8a13f9cb3e615f7c8d. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The ext4 package is a file system driver for the Linux kernel. It provides support for the ext4 file system, which is commonly used in Linux distributions. The ext4 file system offers improved performance and reliability compared to its predecessor, ext3. It supports features such as journaling, large file and partition sizes, and extended attributes. However, a vulnerability has been discovered in the ext4_mb_mark_bb() function when used with flex_bg and fast_commit configurations.
Vulnerability Detail
The ext4_mb_mark_bb() function in the ext4 package is vulnerable when flex_bg and fast_commit configurations are enabled. This vulnerability could allow an attacker to execute arbitrary code or cause a denial of service by corrupting the file system metadata. The vulnerability originates from a flaw in the implementation of the function, which fails to properly handle certain scenarios when marking block bitmaps. This can lead to memory corruption and subsequent exploitation.
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 known workaround for this vulnerability. It is necessary to update the Linux kernel to the fixed version.
Conclusion
The ext4 package is vulnerable to a flaw in the ext4_mb_mark_bb() function when used with flex_bg and fast_commit configurations. This vulnerability can be mitigated by updating the Linux kernel to version v5.10.110 or later. It is important to promptly apply the fix to ensure the security and stability of the file system. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The ext4 package is a file system driver for the Linux kernel, providing support for the ext4 file system.
Flex_bg is a feature in ext4 that allows flexible block group sizes, while fast_commit is a feature that improves file system performance by reducing the number of disk writes during metadata updates.
This vulnerability could allow an attacker to execute arbitrary code or cause a denial of service by corrupting the file system metadata.
To fix this vulnerability, update the Linux kernel to version v5.10.110 or later, which includes the necessary fix.
No, there is no known workaround for this vulnerability. Updating the Linux kernel is the recommended solution.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.