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

7.8 · HIGH
Published May 20, 2024 linux CWE-416 EPSS 0.23% (13th pctl)

Overview

CVE-2024-35979 is a high-severity vulnerability affecting linux linux_kernel. It was published on May 20, 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:

raid1: fix use-after-free for original bio in raid1_write_request()

r1_bio->bios[] is used to record new bios that will be issued to

underlying disks, however, in raid1_write_request(), r1_bio->bios[]

will set to the original bio temporarily. Meanwhile, if blocked rdev

is set, free_r1bio() will be called causing that all r1_bio->bios[]

to be freed:

raid1_write_request()

r1_bio = alloc_r1bio(mddev, bio); -> r1_bio->bios[] is NULL

for (i = 0; i < disks; i++) -> for each rdev in conf

// first rdev is normal

r1_bio->bios[0] = bio; -> set to original bio

// second rdev is blocked

if (test_bit(Blocked, &rdev->flags))

break

if (blocked_rdev)

free_r1bio()

put_all_bios()

bio_put(r1_bio->bios[0]) -> original bio is freed

Test scripts:

mdadm -CR /dev/md0 -l1 -n4 /dev/sd[abcd] --assume-clean

fio -filename=/dev/md0 -ioengine=libaio -rw=write -bs=4k -numjobs=1 \

-iodepth=128 -name=test -direct=1

ech

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 >= 6.6, < 6.6.28 Affected

Frequently Asked Questions

What is CVE-2024-35979?

CVE-2024-35979 is a high-severity vulnerability affecting linux linux_kernel. It was published on May 20, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-35979?

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

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

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