# CVE-2026-98467: KVM: arm64: nv: Fix null ptr deref on nested wp/unmap, teardown race

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:15:19.294Z
- **Modified:** 2026-10-19T10:18:56.837Z

## Who should check

- Anyone running Linux \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 970de111c087488e53cadf5480b94e0f695db985; \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 3cefc1ab511fad6a0f708e7a4aee9f91346e9457; \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 4c74e233cdedd11592775fae2a6243e67ca3f891
- Anyone running Linux 6.16

## Description

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

KVM: arm64: nv: Fix null ptr deref on nested wp/unmap, teardown race

Commit 7270cc9157f4 ("KVM: arm64: nv: Handle VNCR\_EL2 invalidation from MMU
notifiers") introduced VNCR\_EL2 invalidation in both kvm\_nested\_s2\_unmap()
and kvm\_nested\_s2\_wp().

However at the point of this being performed concurrent stage 2 teardown of
a nested guest can cause kvm-\>arch.mmu.pgt to be set to NULL.

This happens in kvm\_flush\_shadow\_all() -\> kvm\_arch\_flush\_shadow\_all() -\>
kvm\_free\_stage2\_pgd() and is performed under the kvm-\>mmu\_lock.

Commit ec14c272408a ("KVM: arm64: nv: Unmap/flush shadow stage 2 page
tables") introduced the teardown of the entire nested MMU range, which then
invokes stage2\_apply\_range() with resched=true:

mmu\_notifier\_invalidate\_range\_start()
  -\> ... -\> kvm\_mmu\_notifier\_invalidate\_range\_start()
    -\> kvm\_mmu\_unmap\_gfn\_range()
      -\> kvm\_unmap\_gfn\_range()
        -\> kvm\_nested\_s2\_unmap()
          -\> kvm\_stage2\_unmap\_range()
            -\> \_\_unmap\_stage2\_range()
                -\> stage2\_apply\_range()

This means that stage2\_apply\_range() can drop the kvm-\>mmu\_lock and thus
concurrent progress can be made in lockstep with
kvm\_arch\_flush\_shadow\_all().

If kvm\_arch\_flush\_shadow\_all() advances ahead of stage2\_apply\_range() and
completes its operation it guarantees a NULL pointer deref.

Since kvm\_free\_stage2\_pgd() is performed under the kvm-\>mmu\_lock this will
either be observed NULL or not and serialised against
kvm\_free\_stage2\_pgd().

Resolve the issue by abstracting the invalidation to a new function,
kvm\_invalidate\_vncr\_ipa\_all(), and check that the pgt is non-NULL before
dereferencing it.

## Affected and fixed versions

- Linux: \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 970de111c087488e53cadf5480b94e0f695db985; \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 3cefc1ab511fad6a0f708e7a4aee9f91346e9457; \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 4c74e233cdedd11592775fae2a6243e67ca3f891 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 4c74e233cdedd11592775fae2a6243e67ca3f891 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98467. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98467.md
Affected: Linux >= 7270cc9157f474dfc46750a34c9d7defc686b2eb, < 970de111c087488e53cadf5480b94e0f695db985; >= 7270cc9157f474dfc46750a34c9d7defc686b2eb, < 3cefc1ab511fad6a0f708e7a4aee9f91346e9457; >= 7270cc9157f474dfc46750a34c9d7defc686b2eb, < 4c74e233cdedd11592775fae2a6243e67ca3f891; Linux 6.16
Fixed in: Linux 970de111c087488e53cadf5480b94e0f695db985, Linux 3cefc1ab511fad6a0f708e7a4aee9f91346e9457, Linux 4c74e233cdedd11592775fae2a6243e67ca3f891

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98467 being exploited?

There is no confirmed exploitation: CVE-2026-98467 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98467?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98467?

Linux \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 970de111c087488e53cadf5480b94e0f695db985; \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 3cefc1ab511fad6a0f708e7a4aee9f91346e9457; \>= 7270cc9157f474dfc46750a34c9d7defc686b2eb, \< 4c74e233cdedd11592775fae2a6243e67ca3f891; Linux 6.16.

### Is there a fix for CVE-2026-98467?

Yes. Fixed in Linux 970de111c087488e53cadf5480b94e0f695db985, Linux 3cefc1ab511fad6a0f708e7a4aee9f91346e9457, Linux 4c74e233cdedd11592775fae2a6243e67ca3f891. Upgrade Linux to 4c74e233cdedd11592775fae2a6243e67ca3f891 or later.

### How do I check if I'm affected by CVE-2026-98467?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/970de111c087488e53cadf5480b94e0f695db985>
- other: <https://git.kernel.org/stable/c/3cefc1ab511fad6a0f708e7a4aee9f91346e9457>
- other: <https://git.kernel.org/stable/c/4c74e233cdedd11592775fae2a6243e67ca3f891>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98467>

HTML: <https://flawdb.com/CVE-2026-98467> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98467>
