# CVE-2023-53989: arm64: mm: fix VA-range sanity check

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-12-24T10:55:28.461Z
- Modified: 2026-06-17T06:46:29.700Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 14c127c957c1c6070647c171e72f06e0db275ebf before 9d8d3df71516ec3236d8d93ff029d251377ba4b1; from 14c127c957c1c6070647c171e72f06e0db275ebf before 32020fc2a8373d3de35ae6d029d5969a42651e7a; from 14c127c957c1c6070647c171e72f06e0db275ebf before 621619f626cbe702ddbdc54117f3868b8ebd8129; from 14c127c957c1c6070647c171e72f06e0db275ebf before c7a9e967cc9615a1dabc5e0e6fdbe88a172d5a5b; from 14c127c957c1c6070647c171e72f06e0db275ebf before b03c7fcc5ed854d0e1b27e9abf12428bfa751a37; from 14c127c957c1c6070647c171e72f06e0db275ebf before ab9b4008092c86dc12497af155a0901cc1156999; 5.4 (not affected: before 5.4; from 5.4.251 up to 5.4.*; from 5.10.188 up to 5.10.*; from 5.15.150 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.4.7 up to 6.4.*; from 6.5 up to *)

## References

- <https://git.kernel.org/stable/c/9d8d3df71516ec3236d8d93ff029d251377ba4b1>
- <https://git.kernel.org/stable/c/32020fc2a8373d3de35ae6d029d5969a42651e7a>
- <https://git.kernel.org/stable/c/621619f626cbe702ddbdc54117f3868b8ebd8129>
- <https://git.kernel.org/stable/c/c7a9e967cc9615a1dabc5e0e6fdbe88a172d5a5b>
- <https://git.kernel.org/stable/c/b03c7fcc5ed854d0e1b27e9abf12428bfa751a37>
- <https://git.kernel.org/stable/c/ab9b4008092c86dc12497af155a0901cc1156999>

## Sources

- CVE List: [CVE-2023-53989](https://www.cve.org/CVERecord?id=CVE-2023-53989), CVE Terms of Use, modified 2026-06-01
- NVD: [CVE-2023-53989](https://nvd.nist.gov/vuln/detail/CVE-2023-53989), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53989 · Whole record: https://cve.day/CVE-2023-53989.json · Rebuilt by cve.day 2026-11-25T22:58:35.132Z
