CVE-2026-98283

KVM: PPC: Book3S HV: fix use-after-free in kvmhv_emulate_tlbie_all_lpid()

  • High 8.8

Description

In the Linux kernel, the following vulnerability has been resolved: KVM: PPC: Book3S HV: fix use-after-free in kvmhv_emulate_tlbie_all_lpid() kvmhv_emulate_tlbie_all_lpid() iterates the nested-guest IDR and drops mmu_lock before calling kvmhv_emulate_tlbie_lpid(), but does not hold a reference on the kvm_nested_guest pointer obtained from the IDR. A concurrent vCPU issuing a single-LPID tlbie (is=2, ric=2) can race through kvmhv_flush_nested() -> kvmhv_remove_nested() -> idr_remove / --refcnt -> kvmhv_release_nested() -> kfree(gp) in that window, leaving the iterating vCPU with a dangling pointer. The subsequent mutex_lock(&gp->tlb_lock) and accesses to gp->shadow_pgtable, gp->shadow_lpid and gp->l1_host all touch freed memory. The free path is fully L1-controlled. Fix this by incrementing gp->refcnt inside the loop before dropping mmu_lock, mirroring what kvmhv_get_nested() does, and releasing the reference with kvmhv_put_nested() after the per-guest work completes. This is the same get/put discipline already used at every other call site that drops mmu_lock while holding a nested-guest pointer.

Key facts

Published
6 Oct 2026
Last changed
19 Oct 2026
Assigned by
Linux
EPSS
0.126% likely to be exploited in the next 30 days, higher than 2.302% of CVEs (scores for 17 Nov 2026)

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 8.8CVSS 3.1, Highfrom the CNA (Linux)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • e3b6b4661527e821ffbe3db83952fdb1e6e47c49 up to but excluding 4d8f7b1f586375df8bce23a0909566ad5e852259 (affected)
  • e3b6b4661527e821ffbe3db83952fdb1e6e47c49 up to but excluding e37fba1ba69385cff2d0e60b371ee19e7d1852d1 (affected)
  • e3b6b4661527e821ffbe3db83952fdb1e6e47c49 up to but excluding 24b634852413229bb8340d908b115c3365f3a247 (affected)
  • e3b6b4661527e821ffbe3db83952fdb1e6e47c49 up to but excluding fbf69b7d0555ee83c871f58750770f74b7179ad1 (affected)
  • e3b6b4661527e821ffbe3db83952fdb1e6e47c49 up to but excluding ec2d7a52b3996ae81131617b4afc0af31583c1b4 (affected)
  • e3b6b4661527e821ffbe3db83952fdb1e6e47c49 up to but excluding 51938dfa8a51a4f85328413fca9b6e21f9d2d088 (affected)
LinuxLinux
  • Default status: affected
  • 4.20 (affected)
  • 0 up to but excluding 4.20 (unaffected)
  • 6.1.189 up to and including 6.1.* (unaffected)
  • 6.6.158 up to and including 6.6.* (unaffected)
  • 6.12.112 up to and including 6.12.* (unaffected)
  • 6.18.54 up to and including 6.18.* (unaffected)
  • 7.2.8 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 6 Oct 2026 Published

References