CVE-2024-56651·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: can: hi311x: hi3110_can_ist(): fix potential use-after-free The commit a22bd630cfff ("can: hi311x: do not report txerr and rxerr during bus-off") removed the reporting of rxerr and txerr even in case of correct operation (i. e. not bus-off). The error count information added to the CAN frame after netif_rx() is a potential use after free, since there is no guarantee that the skb is in the same state. It might be freed or reused. Fix the issue by postponing the netif_rx() call in case of txerr and rxerr reporting.
- 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 resolve a use-after-free vulnerability in the CAN hi3110 driver. This flaw could allow a local attacker with low privileges to cause memory corruption or system instability through improper handling of network socket buffers during CAN bus error reporting. Apply the patch immediately to systems running affected kernel versions 6.7 through 6.12.4.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to check the currently running kernel version; if it is between 6.7 and 6.12.4, your system is vulnerable.
- Verify CAN driver modules are loaded with `lsmod | grep hi3110` or `lsmod | grep can` to confirm the affected driver is in use.
- Check kernel logs for CAN bus errors and memory-related warnings: `dmesg | grep -i 'can\|skb\|use.after.free'`.
- Confirm the fix by rebooting into the patched kernel and running `uname -r` again to verify version 6.12.5 or later is active.
FAQ
What is CVE-2024-56651?
CVE-2024-56651 is a use-after-free vulnerability in the Linux kernel's CAN (Controller Area Network) hi3110 driver that occurs when error count information is written to a network socket buffer after it has already been freed or reused by the network stack.
Is CVE-2024-56651 being actively exploited?
No, this vulnerability is not currently being actively exploited in the wild, and no public exploits are available. However, it poses a local privilege escalation risk and should still be patched promptly.
What versions of Kernel are affected by CVE-2024-56651?
Linux kernel versions 6.7 through 6.12.4 are vulnerable. The issue is fixed in kernel 6.12.5 and later.
How do I check if my server is vulnerable to CVE-2024-56651?
Run `uname -r` to check your kernel version. If the output shows a version between 6.7 and 6.12.4 (inclusive), your system is affected. Additionally, verify CAN driver usage with `lsmod | grep hi3110`.
Does Defensia detect CVE-2024-56651?
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-56651 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1128022009444faf49359bd406cd665b177cb643
- https://git.kernel.org/stable/c/4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1
- https://git.kernel.org/stable/c/9ad86d377ef4a19c75a9c639964879a5b25a433b
- https://git.kernel.org/stable/c/bc30b2fe8c54694f8ae08a5b8a5d174d16d93075
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56651. Free for 1 server.
Get started free