CVE-2024-47705CWE-476

CVE-2024-47705

Medium · published October 21, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
11.5
In the wild
Unconfirmed
What it is

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

block: fix potential invalid pointer dereference in blk_add_partition

The blk_add_partition() function initially used a single if-condition

(IS_ERR(part)) to check for errors when adding a partition. This was

modified to handle the specific case of -ENXIO separately, allowing the

function to proceed without logging the error in this case. However,

this change unintentionally left a path where md_autodetect_dev()

could be called without confirming that part is a valid pointer.

This commit separates the error handling logic by splitting the

initial if-condition, improving code readability and handling specific

error scenarios explicitly. The function now distinguishes the general

error case from -ENXIO without altering the existing behavior of

md_autodetect_dev() calls.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00217 · 11.5th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2024-10-21T16:15Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≥ 5.5, < 5.10.2275.10.227
linux/linux_kernel≥ 5.11, < 5.15.1685.15.168
linux/linux_kernel≥ 5.16, < 6.1.1136.1.113
linux/linux_kernel≥ 6.2, < 6.6.546.6.54
linux/linux_kernel≥ 6.7, < 6.10.136.10.13
linux/linux_kernel≥ 6.11, < 6.11.26.11.2
References (11)
EPSS history
Timeline
  • 21 OCT 11:53Z
    block: fix potential invalid pointer dereference in blk_add_partition
    cvelistv5