CVE-2023-53989

arm64: mm: fix VA-range sanity check

State
Published
Severity
Not scored
Published
Dec 24, 2025
Updated
Jun 1, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 14c127c957c1c6070647c171e72f06e0db275ebf to before 9d8d3df71516ec3236d8d93ff029d251377ba4b1Affected
  • 14c127c957c1c6070647c171e72f06e0db275ebf to before 32020fc2a8373d3de35ae6d029d5969a42651e7aAffected
  • 14c127c957c1c6070647c171e72f06e0db275ebf to before 621619f626cbe702ddbdc54117f3868b8ebd8129Affected
  • 14c127c957c1c6070647c171e72f06e0db275ebf to before c7a9e967cc9615a1dabc5e0e6fdbe88a172d5a5bAffected
  • 14c127c957c1c6070647c171e72f06e0db275ebf to before b03c7fcc5ed854d0e1b27e9abf12428bfa751a37Affected
  • 14c127c957c1c6070647c171e72f06e0db275ebf to before ab9b4008092c86dc12497af155a0901cc1156999Affected
LinuxLinux
  • 5.4Affected
  • before 5.4Not affected
  • 5.4.251 through 5.4.*Not affected
  • 5.10.188 through 5.10.*Not affected
  • 5.15.150 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.4.7 through 6.4.*Not affected
  • 6.5 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.