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-35970

6.3 · MEDIUM
Published May 20, 2024 linux CWE-667 EPSS 0.50% (41th pctl)

Overview

CVE-2024-35970 is a medium-severity vulnerability affecting linux linux_kernel. It was published on May 20, 2024 and has a CVSS 3.1 base score of 6.3 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.3, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

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

af_unix: Clear stale u->oob_skb.

syzkaller started to report deadlock of unix_gc_lock after commit

4090fa373f0e ("af_unix: Replace garbage collection algorithm."), but

it just uncovers the bug that has been there since commit 314001f0bf92

("af_unix: Add OOB support").

The repro basically does the following.

from socket import *

from array import array

c1, c2 = socketpair(AF_UNIX, SOCK_STREAM)

c1.sendmsg([b'a'], [(SOL_SOCKET, SCM_RIGHTS, array("i", [c2.fileno()]))], MSG_OOB)

c2.recv(1) # blocked as no normal data in recv queue

c2.close() # done async and unblock recv()

c1.close() # done async and trigger GC

A socket sends its file descriptor to itself as OOB data and tries to

receive normal data, but finally recv() fails due to async close().

The problem here is wrong handling of OOB skb in manage_oob(). When

recvmsg() is called without MSG_OOB, manage_oob() is called to check

if the peeked skb

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 >= 5.15, < 5.15.156 Affected

Frequently Asked Questions

What is CVE-2024-35970?

CVE-2024-35970 is a medium-severity vulnerability affecting linux linux_kernel. It was published on May 20, 2024 and has a CVSS 3.1 base score of 6.3 (MEDIUM).

How severe is CVE-2024-35970?

This vulnerability has a CVSS 3.1 base score of 6.3, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

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

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

CyberStrike's AI-powered security agents can automatically detect CVE-2024-35970 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.