Review reviewHigh

CVE-2024-35979

Linux Linux, linux kernel

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] = b...

CVSS
7.8
EPSS
0.23%
13.5% percentile
CISA KEV
Not listed
Published
2024.05.20
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.23%
Technical severityCVSS 7.8

Vulnerability overview

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] = b...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= 992db13a4aee766c8bfbf046ad15c2db5fa7cab8 < 3f28d49a328fe20926995d5fbdc92da665596268, >= 992db13a4aee766c8bfbf046ad15c2db5fa7cab8 < f423f41b7679c09abb26d2bd54be5cbef23c9446, >= 992db13a4aee766c8bfbf046ad15c2db5fa7cab8 < fcf3f7e2fc8a53a6140beee46ec782a4c88e4744, >= 6.6, >= 6.6 < 6.6.28, >= 6.7 < 6.8.7, 6.9
Fixed versions
6.6.28, 6.8.7

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-416
CVE-2024-35979 — Linux Linux, linux kernel | SECUFOCUS NOW