Menu

Star on GitHub · 3.2k

CVE-2024-40942

5.5 · MEDIUM

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…

Published Jul 12, 2024CWE-401EPSS 0.28%

Overview

CVE-2024-40942 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:

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

CVE-2024-40942 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-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, 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-40942?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-40942 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