CVE-2023-53989
arm64: mm: fix VA-range sanity check
Check your servers for CVE-2023-53989
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53989 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 14c127c957c1c6070647c171e72f06e0db275ebf, before 9d8d3df71516ec3236d8d93ff029d251377ba4b1 affected from 14c127c957c1c6070647c171e72f06e0db275ebf, before 32020fc2a8373d3de35ae6d029d5969a42651e7a affected from 14c127c957c1c6070647c171e72f06e0db275ebf, before 621619f626cbe702ddbdc54117f3868b8ebd8129 affected from 14c127c957c1c6070647c171e72f06e0db275ebf, before c7a9e967cc9615a1dabc5e0e6fdbe88a172d5a5b affected from 14c127c957c1c6070647c171e72f06e0db275ebf, before b03c7fcc5ed854d0e1b27e9abf12428bfa751a37 affected from 14c127c957c1c6070647c171e72f06e0db275ebf, before ab9b4008092c86dc12497af155a0901cc1156999
Other versions: unaffected
|
| Linux |
affected 5.4 unaffected before 5.4 unaffected from 5.4.251 up to and including 5.4.* unaffected from 5.10.188 up to and including 5.10.* unaffected from 5.15.150 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.4.7 up to and including 6.4.* unaffected 6.5 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53989 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53989
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-53989
trivy image --scanners vuln IMAGE | grep CVE-2023-53989
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/9d8d3df71516ec3236d8d93ff029d251377ba4b1 git.kernel.org
- https://git.kernel.org/stable/c/32020fc2a8373d3de35ae6d029d5969a42651e7a git.kernel.org
- https://git.kernel.org/stable/c/621619f626cbe702ddbdc54117f3868b8ebd8129 git.kernel.org
- https://git.kernel.org/stable/c/c7a9e967cc9615a1dabc5e0e6fdbe88a172d5a5b git.kernel.org
- https://git.kernel.org/stable/c/b03c7fcc5ed854d0e1b27e9abf12428bfa751a37 git.kernel.org
- https://git.kernel.org/stable/c/ab9b4008092c86dc12497af155a0901cc1156999 git.kernel.org
Source: the record CVE-2023-53989 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse