block: add check that partition length needs to be aligned with block size
Summary
| CVE | CVE-2023-52458 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-02-23 15:15:08 UTC |
| Updated | 2026-05-12 12:16:15 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Problem Types: CWE-476
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 633395b67bb222f85bb8f825c7751a54b9ec84ee 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62 git | Not specified |
| CNA | Linux | Linux | affected 633395b67bb222f85bb8f825c7751a54b9ec84ee 5010c27120962c85d2f421d2cf211791c9603503 git | Not specified |
| CNA | Linux | Linux | affected 633395b67bb222f85bb8f825c7751a54b9ec84ee ef31cc87794731ffcb578a195a2c47d744e25fb8 git | Not specified |
| CNA | Linux | Linux | affected 633395b67bb222f85bb8f825c7751a54b9ec84ee cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8 git | Not specified |
| CNA | Linux | Linux | affected 633395b67bb222f85bb8f825c7751a54b9ec84ee bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5 git | Not specified |
| CNA | Linux | Linux | affected 633395b67bb222f85bb8f825c7751a54b9ec84ee 6f64f866aa1ae6975c95d805ed51d7e9433a0016 git | Not specified |
| CNA | Linux | Linux | affected 4.10 | Not specified |
| CNA | Linux | Linux | unaffected 4.10 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.215 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.148 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.75 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.14 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.7.2 6.7.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.8 * original_commit_for_fix | Not specified |
| ADP | Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem | affected * custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| lists.debian.org/debian-lts-announce/2024/06/msg00017.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| git.kernel.org/stable/c/6f64f866aa1ae6975c95d805ed51d7e9433a0016 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/5010c27120962c85d2f421d2cf211791c9603503 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| cert-portal.siemens.com/productcert/html/ssa-265688.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| git.kernel.org/stable/c/cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/ef31cc87794731ffcb578a195a2c47d744e25fb8 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.