Linux Kernel
CVE-2024-35948
HIGH
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local vector required to mount crafted volume; low privilege sufficient via user-space mount delegation; no user interaction; full kernel memory impact possible from bounds-check bypass.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
5DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
bcachefs: Check for journal entries overruning end of sb clean section
Fix a missing bounds check in superblock validation.
Note that we don't yet have repair code for this case - repair code for individual items is generally low priority, since the whole superblock is checksummed, validated prior to write, and we have backups.
AnalysisAI
Missing bounds validation in the bcachefs filesystem subsystem of the Linux kernel allows a local attacker with low privileges to trigger kernel memory corruption by mounting a crafted bcachefs volume with malformed journal entries in the superblock clean section. Affected versions span the Linux kernel up through 6.9-rc5. No public exploit code has been identified and EPSS sits at 0.23% (14th percentile), indicating low exploitation probability despite the high CVSS score; no active exploitation has been reported via CISA KEV.
Technical ContextAI
bcachefs is a copy-on-write filesystem merged into the Linux kernel mainline in 6.7. Its superblock contains a 'clean section' that stores journal entries describing the last clean unmount state. During superblock validation, the kernel iterates over these embedded journal entries; the missing bounds check means a maliciously crafted superblock can describe journal entries that extend beyond the end of the clean section buffer. CWE-400 (Uncontrolled Resource Consumption) is assigned by NVD, though the root cause is better characterized as a missing input-validation guard (CWE-125/CWE-1285) - an over-read or walk past a buffer boundary during parsing of untrusted on-disk data. CPE data confirms affected products are cpe:2.3:o:linux:linux_kernel across the stable tree and 6.9-rc1 through 6.9-rc5.
RemediationAI
The upstream fix is available as commit fcdbc1d7a4b638e5d5668de461f320386f3002aa in the Linux stable tree (https://git.kernel.org/stable/c/fcdbc1d7a4b638e5d5668de461f320386f3002aa); an exact downstream stable release version is not confirmed from available input data - consult your distribution's security tracker (e.g., Ubuntu USN, RHEL RHSA, Debian DSA) for the patched kernel package version. As a compensating control where patching is not immediately possible, restrict unprivileged mounting of filesystems by disabling udisks automount for bcachefs volumes and setting the kernel parameter 'user_allow_other=0' in fuse.conf to reduce attack surface. Note that bcachefs is a relatively new filesystem and may not be enabled by default in all distributions, so verifying whether bcachefs kernel module is loaded (lsmod | grep bcachefs) can inform exposure.
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today