Skip to main content
Mallory
MediumVulnerability

CVE-2024-40995: Infinite loop in Linux kernel traffic-control action allocation

Published Jul 12, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS5.5Medium · v3.1
EPSS0.32%18th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2024-40995CWE-835 · Loop with Unreachable Exit…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

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.
Activity feed

Recent activity

15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+11 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.