CVE-2023-52458

block: add check that partition length needs to be aligned with block size

No CVSS score yet EPSS 0.23%

Published 23 Feb 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2023-52458

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-2023-52458 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: add check that partition length needs to be aligned with block size

Before calling add partition or resize partition, there is no check on whether the length is aligned with the logical block size. If the logical block size of the disk is larger than 512 bytes, then the partition size maybe not the multiple of the logical block size, and when the last sector is read, bio_truncate() will adjust the bio size, resulting in an IO error if the size of the read command is smaller than the logical block size.If integrity data is supported, this will also result in a null pointer dereference when calling bio_integrity_free.

Exploitation

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

The assessment of CISA (SSVC, 26 Feb 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 633395b67bb222f85bb8f825c7751a54b9ec84ee, before 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62
affected from 633395b67bb222f85bb8f825c7751a54b9ec84ee, before 5010c27120962c85d2f421d2cf211791c9603503
affected from 633395b67bb222f85bb8f825c7751a54b9ec84ee, before ef31cc87794731ffcb578a195a2c47d744e25fb8
affected from 633395b67bb222f85bb8f825c7751a54b9ec84ee, before cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8
affected from 633395b67bb222f85bb8f825c7751a54b9ec84ee, before bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5
affected from 633395b67bb222f85bb8f825c7751a54b9ec84ee, before 6f64f866aa1ae6975c95d805ed51d7e9433a0016
Other versions: unaffected
Linux
affected 4.10
unaffected before 4.10
unaffected from 5.10.215 up to and including 5.10.*
unaffected from 5.15.148 up to and including 5.15.*
unaffected from 6.1.75 up to and including 6.1.*
unaffected from 6.6.14 up to and including 6.6.*
unaffected from 6.7.2 up to and including 6.7.*
unaffected 6.8 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-2023-52458 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52458

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-2023-52458
trivy image --scanners vuln IMAGE | grep CVE-2023-52458

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-2023-52458 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.