Slab-Out-of-Bounds Vulnerability in Linux Kernel Package: linux

linux Updated 02 Oct 2025

Summary

12/07/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-40955: In the Linux kernel, the following vulnerability has been resolved: ext4: fix slab-out-of-bounds in ext4_mb_find_good_group_avg_frag_lists() We can trigger a slab-out-of-bounds with the following commands: mkfs.ext4 -F /... Affects linux versions < 6.9.7-1. Fixed in 6.9.7-1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The 'linux' package is a core component of the Debian operating system, providing the Linux kernel that manages hardware resources and enables software applications to run. It is essential for system stability and performance. This vulnerability affects versions of the Linux kernel in Debian 13 and 14, specifically related to the ext4 filesystem, which is widely used for managing disk storage.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the ext4 filesystem that can lead to a slab-out-of-bounds condition. This occurs when an oversized value is set for the 'mb_group_prealloc' parameter, allowing an out-of-bounds memory access. This can be triggered by specific commands that manipulate filesystem parameters, potentially leading to system instability or crashes. The issue arises from improper handling of memory allocation and can be exploited by a local attacker to cause denial of service or other unintended behavior.

How To Fix

Minimum fixed version

6.9.7-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid setting the 'mb_group_prealloc' parameter to excessively high values. Instead, use a value within the acceptable range to prevent triggering the slab-out-of-bounds condition.

Conclusion

The slab-out-of-bounds vulnerability in the Linux kernel's ext4 filesystem poses significant risks to system stability and security. It is crucial to update the affected 'linux' package to the patched version to safeguard against potential exploits. Users should also be cautious with filesystem parameters to avoid triggering this vulnerability.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A slab-out-of-bounds vulnerability occurs when a program accesses memory outside the allocated bounds of a data structure, potentially leading to crashes or security issues.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without needing to sign up.

The risks include potential system crashes, data corruption, and unauthorized access to system resources, which can be exploited by local attackers.

Yes, the vulnerability can be triggered using commands such as 'mkfs.ext4 -F /dev/$disk 10G' followed by setting 'mb_group_prealloc' to an excessively high value.

If immediate updates are not possible, ensure that you do not set the 'mb_group_prealloc' parameter to high values as a temporary measure to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.9.7-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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