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

CVE-2026-98283: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98283 is a use-after-free flaw in Linux kernel KVM PPC Book3S HV that affects nested guest handling. The vulnerability can lead to memory corruption through race conditions. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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-98283 Overview

CVE-2026-98283 is a use-after-free vulnerability in the Linux kernel's KVM (Kernel-based Virtual Machine) implementation for PowerPC Book3S HV. The flaw resides in kvmhv_emulate_tlbie_all_lpid(), which iterates the nested-guest IDR and drops mmu_lock before calling kvmhv_emulate_tlbie_lpid() without holding a reference on the kvm_nested_guest pointer. A concurrent vCPU issuing a single-LPID tlbie operation can race through the nested-guest release path and free the structure, leaving the iterating vCPU with a dangling pointer. The free path is fully L1-controlled, meaning an L1 guest can trigger the race deterministically.

Critical Impact

An L1 guest with vCPU access can trigger a use-after-free in the host kernel, potentially leading to host memory corruption, privilege escalation, or VM escape on PowerPC Book3S HV systems.

Affected Products

  • Linux kernel KVM PPC Book3S HV subsystem
  • PowerPC systems running nested virtualization under KVM-HV
  • Linux stable branches referenced by commits 24b63485, 4d8f7b1f, 51938dfa, e37fba1b, ec2d7a52, and fbf69b7d

Discovery Timeline

  • 2026-10-06 - CVE-2026-98283 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-98283

Vulnerability Analysis

The vulnerability is a classic use-after-free race condition in the KVM PowerPC Book3S HV nested virtualization code path. The function kvmhv_emulate_tlbie_all_lpid() walks the nested-guest IDR (ID Radix tree) to flush translation lookaside buffer entries across all logical partition IDs. During this iteration, it drops mmu_lock before invoking kvmhv_emulate_tlbie_lpid() on each nested-guest pointer. Because no reference is taken on the kvm_nested_guest structure, the pointer can be freed by a concurrent code path while still in use.

After the free, subsequent operations such as mutex_lock(&gp->tlb_lock) and dereferences of gp->shadow_pgtable, gp->shadow_lpid, and gp->l1_host all operate on freed memory. This yields deterministic memory corruption in the host kernel address space.

Root Cause

The root cause is missing refcount management on objects retrieved from the nested-guest IDR when the protecting lock is released. The iteration loop does not call the equivalent of kvmhv_get_nested() before dropping mmu_lock, breaking the established get/put discipline used at every other call site that handles nested-guest pointers across lock boundaries.

Attack Vector

A malicious or compromised L1 guest issues a single-LPID tlbie (invalidation select is=2, resource identifier ric=2) from one vCPU. This triggers the sequence kvmhv_flush_nested() → kvmhv_remove_nested() → idr_remove / refcount decrement → kvmhv_release_nested() → kfree(gp). Concurrently, another vCPU running kvmhv_emulate_tlbie_all_lpid() holds the dangling pointer and dereferences freed memory. Because the L1 fully controls both the flush timing and the iteration trigger, the race is reliably exploitable.

The upstream fix increments gp->refcnt inside the loop before dropping mmu_lock, mirroring kvmhv_get_nested(), and releases the reference with kvmhv_put_nested() after the per-guest work completes.

Detection Methods for CVE-2026-98283

Indicators of Compromise

  • Kernel oops, panic, or KASAN use-after-free reports referencing kvmhv_emulate_tlbie_all_lpid, kvmhv_emulate_tlbie_lpid, or kvmhv_release_nested in the call trace
  • Unexpected host crashes on PowerPC Book3S HV hosts running nested KVM workloads
  • Slab corruption warnings for the allocation cache backing kvm_nested_guest

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) on test and staging PowerPC hosts to surface use-after-free accesses in the KVM-HV code path
  • Collect and parse dmesg for stack traces mentioning the affected functions and correlate with L1 guest activity timestamps
  • Audit running kernel versions against the fixed commits listed in the kernel.org references

Monitoring Recommendations

  • Monitor host kernel logs on PowerPC virtualization hosts for KVM-related warnings and oopses
  • Track vCPU activity in L1 guests performing high rates of tlbie operations as a behavioral signal
  • Alert on unexpected host reboots or hypervisor crashes on Book3S HV systems

How to Mitigate CVE-2026-98283

Immediate Actions Required

  • Inventory PowerPC Book3S HV hosts running KVM nested virtualization and prioritize them for patching
  • Apply the upstream kernel fix referenced by commits 24b63485, 4d8f7b1f, 51938dfa, e37fba1b, ec2d7a52, and fbf69b7d
  • Restrict L1 guest workloads to trusted tenants until patched kernels are deployed

Patch Information

The fix is available in the mainline Linux kernel and backported stable branches. Refer to the kernel.org stable commits: Kernel Commit 24b63485, Kernel Commit 4d8f7b1f, Kernel Commit 51938dfa, Kernel Commit e37fba1b, Kernel Commit ec2d7a52, and Kernel Commit fbf69b7d. Rebuild and deploy distribution kernels incorporating these commits.

Workarounds

  • Disable nested virtualization on PowerPC Book3S HV hosts where it is not required
  • Avoid co-tenanting untrusted L1 guests on vulnerable hosts until patches are applied
  • Migrate critical workloads to patched hosts or non-PowerPC platforms during the remediation window
bash
# Verify running kernel version and nested KVM status on PowerPC hosts
uname -r
cat /sys/module/kvm_hv/parameters/nested

# Temporarily disable nested KVM-HV until patched (requires module reload)
modprobe -r kvm_hv
modprobe kvm_hv nested=0

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.