Skip to main content
Vulnerability Database/CVE-2026-98712

CVE-2026-98712: Linux Kernel KVM Privilege Escalation Flaw

CVE-2026-98712 is a privilege escalation vulnerability in the Linux kernel KVM subsystem affecting interrupt handling in ARM64 virtualization. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98712 Overview

CVE-2026-98712 affects the Linux kernel's KVM subsystem on arm64 architectures. The flaw resides in the virtual Generic Interrupt Controller (vGIC) code that tracks the last interrupt inserted in a List Register (LR). The kernel referenced an interrupt through last_lr_irq without holding a refcount, allowing the interrupt to disappear if a Locality-specific Peripheral Interrupt (LPI) was concurrently unmapped. Maintainers resolved the issue by incrementing the interrupt refcount when populating last_lr_irq and dropping it during vgic_prune_ap_list() when LPIs are reclaimed.

Critical Impact

A race condition between vGIC LR tracking and concurrent LPI unmapping can leave last_lr_irq referencing freed interrupt state inside a KVM guest on arm64 hosts.

Affected Products

  • Linux kernel KVM subsystem on arm64 platforms
  • vGIC virtual interrupt controller handling LPIs
  • Hosts running KVM virtual machines on ARM 64-bit hardware

Discovery Timeline

  • 2026-10-18 - CVE-2026-98712 published to the National Vulnerability Database (NVD)
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98712

Vulnerability Analysis

The vulnerability is a race condition in the arm64 vGIC implementation inside KVM. The vGIC tracks the most recently inserted interrupt in a List Register through the last_lr_irq pointer. This pointer was stored without taking a reference on the underlying interrupt descriptor.

LPIs are reference-counted because they can be dynamically created and destroyed by guests through the ITS (Interrupt Translation Service). When another thread unmaps an LPI referenced by last_lr_irq, the interrupt structure can be freed while the vGIC still holds a dangling pointer to it. Any subsequent dereference by the vCPU exit or LR maintenance paths operates on reclaimed memory.

The upstream fix increments the interrupt refcount at the moment last_lr_irq is populated. The matching decrement happens inside vgic_prune_ap_list(), which is the standard reclamation path for LPIs. See the commits 19bc5d7 and 8b25393 for the exact change.

Root Cause

The root cause is a missing refcount on an interrupt pointer cached across vGIC state transitions. The last_lr_irq field held a raw reference to an LPI that could be unmapped and reclaimed concurrently, creating a use-after-free condition on arm64 KVM hosts.

Attack Vector

Triggering the race requires a guest or host workload capable of inserting interrupts into vGIC List Registers while concurrently unmapping the same LPI through ITS commands. The attack surface is local to the virtualization host and bounded by the ability to influence LPI mapping within a KVM guest.

No verified public exploit code is available for this issue. Technical details should be derived from the upstream kernel commits referenced above.

Detection Methods for CVE-2026-98712

Indicators of Compromise

  • Unexpected kernel oops or NULL pointer dereferences originating in vgic_prune_ap_list or vgic_flush_lr_state paths on arm64 hosts
  • KASAN use-after-free reports pointing at vGIC interrupt structures when running KVM guests
  • Guest VM crashes or host panics correlated with ITS DISCARD, MAPTI, or MAPI command activity

Detection Strategies

  • Audit running kernel versions on arm64 hypervisors against the patched commits 19bc5d7 and 8b25393
  • Enable KASAN and lockdep on test kernels to surface races in vGIC refcount handling
  • Review KVM guest workloads that make heavy use of MSI/LPI delivery for abnormal termination patterns

Monitoring Recommendations

  • Collect dmesg and crash dumps from arm64 virtualization hosts and inspect for stack traces involving last_lr_irq
  • Forward host kernel logs to a centralized logging platform for correlation across the fleet
  • Track kernel package versions across arm64 hypervisor inventory and alert on hosts missing the fix

How to Mitigate CVE-2026-98712

Immediate Actions Required

  • Identify all arm64 hosts running KVM and inventory their kernel versions
  • Schedule maintenance windows to deploy the patched kernel across affected hypervisors
  • Prioritize multi-tenant hosts where untrusted guests can drive ITS and LPI activity

Patch Information

The fix is upstream in the Linux kernel through two commits: 19bc5d7 and 8b25393. The patch takes a refcount on interrupts referenced by last_lr_irq and drops it in vgic_prune_ap_list() when LPIs are reclaimed. Distribution-shipped kernels should be updated once stable backports land for the respective series.

Workarounds

  • No upstream-recommended workaround exists; applying the fixed kernel is the supported remediation
  • Reduce exposure by limiting untrusted guest access to arm64 KVM hosts until patched
  • Avoid guest configurations that aggressively map and unmap LPIs on vulnerable hosts
bash
# Verify running kernel version on arm64 KVM host
uname -rm

# Confirm the fix is present in the installed kernel source tree
git -C /usr/src/linux log --oneline | grep -E '19bc5d7|8b25393'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.