CVE-2024-56662·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: acpi: nfit: vmalloc-out-of-bounds Read in acpi_nfit_ctl Fix an issue detected by syzbot with KASAN: BUG: KASAN: vmalloc-out-of-bounds in cmd_to_func drivers/acpi/nfit/ core.c:416 [inline] BUG: KASAN: vmalloc-out-of-bounds in acpi_nfit_ctl+0x20e8/0x24a0 drivers/acpi/nfit/core.c:459 The issue occurs in cmd_to_func when the call_pkg->nd_reserved2 array is accessed without verifying that call_pkg points to a buffer that is appropriately sized as a struct nd_cmd_pkg. This can lead to out-of-bounds access and undefined behavior if the buffer does not have sufficient space. To address this, a check was added in acpi_nfit_ctl() to ensure that buf is not NULL and that buf_len is less than sizeof(*call_pkg) before accessing it. This ensures safe access to the members of call_pkg, including the nd_reserved2 array.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.12.6
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 1% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.7
Until: 6.12.6
Fixed in: 6.12.6
How to fix this CVE
Update your Linux kernel to version 6.12.6 or later to patch a memory access vulnerability in the ACPI NFIT subsystem. This vulnerability allows privileged local attackers to trigger out-of-bounds reads during NFIT command processing. Apply the kernel update immediately on all affected systems running kernel versions 6.7 through 6.12.5.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r | grep -E '^6\.(7|8|9|10|11|12\.[0-5])'
- Verify NFIT/ACPI support is enabled: grep -i nfit /boot/config-$(uname -r) | grep -E '(CONFIG_NFIT|CONFIG_ACPI).*=y'
- Search dmesg for KASAN warnings related to NFIT: dmesg | grep -i 'acpi_nfit_ctl\|KASAN.*vmalloc'
- After patching, confirm the new kernel is running: uname -r should show version 6.12.6 or later
FAQ
What is CVE-2024-56662?
CVE-2024-56662 is a memory safety flaw in the Linux kernel's ACPI NFIT driver where insufficient buffer size validation allows reading beyond allocated memory boundaries when processing NVMe firmware update commands.
Is CVE-2024-56662 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, it requires elevated privileges to trigger.
What versions of Kernel are affected by CVE-2024-56662?
Linux kernel versions 6.7 through 6.12.5 are vulnerable. Kernel 6.12.6 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-56662?
Run 'uname -r' and check if the output matches 6.7.x, 6.8.x, 6.9.x, 6.10.x, 6.11.x, or 6.12.[0-5]. If it does, your system is vulnerable.
Does Defensia detect CVE-2024-56662?
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-56662 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/143f723e9eb4f0302ffb7adfdc7ef77eab3f68e0
- https://git.kernel.org/stable/c/212846fafb753a48e869e2a342fc1e24048da771
- https://git.kernel.org/stable/c/265e98f72bac6c41a4492d3e30a8e5fd22fe0779
- https://git.kernel.org/stable/c/616aa5f3c86e0479bcbb81e41c08c43ff32af637
- https://git.kernel.org/stable/c/bbdb3307f609ec4dc9558770f464ede01fe52aed
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56662. Free for 1 server.
Get started free