Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-40942

5.5 · MEDIUM
Published Jul 12, 2024 linux CWE-401 EPSS 0.26% (17th pctl)

Overview

CVE-2024-40942 is a medium-severity vulnerability affecting linux linux_kernel. 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:

wifi: mac80211: mesh: Fix leak of mesh_preq_queue objects

The hwmp code use objects of type mesh_preq_queue, added to a list in

ieee80211_if_mesh, to keep track of mpath we need to resolve. If the mpath

gets deleted, ex mesh interface is removed, the entries in that list will

never get cleaned. Fix this by flushing all corresponding items of the

preq_queue in mesh_path_flush_pending().

This should take care of KASAN reports like this:

unreferenced object 0xffff00000668d800 (size 128):

comm "kworker/u8:4", pid 67, jiffies 4295419552 (age 1836.444s)

hex dump (first 32 bytes):

00 1f 05 09 00 00 ff ff 00 d5 68 06 00 00 ff ff ..........h.....

8e 97 ea eb 3e b8 01 00 00 00 00 00 00 00 00 00 ....>...........

backtrace:

[<000000007302a0b6>] __kmem_cache_alloc_node+0x1e0/0x35c

[<00000000049bd418>] kmalloc_trace+0x34/0x80

[<0000000000d792bb>] mesh_queue_preq+0x44/0x2a8

[<00000000c99c3696>] mes

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 2.6.26, < 4.19.317 Affected

Frequently Asked Questions

What is CVE-2024-40942?

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

How severe is CVE-2024-40942?

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-40942?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. 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-40942?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-40942 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.