CVE-2024-56598·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: jfs: array-index-out-of-bounds fix in dtReadFirst The value of stbl can be sometimes out of bounds due to a bad filesystem. Added a check with appopriate return of error code in that case.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.5
- Published
- 2024-12-27
Affected versions
From: 6.7
Until: 6.12.5
Fixed in: 6.12.5
How to fix this CVE
Update the Linux kernel to version 6.12.5 or later to remediate this JFS filesystem vulnerability. The fix adds proper bounds checking in the dtReadFirst function to prevent out-of-bounds array access when reading corrupted or malicious filesystem structures. Systems running kernel versions 6.7 through 6.12.4 should prioritize this update to eliminate the risk of memory corruption from specially crafted JFS volumes.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check the currently running kernel version and confirm if it falls within the vulnerable range (6.7.x to 6.12.4)
- Check if JFS is in use: run 'mount | grep jfs' to identify any mounted JFS filesystems that could be targeted
- Monitor kernel logs for memory access violations: run 'sudo dmesg | grep -i "out of bounds\|jfs\|dtread"' to detect exploitation attempts
- After patching, verify the new kernel version with 'uname -r' and confirm it is 6.12.5 or later, then validate JFS mounts still function correctly with 'mount | grep jfs'
FAQ
What is CVE-2024-56598?
CVE-2024-56598 is a memory safety vulnerability in the Linux kernel's JFS (Journaled File System) implementation where the dtReadFirst function fails to validate array indices when processing filesystem metadata, allowing out-of-bounds memory access from malformed or adversarial JFS volumes.
Is CVE-2024-56598 being actively exploited?
No, there are no known active exploits or public proof-of-concept code for CVE-2024-56598, and it has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog.
What versions of Kernel are affected by CVE-2024-56598?
Linux kernel versions 6.7 through 6.12.4 are affected; kernel 6.12.5 and later include the fix.
How do I check if my server is vulnerable to CVE-2024-56598?
Run 'uname -r' to display your kernel version. If it shows a version between 6.7 and 6.12.4 inclusive, and you have JFS filesystems in use (check with 'mount | grep jfs'), your system is vulnerable.
Does Defensia detect CVE-2024-56598?
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-56598 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/22dcbf7661c6ffc3247978c254dc40b833a0d429
- https://git.kernel.org/stable/c/25f1e673ef61d6bf9a6022e27936785896d74948
- https://git.kernel.org/stable/c/2eea5fda5556ef03defebf07b0a12fcd2c5210f4
- https://git.kernel.org/stable/c/823d573f5450ca6be80b36f54d1902ac7cd23fb9
- https://git.kernel.org/stable/c/8c97a4d5463a1c972ef576ac499ea9b05f956097
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56598. Free for 1 server.
Get started free