ext4: set goal start correctly in ext4_mb_normalize_request
In the Linux kernel, the following vulnerability has been resolved: ext4: set goal start correctly in ext4_mb_normalize_request We need to set ac_g_ex to notify the goal start used in ext4_mb_find_by_goal. Set ac_g_ex instead of ac_f_ex in ext4_mb_normalize_request. Besides we should assure goal start is in range [first_data_block, blocks_count) as ext4_mb_initialize_context does. [ Added a check to make sure size is less than ar->pright; otherwise we could end up passing an underflowed value of ar->pright - size to ext4_get_group_no_and_offset(), which will trigger a BUG_ON later on. - TYT ]
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.316, 4.19.284, 5.10.181, 5.15.113, 5.4.244, 6.1.30, 6.3.4
- CVEs
- CVE-2023-54021
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 19:52 UTC · Revision 1
Source evidence
ext4: set goal start correctly in ext4_mb_normalize_request
core-osv · Original sourcePublished 24 Dec 2025, 10:55 UTC
In the Linux kernel, the following vulnerability has been resolved: ext4: set goal start correctly in ext4_mb_normalize_request We need to set ac_g_ex to notify the goal start used in ext4_mb_find_by_goal. Set ac_g_ex instead of ac_f_ex in ext4_mb_normalize_request. Besides we should assure goal start is in range [first_data_block, blocks_count) as ext4_mb_initialize_context does. [ Added a check to make sure size is less than ar->pright; otherwise we could end up passing an underflowed value of ar->pright - size to ext4_get_group_no_and_offset(), which will trigger a BUG_ON later on. - TYT ]
osv:CVE-2023-54021
Kernel
Fixed versions: 4.14.316, 4.19.284, 5.4.244, 5.10.181, 5.15.113, 6.1.30, 6.3.4
Complete source record
{
"id": "8eb66e8fd254f58f75caca19210a3212f343b2870936713cae1fa17052217956",
"url": "https://osv.dev/vulnerability/CVE-2023-54021",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ext4: set goal start correctly in ext4_mb_normalize_request",
"summary": "In the Linux kernel, the following vulnerability has been resolved: ext4: set goal start correctly in ext4_mb_normalize_request We need to set ac_g_ex to notify the goal start used in ext4_mb_find_by_goal. Set ac_g_ex instead of ac_f_ex in ext4_mb_normalize_request. Besides we should assure goal start is in range [first_data_block, blocks_count) as ext4_mb_initialize_context does. [ Added a check to make sure size is less than ar->pright; otherwise we could end up passing an underflowed value of ar->pright - size to ext4_get_group_no_and_offset(), which will trigger a BUG_ON later on. - TYT ]",
"evidence": "osv:CVE-2023-54021",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.316",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.284",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.244",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.181",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.113",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.30",
"evidence": "/affected/1/ranges"
},
{
"value": "6.3.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-54021",
"aliases": [
"CVE-2023-54021"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c9de560ded61faa5b754137b7753da252391c55a"
},
{
"fixed": "2479bb6cbdb4d56b807bbe5229e3e26a6f1f4530"
},
{
"fixed": "390eee955d4de4662db5e3e9e9a9eae020432cb7"
},
{
"fixed": "cee78217a7ae72d11c2e21e1a5263b8044489823"
},
{
"fixed": "3ca3005b502ca8ea87d6a344323b179b48c4e4a3"
},
{
"fixed": "bc4a3e1d07a86ae5845321d371190244acacb2f2"
},
{
"fixed": "c6bee8970075b256fc1b07bf4873049219380818"
},
{
"fixed": "abb330ffaa3a0ae7ce632e28c9260b461c01f19f"
},
{
"fixed": "b07ffe6927c75d99af534d685282ea188d9f71a6"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54021.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.25"
},
{
"fixed": "4.14.316"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.284"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.244"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.181"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.113"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.30"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.3.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54021.json"
}
}
],
"modified": "2026-10-28T02:30:38.882331206Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/2479bb6cbdb4d56b807bbe5229e3e26a6f1f4530",
"https://git.kernel.org/stable/c/390eee955d4de4662db5e3e9e9a9eae020432cb7",
"https://git.kernel.org/stable/c/3ca3005b502ca8ea87d6a344323b179b48c4e4a3",
"https://git.kernel.org/stable/c/abb330ffaa3a0ae7ce632e28c9260b461c01f19f",
"https://git.kernel.org/stable/c/b07ffe6927c75d99af534d685282ea188d9f71a6",
"https://git.kernel.org/stable/c/bc4a3e1d07a86ae5845321d371190244acacb2f2",
"https://git.kernel.org/stable/c/c6bee8970075b256fc1b07bf4873049219380818",
"https://git.kernel.org/stable/c/cee78217a7ae72d11c2e21e1a5263b8044489823",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54021.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-54021",
"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/54xxx/CVE-2023-54021.json"
}
},
"related_cves": [
{
"value": "CVE-2023-54021",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 506375,
"published_at": "2025-12-24T10:55:51.373+00:00"
}