CVE-2024-35979 Vulnerability Analysis & Exploit Details

CVE-2024-35979
Vulnerability Scoring

7.8
/10
Very High Risk

Highly exploitable, CVE-2024-35979 poses a critical security risk that could lead to severe breaches.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2024-35979 Details

Status: Analyzed

Last updated: 🕔 14 Jan 2025, 17:28 UTC
Originally published on: 🕙 20 May 2024, 10:15 UTC

Time between publication and last update: 239 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE-2024-35979 Vulnerability Summary

CVE-2024-35979: 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 echo blocked > /sys/block/md0/md/rd2/state Test result: BUG bio-264 (Not tainted): Object already free ----------------------------------------------------------------------------- Allocated in mempool_alloc_slab+0x24/0x50 age=1 cpu=1 pid=869 kmem_cache_alloc+0x324/0x480 mempool_alloc_slab+0x24/0x50 mempool_alloc+0x6e/0x220 bio_alloc_bioset+0x1af/0x4d0 blkdev_direct_IO+0x164/0x8a0 blkdev_write_iter+0x309/0x440 aio_write+0x139/0x2f0 io_submit_one+0x5ca/0xb70 __do_sys_io_submit+0x86/0x270 __x64_sys_io_submit+0x22/0x30 do_syscall_64+0xb1/0x210 entry_SYSCALL_64_after_hwframe+0x6c/0x74 Freed in mempool_free_slab+0x1f/0x30 age=1 cpu=1 pid=869 kmem_cache_free+0x28c/0x550 mempool_free_slab+0x1f/0x30 mempool_free+0x40/0x100 bio_free+0x59/0x80 bio_put+0xf0/0x220 free_r1bio+0x74/0xb0 raid1_make_request+0xadf/0x1150 md_handle_request+0xc7/0x3b0 md_submit_bio+0x76/0x130 __submit_bio+0xd8/0x1d0 submit_bio_noacct_nocheck+0x1eb/0x5c0 submit_bio_noacct+0x169/0xd40 submit_bio+0xee/0x1d0 blkdev_direct_IO+0x322/0x8a0 blkdev_write_iter+0x309/0x440 aio_write+0x139/0x2f0 Since that bios for underlying disks are not allocated yet, fix this problem by using mempool_free() directly to free the r1_bio.

Assessing the Risk of CVE-2024-35979

Access Complexity Graph

The exploitability of CVE-2024-35979 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2024-35979

CVE-2024-35979 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2024-35979, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2024-35979, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: High
    Exploiting CVE-2024-35979 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: High
    CVE-2024-35979 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: High
    CVE-2024-35979 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.042% (probability of exploit)

EPSS Percentile: 5.07% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 94.93% of others.

CVE-2024-35979 References

External References

CWE Common Weakness Enumeration

CWE-416

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:6.6:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.20:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.20:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.21:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.21:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.22:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.22:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.23:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.23:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.24:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.24:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.25:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.25:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.26:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.26:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.27:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.27:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.7:rc8:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.7:rc8:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.8:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.8:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.8.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.8.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.8.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.8.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.8.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.8.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.8.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.8.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.8.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.8.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.8.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.8.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2024-35979: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-3275 – The Themesflat Addons For Elementor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the TF E Slider widget in all versions up...
  • CVE-2025-1457 – The Element Pack Addons for Elementor – Free Templates and Widgets for Your WordPress Websites plugin for WordPress is vulnerable to Stored Cross-S...
  • CVE-2025-1093 – The AIHub theme for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the generate_image function in all ver...
  • CVE-2025-3284 – The User Registration & Membership – Custom Registration Form, Login Form, and User Profile plugin for WordPress is vulnerable to Cross-Site Reques...
  • CVE-2025-3278 – The UrbanGo Membership plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 1.0.4. This is due to the plugi...