CVE-2023-52458

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

State
Published
Severity
Not scored
Published
Feb 23, 2024
Updated
Oct 15, 2026
Reserved
Feb 20, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 633395b67bb222f85bb8f825c7751a54b9ec84ee to before 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62Affected
  • 633395b67bb222f85bb8f825c7751a54b9ec84ee to before 5010c27120962c85d2f421d2cf211791c9603503Affected
  • 633395b67bb222f85bb8f825c7751a54b9ec84ee to before ef31cc87794731ffcb578a195a2c47d744e25fb8Affected
  • 633395b67bb222f85bb8f825c7751a54b9ec84ee to before cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8Affected
  • 633395b67bb222f85bb8f825c7751a54b9ec84ee to before bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5Affected
  • 633395b67bb222f85bb8f825c7751a54b9ec84ee to before 6f64f866aa1ae6975c95d805ed51d7e9433a0016Affected
LinuxLinux
  • 4.10Affected
  • before 4.10Not affected
  • 5.10.215 through 5.10.*Not affected
  • 5.15.148 through 5.15.*Not affected
  • 6.1.75 through 6.1.*Not affected
  • 6.6.14 through 6.6.*Not affected
  • 6.7.2 through 6.7.*Not affected
  • 6.8 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.