Menu

Star on GitHub · 3.2k

CVE-2024-40995

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: net/sched: act_api: fix possible infinite loop in tcf_idr_check_alloc() syzbot found hanging tasks waiting on rtnl_lock [1] A…

Published Jul 12, 2024CWE-835EPSS 0.29%

Overview

CVE-2024-40995 is a medium-severity vulnerability. It was published on July 12, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

net/sched: act_api: fix possible infinite loop in tcf_idr_check_alloc()

syzbot found hanging tasks waiting on rtnl_lock [1]

A reproducer is available in the syzbot bug.

When a request to add multiple actions with the same index is sent, the

second request will block forever on the first request. This holds

rtnl_lock, and causes tasks to hang.

Return -EAGAIN to prevent infinite looping, while keeping documented

behavior.

[1]

INFO: task kworker/1:0:5088 blocked for more than 143 seconds.

Not tainted 6.9.0-rc4-syzkaller-00173-g3cdb45594619 #0

"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

task:kworker/1:0 state:D stack:23744 pid:5088 tgid:5088 ppid:2 flags:0x00004000

Workqueue: events_power_efficient reg_check_chans_work

Call Trace:

<TASK>

context_switch kernel/sched/core.c:5409 [inline]

__schedule+0xf15/0x5d00 kernel/sched/core.c:6746

__schedule_loop kernel/sched/core.c:6823 [inline]

sch

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-40995?

CVE-2024-40995 is a medium-severity vulnerability. It was published on July 12, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-40995?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-40995?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-40995?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-40995 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all