CVE-2024-40995
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-40995 affects the Linux kernel's network scheduler component, specifically in the actapi functionality. The vulnerability was discovered by syzbot and involves a potential infinite loop in the tcfidrcheckalloc() function. The issue was first reported in July 2024 and affects Linux kernel versions from 4.19 up to versions before 6.9.7 (NVD).

Technical details

The vulnerability occurs in the net/sched/actapi.c file where a request to add multiple actions with the same index can cause the second request to block forever on the first request. This results in holding the rtnllock indefinitely, leading to task hangs. The issue has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. The vulnerability is classified as CWE-835 (Loop with Unreachable Exit Condition - 'Infinite Loop') (NVD).

Impact

When exploited, this vulnerability can cause system tasks to hang indefinitely while waiting on rtnl_lock. This can lead to a denial of service condition, particularly affecting system performance and responsiveness. The issue specifically impacts the network traffic control subsystem's ability to handle multiple action requests (Kernel Patch).

Mitigation and workarounds

The issue has been fixed by modifying the tcfidrcheck_alloc() function to return -EAGAIN instead of using an infinite loop, while maintaining the documented behavior. This fix has been implemented across multiple kernel versions through various patches (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management