CVE-2023-53989
Description
In the Linux kernel, the following vulnerability has been resolved:
arm64: mm: fix VA-range sanity check
Both create_mapping_noalloc() and update_mapping_prot() sanity-check their 'virt' parameter, but the check itself doesn't make much sense. The condition used today appears to be a historical accident.
The sanity-check condition:
if ((virt >= PAGE_END) && (virt < VMALLOC_START)) { [ ... warning here ... ] return; }
... can only be true for the KASAN shadow region or the module region, and there's no reason to exclude these specifically for creating and updateing mappings.
When arm64 support was first upstreamed in commit:
c1cc1552616d0f35 ("arm64: MMU initialisation")
... the condition was:
if (virt < VMALLOC_START) { [ ... warning here ... ] return; }
At the time, VMALLOC_START was the lowest kernel address, and this was checking whether 'virt' would be translated via TTBR1.
Subsequently in commit:
14c127c957c1c607 ("arm64: mm: Flip kernel VA space")
... the condition was changed to:
if ((virt >= VA_START) && (virt < VMALLOC_START)) { [ ... warning here ... ] return; }
This appear to have been a thinko. The commit moved the linear map to the bottom of the kernel address space, with VMALLOC_START being at the halfway point. The old condition would warn for changes to the linear map below this, and at the time VA_START was the end of the linear map.
Subsequently we cleaned up the naming of VA_START in commit:
77ad4ce69321abbe ("arm64: memory: rename VA_START to PAGE_END")
... keeping the erroneous condition as:
if ((virt >= PAGE_END) && (virt < VMALLOC_START)) { [ ... warning here ... ] return; }
Correct the condition to check against the start of the TTBR1 address space, which is currently PAGE_OFFSET. This simplifies the logic, and more clearly matches the "outside kernel range" message in the warning.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Incorrect VA-range sanity check in Linux kernel arm64 memory management could block valid mappings for KASAN shadow and module regions.
Vulnerability
Overview
In the Linux kernel for arm64, the functions create_mapping_noalloc() and update_mapping_prot() perform a sanity check on the virtual address parameter virt. The check originally was intended to ensure the address is within the kernel's TTBR1 address space, but a historical error in commit 14c127c957c1c607 introduced an incorrect condition that excludes the KASAN shadow region and the module region (addresses between PAGE_END and VMALLOC_START). This means that valid mapping operations for those regions would trigger a warning and abort, potentially leading to missing or incorrect page table entries.
Exploitation and
Impact
The vulnerability is triggered during normal kernel operations when creating or updating memory mappings for the affected regions. An attacker with the ability to trigger such operations (e.g., via module loading or KASAN manipulation) could cause kernel memory mapping failures, leading to system instability or information disclosure. However, exploitation requires local access or the ability to influence kernel mapping requests. The impact is primarily availability and integrity, as the mapping failure may cause crashes or incorrect memory access.
Mitigation
The fix corrects the condition to check against PAGE_OFFSET, which is the start of the TTBR1 address space, ensuring that all valid kernel addresses are accepted. The patch has been applied to the stable kernel tree as commits 621619f626cbe702ddbdc54117f3868b8ebd8129 and 9d8d3df71516ec3236d8d93ff029d251377ba4b1 [1][2]. Users should update to the latest stable kernel version containing these commits.
AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
59d8d3df7151632020fc2a837621619f626cbb03c7fcc5ed8ab9b4008092cVulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- git.kernel.org/stable/c/32020fc2a8373d3de35ae6d029d5969a42651e7anvd
- git.kernel.org/stable/c/621619f626cbe702ddbdc54117f3868b8ebd8129nvd
- git.kernel.org/stable/c/9d8d3df71516ec3236d8d93ff029d251377ba4b1nvd
- git.kernel.org/stable/c/ab9b4008092c86dc12497af155a0901cc1156999nvd
- git.kernel.org/stable/c/b03c7fcc5ed854d0e1b27e9abf12428bfa751a37nvd
News mentions
0No linked articles in our index yet.