CVE-2023-52458
block: add check that partition length needs to be aligned with block size
Mitigation
- Upgrade Linux to 6f64f866aa1ae6975c95d805ed51d7e9433a0016 or later.
Who should check
- Anyone running Linux >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 5010c27120962c85d2f421d2cf211791c9603503; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < ef31cc87794731ffcb578a195a2c47d744e25fb8; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 6f64f866aa1ae6975c95d805ed51d7e9433a0016
- Anyone running Linux 4.10
Vulnerability facts
- Affected
- Linux >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 5010c27120962c85d2f421d2cf211791c9603503; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < ef31cc87794731ffcb578a195a2c47d744e25fb8; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 6f64f866aa1ae6975c95d805ed51d7e9433a0016; Linux 4.10
- Fixed in
- Linux 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62, Linux 5010c27120962c85d2f421d2cf211791c9603503, Linux 6f64f866aa1ae6975c95d805ed51d7e9433a0016
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-476
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 5010c27120962c85d2f421d2cf211791c9603503; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < ef31cc87794731ffcb578a195a2c47d744e25fb8; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 6f64f866aa1ae6975c95d805ed51d7e9433a0016 | — | cvelist |
| Linux | 4.10 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-52458. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-52458.md Affected: Linux >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 5010c27120962c85d2f421d2cf211791c9603503; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < ef31cc87794731ffcb578a195a2c47d744e25fb8; >= 633395b67bb222f85bb8f82… Fixed in: Linux 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62, Linux 5010c27120962c85d2f421d2cf211791c9603503, Linux 6f64f866aa1ae6975c95d805ed51d7e9433a0016 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- 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
FAQ
Is CVE-2023-52458 being exploited?
There is no confirmed exploitation: CVE-2023-52458 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-52458?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-52458?
Linux >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 5010c27120962c85d2f421d2cf211791c9603503; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < ef31cc87794731ffcb578a195a2c47d744e25fb8; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; >= 633395b67bb222f85bb8f825c7751a54b9ec84ee, < 6f64f866aa1ae6975c95d805ed51d7e9433a0016; Linux 4.10.
Is there a fix for CVE-2023-52458?
Yes. Fixed in Linux 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62, Linux 5010c27120962c85d2f421d2cf211791c9603503, Linux 6f64f866aa1ae6975c95d805ed51d7e9433a0016. Upgrade Linux to 6f64f866aa1ae6975c95d805ed51d7e9433a0016 or later.
How do I check if I'm affected by CVE-2023-52458?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.