CVE-2023-52458
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-static | Amazon Linux | 6.1.75-99.163.amzn2023 |
| kernel | Amazon Linux | 6.1.75-99.163.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.75-99.163.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.75-99.163.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.75-99.163.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 633395b67bb222f85bb8f825c7751a54b9ec84ee, 633395b67bb222f85bb8f825c7751a54b9ec84ee, 633395b67bb222f85bb8f825c7751a54b9ec84ee |
| Linux | Linux | 4.10, 0, 5.10.215 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| linux | linux_kernel | 4.10, 4.10, 4.10 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| Linux | Linux | 633395b67bb222f85bb8f825c7751a54b9ec84ee, 0, 5.10.215 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel-livepatch-6.1.75-99.163 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | bpftool | 0 |
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