ext4: Fix ext4_mb_mark_bb() with flex_bg with fast_commit

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001792: ext4: fix ext4_mb_mark_bb() with flex_bg with fast_commit. Affects Kernel versions < 6a6beb074186a0452368a023a261c7d0eaebe838. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 is known for its performance, scalability, and reliability. However, a vulnerability has been discovered in the ext4_mb_mark_bb() function when used with flex_bg and fast_commit. This vulnerability could potentially be exploited by an attacker to cause a denial of service or execute arbitrary code.

Vulnerability Detail

The vulnerability in the ext4_mb_mark_bb() function arises when flex_bg and fast_commit are enabled. The function is responsible for marking a block as bad in the ext4 file system. However, due to a coding error, the function does not handle flex_bg and fast_commit correctly, leading to a potential security issue. An attacker could exploit this vulnerability by crafting a malicious ext4 file system image that triggers the faulty code path, resulting in a denial of service or arbitrary code execution.

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 recommended to apply the fix by updating the Linux Kernel to the latest version.

Conclusion

The ext4 package is vulnerable to a security issue in the ext4_mb_mark_bb() function when used with flex_bg and fast_commit. This vulnerability has been fixed in the Linux Kernel version v5.15.33. Users are advised to update their Linux Kernel to the latest version to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The ext4 package is a file system driver for the Linux kernel that provides support for the ext4 file system.

flex_bg and fast_commit are features of the ext4 file system. flex_bg allows for flexible block group sizes, while fast_commit improves file system performance by reducing the number of disk writes.

This vulnerability could potentially be exploited by an attacker to cause a denial of service or execute arbitrary code.

Yes, this vulnerability has been fixed in the Linux Kernel version v5.15.33 by commit 6a6beb074186a0452368a023a261c7d0eaebe838.

To update your Linux Kernel, you can download the latest kernel source code from the official Linux Kernel repository and compile it according to the provided instructions.

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