Linux Kernelの仮想化機能KVMに解放済みメモリを使う脆弱性
Summary
Linux KernelのKVM(PowerPC向けBook3S HV)で、仮想化されたゲストのHPT関連処理がメモリ領域の解放と競合し、解放済みのメモリを使う脆弱性が見つかっています。影響するのは5.14.0以降6.12.117未満、6.13.0以降6.18.61未満、6.19.0以降7.3.2未満のKernelです。6.12.117、6.18.61、7.3.2以降の修正版で対処できるため、利用中のKernelの版を確認し、修正版への更新を検討してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Linux KernelのKVM(PowerPC向けBook3S HV)で、仮想化されたゲストのHPT関連処理がメモリ領域の解放と競合し、解放済みのメモリを使う脆弱性が見つかっています。影響するのは5.14.0以降6.12.117未満、6.13.0以降6.18.61未満、6.19.0以降7.3.2未満のKernelです。6.12.117、6.18.61、7.3.2以降の修正版で対処できるため、利用中のKernelの版を確認し、修正版への更新を検討してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 5.14.0, < 5.15.226→ 5.15.226 ≥ 5.16.0, < 6.1.193→ 6.1.193 ≥ 6.2.0, < 6.6.163→ 6.6.163 ≥ 6.7.0, < 6.12.117→ 6.12.117 ≥ 6.13.0, < 6.18.61→ 6.18.61 ≥ 6.19.0, < 7.3.2→ 7.3.2 |
5.15.226 6.1.193 6.6.163 6.12.117 6.18.61 7.3.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-99471 linux-lts Fix available
- Debian DEBIAN-CVE-2026-99471 linux-6.12, linux Fix available
- Ubuntu UBUNTU-CVE-2026-99471 linux-xilinx-zynqmp, linux-xilinx, linux-vmware +154 more No fixed version in this record
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved:
KVM: PPC: Book3S HV: Add SRCU protection for virtual-mode HPT hcalls
The virtual-mode HPT hcall handlers (H_ENTER, H_REMOVE, H_BULK_REMOVE,
H_CLEAR_REF, H_CLEAR_MOD) call into book3s_hv_rm_mmu.c, which accesses
memslots via kvm_memslots_raw(). kvm_memslots_raw() uses
rcu_dereference_raw_check() to bypass SRCU lockdep annotation checking.
This is safe in real mode because the entire guest entry/exit is wrapped
in srcu_read_lock/unlock inside kvmppc_run_core() and
kvmhv_run_single_vcpu().
However, since commit 6165d5dd99db ("KVM: PPC: Book3S HV: add virtual
mode handlers for HPT hcalls and page faults"), these same handlers are
also executed in virtual mode via kvmppc_pseries_do_hcall(), which runs
after SRCU has already been released on guest exit.
A concurrent KVM_SET_USER_MEMORY_REGION deletion or move can therefore
call synchronize_srcu_expedited() — which does not wait for this thread —
and then kfree(slot) and vfree(slot->arch.rmap) while the hcall handler
still holds a raw pointer to the memslot. lock_rmap() then writes to
freed vmalloc memory, leading to use-after-free and memory corruption.
Because kvm_memslots_raw() suppresses lockdep checks, this race is
entirely silent.
Fix this by factoring out the 7 HPT hcall handlers (H_REMOVE, H_ENTER,
H_READ, H_CLEAR_MOD, H_CLEAR_REF, H_PROTECT, H_BULK_REMOVE) into a
helper function, kvmppc_pseries_do_hpt_hcall(), and wrapping its call
site in srcu_read_…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com