CVE-2024-35948·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9
- Published
- 2024-05-20
Affected versions
From: 6.7
Until: 6.9
Fixed in: 6.9
How to fix this CVE
Update your Linux kernel to version 6.9 or later to patch a bounds checking vulnerability in bcachefs superblock validation. This vulnerability could allow local attackers to trigger memory corruption through malformed journal entries in the superblock clean section. Apply the kernel update at your earliest convenience, as it requires a system reboot to take effect.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version; versions 6.7 through 6.8.x are vulnerable
- Verify bcachefs is in use by checking 'grep bcachefs /proc/filesystems' or 'mount | grep bcachefs'
- Search system logs with 'sudo journalctl -u kernel | grep -i "bcachefs\|bounds\|validation"' for any superblock validation errors
- After patching, confirm the new kernel is running with 'uname -r' and verify it returns 6.9 or later
FAQ
What is CVE-2024-35948?
CVE-2024-35948 is a memory safety vulnerability in the Linux kernel's bcachefs filesystem implementation. A missing bounds check in superblock validation allows malformed journal entries to overrun the clean section, potentially triggering memory corruption or denial of service on systems using bcachefs.
Is CVE-2024-35948 being actively exploited?
No, this vulnerability is not listed in the CISA KEV catalog and no public exploit code is available. However, it remains a high-severity issue that should be patched promptly due to its potential for local privilege escalation.
What versions of Kernel are affected by CVE-2024-35948?
Linux kernel versions 6.7 through 6.8.x are affected. Version 6.9 and later include the fix.
How do I check if my server is vulnerable to CVE-2024-35948?
Run 'uname -r' to check your kernel version. If it shows 6.7.x through 6.8.x and you have bcachefs filesystems mounted, your system is vulnerable. Additionally, check 'mount | grep bcachefs' to confirm bcachefs usage.
Does Defensia detect CVE-2024-35948?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-35948 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-35948. Free for 1 server.
Get started free