CVE-2026-99472: KVM: pfncache: use a dedicated invalidation sequence for cache refresh

Published Nov 19, 2026
·
Updated

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

KVM: pfncache: use a dedicated invalidation sequence for cache refresh

The gfntopfncache refresh path guards against mmu notifier invalidations which complete while it has dropped gpc->lock for the HVA->PFN lookup: hvatopfnretry() samples kvm->mmuinvalidateseq and retries if it changed, or if mnactiveinvalidatecount is still elevated.

That is insufficient for HVA-based caches. mmuinvalidateseq is only advanced by kvmmmuinvalidateend() when the invalidated range overlaps a memslot, and an HVA-based cache (e.g. the Xen sharedinfo page mapped with KVMXENATTRTYPESHAREDINFOHVA) need not be backed by any memslot at all. An invalidation of the cached HVA which starts and ends entirely within the lookup window is thus invisible to the retry check: mnactiveinvalidatecount is back to zero and the sequence never moved. The refresh then publishes a mapping of a page which has already been freed, and the next reader dereferences it:

BUG: KASAN: use-after-free in kvmxensharedinfoinit+0x3c6/0x440 Read of size 4 at addr ffff8880599c2900 by task syz.2.383/7257

Since gfntopfncacheinvalidatestart() deliberately skips caches which are not currently valid (including one whose refresh is in progress, as the refresh clears the valid flag before dropping the lock), the retry check is the only line of defence, and it must fire for any invalidation, not just those hitting a memslot.

Add a dedicated kvm->gpcinvalidateseq, incremented by every kvmmmunotifierinvalidaterangeend() under mninvalidatelock before mnactiveinvalidatecount is decremented, and check it in hvatopfnretry() instead of mmuinvalidateseq. Incrementing in rangeend() in the same critical section as the in-progress count also closes the variant where the cache is activated with the contested HVA only after invalidaterangestart() has run.

The same bug is also reachable through the per-vCPU vcpuinfo cache (KVMXENVCPUATTRTYPEVCPUINFOHVA), where the stale mapping is then dereferenced by kvmsetupguestpvclock() on the next KVMRUN:

BUG: KASAN: use-after-free in kvmsetupguestpvclock+0x5bf/0x660

This intentionally makes refresh retry on unrelated mmu notifier events; restoring precision (and reworking the GPC locking more generally) is left for a subsequent series.

Reproducers: https://david.woodhou.se/xenshinforace.c https://david.woodhou.se/vcpuinforace.c

Affected Software

1 affected componentFixes available
linux/kernel>=6.9.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2

Event History

Nov 19, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
Description
Data Sourced
via OSV·02:42 PM
DescriptionAffected Software
Data Sourced
via NVD·03:18 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203