# CVE-2023-52458: block: add check that partition length needs to be aligned with block size

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-02-23T14:46:20.397Z
- Modified: 2026-10-15T01:17:14.080Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 633395b67bb222f85bb8f825c7751a54b9ec84ee before 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62; from 633395b67bb222f85bb8f825c7751a54b9ec84ee before 5010c27120962c85d2f421d2cf211791c9603503; from 633395b67bb222f85bb8f825c7751a54b9ec84ee before ef31cc87794731ffcb578a195a2c47d744e25fb8; from 633395b67bb222f85bb8f825c7751a54b9ec84ee before cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8; from 633395b67bb222f85bb8f825c7751a54b9ec84ee before bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; from 633395b67bb222f85bb8f825c7751a54b9ec84ee before 6f64f866aa1ae6975c95d805ed51d7e9433a0016; 4.10 (not affected: before 4.10; from 5.10.215 up to 5.10.*; from 5.15.148 up to 5.15.*; from 6.1.75 up to 6.1.*; from 6.6.14 up to 6.6.*; from 6.7.2 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: before 5.10.215; from 5.11.0 before 5.15.148; from 5.16.0 before 6.1.75; from 6.2.0 before 6.6.14; from 6.7.0 before 6.7.2

## References

- <https://git.kernel.org/stable/c/8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62> (patch)
- <https://git.kernel.org/stable/c/5010c27120962c85d2f421d2cf211791c9603503> (patch)
- <https://git.kernel.org/stable/c/ef31cc87794731ffcb578a195a2c47d744e25fb8> (patch)
- <https://git.kernel.org/stable/c/cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8> (patch)
- <https://git.kernel.org/stable/c/bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5> (patch)
- <https://git.kernel.org/stable/c/6f64f866aa1ae6975c95d805ed51d7e9433a0016> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2023-52458](https://www.cve.org/CVERecord?id=CVE-2023-52458), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2023-52458](https://nvd.nist.gov/vuln/detail/CVE-2023-52458), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2023-52458 · Whole record: https://cve.day/CVE-2023-52458.json · Rebuilt by cve.day 2026-11-25T22:58:33.065Z
