CVE-2024-47705

block: fix potential invalid pointer dereference in blk_add_partition

No CVSS score yet EPSS 0.22%

Published 21 Oct 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-47705

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-47705 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 21 Oct 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from b72053072c0bbe9f1cdfe2ffa3c201c185da2201, before 4bc4272e2506941c3f3d4fb8b0c659ee814dcf6f
affected from b72053072c0bbe9f1cdfe2ffa3c201c185da2201, before cc4d21d9492db4e534d3e01253cf885c90dd2a8b
affected from b72053072c0bbe9f1cdfe2ffa3c201c185da2201, before 64cf2a39202ca2d9df5ee70eb310b6141ce2b8ed
affected from b72053072c0bbe9f1cdfe2ffa3c201c185da2201, before 80f5bfbb80ea1615290dbc24f49d3d8c86db58fe
affected from b72053072c0bbe9f1cdfe2ffa3c201c185da2201, before 652039ba477c9a4ab43740cf2cb0d068d53508c2
affected from b72053072c0bbe9f1cdfe2ffa3c201c185da2201, before afe53ea9b378c376101d99d216f13b6256f75189
affected from b72053072c0bbe9f1cdfe2ffa3c201c185da2201, before 26e197b7f9240a4ac301dd0ad520c0c697c2ea7d
Other versions: unaffected
Linux
affected 5.5
unaffected before 5.5
unaffected from 5.10.227 up to and including 5.10.*
unaffected from 5.15.168 up to and including 5.15.*
unaffected from 6.1.113 up to and including 6.1.*
unaffected from 6.6.54 up to and including 6.6.*
unaffected from 6.10.13 up to and including 6.10.*
unaffected from 6.11.2 up to and including 6.11.*
unaffected 6.12 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-47705 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-47705

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-47705
trivy image --scanners vuln IMAGE | grep CVE-2024-47705

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-47705 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.