CVE-2024-56595·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: jfs: add a check to prevent array-index-out-of-bounds in dbAdjTree When the value of lp is 0 at the beginning of the for loop, it will become negative in the next assignment and we should bail out.
- 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 your Linux kernel to version 6.12.5 or later to patch a critical boundary checking flaw in the JFS filesystem driver's dbAdjTree function. This vulnerability allows local attackers with user privileges to trigger an array index out-of-bounds condition, potentially leading to kernel crashes or privilege escalation. Apply the kernel update immediately, especially on systems using JFS partitions or with local user access.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version with `uname -r` and compare against 6.12.5 — versions 6.7 through 6.12.4 are vulnerable
- Step 2: Verify if JFS is in use with `mount | grep jfs` — if results appear, your system uses the affected filesystem
- Step 3: Search kernel logs for dbAdjTree-related errors with `sudo dmesg | grep -i 'dbAdjTree\|jfs.*error\|array.*index'` to detect potential exploitation attempts
- Step 4: After patching, confirm the update with `uname -r` showing version 6.12.5 or later, then reboot and verify with `uname -r` again
FAQ
What is CVE-2024-56595?
This is a boundary validation flaw in the Linux kernel's JFS (Journaled File System) driver where the dbAdjTree function fails to properly check array index boundaries, allowing a negative index to be used and causing memory corruption.
Is CVE-2024-56595 being actively exploited?
No, this vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available, though the high CVSS score (7.8) reflects its serious nature.
What versions of Kernel are affected by CVE-2024-56595?
Linux kernel versions from 6.7 through 6.12.4 are vulnerable; kernel 6.12.5 and later include the fix.
How do I check if my server is vulnerable to CVE-2024-56595?
Run `uname -r` to see your kernel version — if it shows 6.7 through 6.12.4, you are vulnerable. Additionally, check if JFS is mounted with `mount | grep jfs`.
Does Defensia detect CVE-2024-56595?
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-56595 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/368a533152220b0a6f1142327d96c6b6361f3002
- https://git.kernel.org/stable/c/3b5d21b56c3774bc84eab0a93aaac22a4475e2c4
- https://git.kernel.org/stable/c/491487eeddccc4bb49f2e59d8c8f35bec89c15ca
- https://git.kernel.org/stable/c/8a4311bbde702362fe7412045d06ab6767235dac
- https://git.kernel.org/stable/c/a174706ba4dad895c40b1d2277bade16dfacdcd9
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56595. Free for 1 server.
Get started free