VDB

CVE-2023-52458

CVE-2023-52458 PUBLISHED

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

Reported by linux · Published February 23, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpf-staticAmazon Linux6.1.75-99.163.amzn2023
kernelAmazon Linux6.1.75-99.163.amzn2023
kernel-tools-develAmazon Linux6.1.75-99.163.amzn2023
kernel-libbpfAmazon Linux6.1.75-99.163.amzn2023
kernel-headersAmazon Linux6.1.75-99.163.amzn2023

Affected products

VendorProductVersions
LinuxLinux633395b67bb222f85bb8f825c7751a54b9ec84ee, 633395b67bb222f85bb8f825c7751a54b9ec84ee, 633395b67bb222f85bb8f825c7751a54b9ec84ee
LinuxLinux4.10, 0, 5.10.215
amazon:2023kernel-libbpf-static0
amazon:2023kernel0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf0
amazon:2023kernel-headers0
linuxlinux_kernel4.10, 4.10, 4.10
amazon:2023perf0
amazon:2023kernel-devel0
LinuxLinux633395b67bb222f85bb8f825c7751a54b9ec84ee, 0, 5.10.215
amazon:2023kernel-modules-extra0
amazon:2023python3-perf0
amazon:2023kernel-libbpf-devel0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel-livepatch-6.1.75-99.1630
amazon:2023kernel-tools0
amazon:2023kernel-modules-extra-common0
amazon:2023bpftool0

Timeline

  • Feb 23, 2024 CVE Published
  • Feb 24, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (14 in total, the first dated here)
  • Jan 25, 2026 Security Advisory (237 in total, the first dated here)
  • Jan 25, 2026 CVE Updated
  • Mar 30, 2026 Distribution Patch (222 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-52458
vulnetix vdb fixes CVE-2023-52458

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52458/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›