CVE-2024-40994·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ptp: fix integer overflow in max_vclocks_store On 32bit systems, the "4 * max" multiply can overflow. Use kcalloc() to do the allocation to prevent this.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.7
- Published
- 2024-07-12
Affected versions
From: 6.7
Until: 6.9.7
Fixed in: 6.9.7
How to fix this CVE
Update your Linux kernel to version 6.9.7 or later to resolve this integer overflow vulnerability in the PTP (Precision Time Protocol) subsystem. The vulnerability affects kernel versions 6.7 through 6.9.6 and can be remediated through a standard kernel update followed by a system reboot. Ensure your system management tools are configured to apply kernel security updates promptly.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to display your current kernel version and verify if it falls within the vulnerable range (6.7 to 6.9.6)
- Check if PTP is enabled on your system with 'cat /boot/config-$(uname -r) | grep CONFIG_PTP' — if CONFIG_PTP_1588_CLOCK is set to 'm' or 'y', the vulnerable code path may be active
- Search kernel logs for PTP-related operations using 'dmesg | grep -i ptp' or 'journalctl | grep -i ptp' to identify if the max_vclocks parameter has been modified
- After applying the update, confirm the new kernel version with 'uname -r' to ensure you are running 6.9.7 or later
FAQ
What is CVE-2024-40994?
CVE-2024-40994 is an integer overflow vulnerability in the Linux kernel's PTP (Precision Time Protocol) clock implementation. When the max_vclocks parameter is set on 32-bit systems, a multiplication operation can overflow, potentially leading to memory corruption or privilege escalation.
Is CVE-2024-40994 being actively exploited?
No, CVE-2024-40994 is not listed on the CISA KEV catalog and there are no publicly disclosed exploits available. However, the high CVSS score (7.8) indicates the vulnerability warrants immediate patching.
What versions of Kernel are affected by CVE-2024-40994?
Kernel versions 6.7 through 6.9.6 are affected. Version 6.9.7 and later contain the fix. Systems running kernels outside this range are not vulnerable.
How do I check if my server is vulnerable to CVE-2024-40994?
Run 'uname -r' to check your kernel version. If the output shows 6.7.x through 6.9.6, your system is vulnerable and requires immediate updating.
Does Defensia detect CVE-2024-40994?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-40994 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/4b03da87d0b7074c93d9662c6e1a8939f9b8b86e
- https://git.kernel.org/stable/c/666e934d749e50a37f3796caaf843a605f115b6f
- https://git.kernel.org/stable/c/81d23d2a24012e448f651e007fac2cfd20a45ce0
- https://git.kernel.org/stable/c/d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f
- https://git.kernel.org/stable/c/e1fccfb4638ee6188377867f6015d0ce35764a8e
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-40994. Free for 1 server.
Get started free