CVE-2023-53989

Source
https://cve.org/CVERecord?id=CVE-2023-53989
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53989.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53989
Downstream
Related
Published
2025-12-24T10:55:28.461Z
Modified
2026-03-20T12:33:23.239227Z
Summary
arm64: mm: fix VA-range sanity check
Details

In the Linux kernel, the following vulnerability has been resolved:

arm64: mm: fix VA-range sanity check

Both createmappingnoalloc() and updatemappingprot() 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 VMALLOCSTART being at the halfway point. The old condition would warn for changes to the linear map below this, and at the time VASTART was the end of the linear map.

Subsequently we cleaned up the naming of VA_START in commit:

77ad4ce69321abbe ("arm64: memory: rename VASTART to PAGEEND")

... 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53989.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
14c127c957c1c6070647c171e72f06e0db275ebf
Fixed
9d8d3df71516ec3236d8d93ff029d251377ba4b1
Fixed
32020fc2a8373d3de35ae6d029d5969a42651e7a
Fixed
621619f626cbe702ddbdc54117f3868b8ebd8129
Fixed
b03c7fcc5ed854d0e1b27e9abf12428bfa751a37
Fixed
ab9b4008092c86dc12497af155a0901cc1156999

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53989.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.4.0
Fixed
5.4.251
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.188
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.150
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.4.7

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53989.json"