AZL-114665: CVE-2026-99334 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
KVM: PPC: Book3S HV: Add preemptdisable() around virtual-mode HPTE bit-lock users
kvmppchvfindlockhpte() requires virtual-mode callers to run with preemption disabled, because it can return with HPTEVHVLOCK still held until the caller later unlocks the HPTE. Existing virtual-mode callers in book3s64mmuhv.c already follow that rule.
Two virtual-mode call paths do not:
1. kvmppchandleexithv() calls kvmppchptehvfault() for hash-mode data-side and instruction-side faults after guest exit, with preemption already enabled. kvmppchptehvfault() calls kvmppchvfindlockhpte() directly.
2. kvmppcpseriesdohcall() executes virtual-mode handlers for HPT hcalls via kvmppcpseriesdohpthcall() with preemption enabled. The handlers for HENTER, HREMOVE, HREAD, HCLEARMOD, HCLEARREF, HPROTECT, and HBULKREMOVE spin on trylockhpte() or lockrmap(), and HENTER also reaches kvmppcdohenter(), which uses archspinlock() on kvm->mmulock. That raw lock choice is intentional because kvmppcdohenter() is also used by real-mode callers, so the correct fix is to establish the proper preemption context at the virtual-mode caller boundary.
If a vCPU thread is preempted while holding HPTEVHVLOCK, any other thread on the same CPU trying to acquire the same bit-lock can spin indefinitely. The same applies to lockrmap() users and to the HENTER path while holding the raw mmulock.
Fix this by adding preemptdisable()/preemptenable() pairs around the two kvmppchptehvfault() call sites in kvmppchandleexithv(), and around the kvmppcpseriesdohpthcall() invocation in kvmppcpseriesdohcall(). Targeting only the HPT hcall helper avoids wrapping non-HPT hcalls (such as HRTAS, HCONFER, HREGISTERVPA) that perform page faults, blocking memory allocations, or context switches.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In virtual-mode callers, disable preemption before invoking the HPT hcall handlers and hash-mode fault paths that use try_lock_hpte(), lock_rmap(), or HPTE_V_HVLOCK, then re-enable it after the call. In particular, wrap the kvmppc_pseries_do_hpt_hcall() invocation in kvmppc_pseries_do_hcall() and the kvmppc_hpte_hv_fault() call sites in kvmppc_handle_exit_hv() with preempt_disable()/preempt_enable() pairs.