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

Summary

CVECVE-2023-52458
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-02-23 15:15:08 UTC
Updated2026-05-12 12:16:15 UTC
DescriptionIn 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
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS: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)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

Legacy QID Mappings

  • 200182 Ubuntu Security Notification for Linux kernel (OEM) Vulnerabilities (USN-6688-1)
  • 200243 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6725-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report