# CVE-2026-89775: KVM: arm64: Handle negative S1 walk levels in VNCR TLB size evaluation

- Severity: Critical 9.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- 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.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-09-16T08:39:16.109Z
- Modified: 2026-10-19T09:18:20.687Z
- Assigned by: Linux

## Description

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

KVM: arm64: Handle negative S1 walk levels in VNCR TLB size evaluation

Computing the effects of a TLB invalidation involves looking at
the size of the mapping cached by the TLB. For S1 mappings such as
VNCR, this is deducted from the combination of the base granule size
and the mapping level.

However, this implies that the S1 MMU is *on*. When the MMU is off,
we indicate this with the level being set to a "creative" value of
-127 (S1_MMU_DISABLED).

This ends-up being misinterpreted by pgshift_level_to_ttl() as it
doesn't handle negative levels at all (the level is immediately cast
to a u8 and only the bottom two bits considered), leading to an
invalidation size of 0. Not helpful.

Tidy-up pgshift_level_to_ttl() to handle these negative levels, and
ttl_to_size() to always return SZ_1G when no valid TTL is present.
This allows the removal of open-coded checks for similar situations.

Note that the check for a negative value not explicitely checking for
S1_MMU_DISABLED is deliberate, so that actual negative levels introduced
with LVA2 and D128 can take the same path if we ever support them.

(As written by CVE List.)

## Affected

- Linux Linux: from 7270cc9157f474dfc46750a34c9d7defc686b2eb before be54a70067c7dbe1381157e8a238fa4b16ea9c05; from 7270cc9157f474dfc46750a34c9d7defc686b2eb before 1c9fca34b9625a67a7f1a03c8604f3df760c6c49; from 7270cc9157f474dfc46750a34c9d7defc686b2eb before 8053393680d4fa3eb962667d2be95dd39f0940e5; 6.16 (not affected: before 6.16; from 6.18.51 up to 6.18.*; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/be54a70067c7dbe1381157e8a238fa4b16ea9c05>
- <https://git.kernel.org/stable/c/1c9fca34b9625a67a7f1a03c8604f3df760c6c49>
- <https://git.kernel.org/stable/c/8053393680d4fa3eb962667d2be95dd39f0940e5>
- <http://www.openwall.com/lists/oss-security/2026/09/16/14>

## Sources

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

---

Page: https://cve.day/CVE-2026-89775 · Whole record: https://cve.day/CVE-2026-89775.json · Rebuilt by cve.day 2026-11-25T22:59:38.920Z
