Menu

Star on GitHub · 3.2k

CVE-2024-36972

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: af_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock.

Published Jun 10, 2024CWE-476EPSS 0.52%

Overview

CVE-2024-36972 is a high-severity vulnerability. It was published on June 10, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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:

af_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock.

Billy Jheng Bing-Jhong reported a race between __unix_gc() and

queue_oob().

__unix_gc() tries to garbage-collect close()d inflight sockets,

and then if the socket has MSG_OOB in unix_sk(sk)->oob_skb, GC

will drop the reference and set NULL to it locklessly.

However, the peer socket still can send MSG_OOB message and

queue_oob() can update unix_sk(sk)->oob_skb concurrently, leading

NULL pointer dereference. [0]

To fix the issue, let's update unix_sk(sk)->oob_skb under the

sk_receive_queue's lock and take it everywhere we touch oob_skb.

Note that we defer kfree_skb() in manage_oob() to silence lockdep

false-positive (See [1]).

[0]:

BUG: kernel NULL pointer dereference, address: 0000000000000008

PF: supervisor write access in kernel mode

PF: error_code(0x0002) - not-present page

PGD 8000000009f5e067 P4D 8000000009f5e067 PUD 9f5d067 PMD 0

Oops: 0002

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

CVE-2024-36972 is a high-severity vulnerability. It was published on June 10, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-36972?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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-36972?

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

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

View all