block: add check that partition length needs to be aligned with block size
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.215, 5.15.148, 6.1.75, 6.6.14, 6.7.2
- CVEs
- CVE-2023-52458
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 02:00 UTC · Revision 1
Source evidence
block: add check that partition length needs to be aligned with block size
core-osv · Original sourcePublished 23 Feb 2024, 14:46 UTC
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.
osv:CVE-2023-52458
Kernel
Fixed versions: 5.10.215, 5.15.148, 6.1.75, 6.6.14, 6.7.2
Complete source record
{
"id": "efcb0f805dd402d77721cdb76d7bcf316076a4056a15efe6c90ee6c7f88bf60f",
"url": "https://osv.dev/vulnerability/CVE-2023-52458",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "block: add check that partition length needs to be aligned with block size",
"summary": "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.",
"evidence": "osv:CVE-2023-52458",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.215",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.148",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.75",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.14",
"evidence": "/affected/1/ranges"
},
{
"value": "6.7.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-52458",
"aliases": [
"CVE-2023-52458"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "633395b67bb222f85bb8f825c7751a54b9ec84ee"
},
{
"fixed": "8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62"
},
{
"fixed": "5010c27120962c85d2f421d2cf211791c9603503"
},
{
"fixed": "ef31cc87794731ffcb578a195a2c47d744e25fb8"
},
{
"fixed": "cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8"
},
{
"fixed": "bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5"
},
{
"fixed": "6f64f866aa1ae6975c95d805ed51d7e9433a0016"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52458.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.10.0"
},
{
"fixed": "5.10.215"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.148"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.75"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.14"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.7.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52458.json"
}
}
],
"modified": "2026-10-28T02:30:41.808330165Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
"https://git.kernel.org/stable/c/5010c27120962c85d2f421d2cf211791c9603503",
"https://git.kernel.org/stable/c/6f64f866aa1ae6975c95d805ed51d7e9433a0016",
"https://git.kernel.org/stable/c/8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62",
"https://git.kernel.org/stable/c/bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5",
"https://git.kernel.org/stable/c/cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8",
"https://git.kernel.org/stable/c/ef31cc87794731ffcb578a195a2c47d744e25fb8",
"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52458.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-52458",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52458.json"
}
},
"related_cves": [
{
"value": "CVE-2023-52458",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 509281,
"published_at": "2024-02-23T14:46:20.397+00:00"
}