CVE-2024-40995: Infinite loop in Linux kernel traffic-control action allocation
- Vendor
- Linux
CVE-2024-40995 is an infinite-loop vulnerability in the Linux kernel network scheduler action API function tcf_idr_check_alloc(). A request to add multiple traffic-control actions with the same index causes the second action allocation to block indefinitely on the first. The operation retains rtnl_lock, causing other tasks waiting for that lock to hang and resulting in denial of service. The fix returns -EAGAIN instead of looping indefinitely while preserving documented behavior.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes indefinite blocking of traffic-control action allocation while rtnl_lock remains held. Other kernel tasks requiring that lock can hang, disrupting affected networking and kernel operations and causing denial of service.
Mitigation
If you can’t patch tonight, do this now.
No specific temporary workaround is documented. Restrict traffic-control and network-administration privileges to trusted users, containers, and workloads, particularly capabilities permitting network interface and traffic-control configuration, until the kernel update can be deployed.
Remediation
Patch, then assume compromise.
Install a vendor kernel update containing the tcf_idr_check_alloc() fix, which returns -EAGAIN to prevent infinite looping. Applicable fixed releases include RHEL 8.4 kernel 4.18.0-305.139.1.el8_4 under RHSA-2024:6156 and RHEL 9.2 kernel 5.14.0-284.80.1.el9_2 under RHSA-2024:5672; corresponding real-time updates are provided by RHSA-2024:6160 and RHSA-2024:5673. For Google Container-Optimized OS, update affected lakitu-kernel packages to version 18555.0.0 or later. Other affected distributions should apply their applicable kernel security updates, including the listed SUSE, Rocky Linux, and AlmaLinux advisories. Reboot after installing kernel packages so the fixed kernel takes effect.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-40995 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2024-40995 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-40995?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2024-40995.
- Is there a patch for CVE-2024-40995?
- Install a vendor kernel update containing the tcf_idr_check_alloc() fix, which returns -EAGAIN to prevent infinite looping. Applicable fixed releases include RHEL 8.4 kernel 4.18.0-305.139.1.el8_4 under RHSA-2024:6156 and RHEL 9.2 kernel 5.14.0-284.80.1.el9_2 under RHSA-2024:5672; corresponding real-time updates are provided by RHSA-2024:6160 and RHSA-2024:5673.
- What products are affected by CVE-2024-40995?
- Linux Kernel.
- How severe is CVE-2024-40995?
- CVE-2024-40995 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 0.32% (18th percentile) as of Oct 16, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.