Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-99471

CVE-2026-99471: KVM: PPC: Book3S HV: Add SRCU protection for virtual-mode HPT hcalls

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99471: high-severity vulnerability (CVSS 7.8) in Linux Linux.

What happened

Original description from 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_lock(&kvm->srcu) / srcu_read_unlock(&kvm->srcu, idx). Targeting only the HPT hcalls avoids wrapping non-HPT hcalls that sleep (such as H_CONFER, H_REGISTER_VPA, H_PAGE_INIT) or handlers that already acquire…

Why it matters

High severity, CVSS 7.8.

Affected products and versions

Linux Linux >= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < fbfff331e73f44c25f4edd112eaef3b6865171c6; Linux Linux >= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 294e306dc1c49f1124d0b82eef565778d975420b; Linux Linux >= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 0b456d70fff190abac02795ddb088618ff512a48; Linux Linux >= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 0f86aba67317d65b2dc89995dd5ddefe219411a7; Linux Linux >= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 4ab2c987fd15a4bd28ef46a9ac871359886e6439; Linux Linux >= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < c3d0261c4fae2cc36dcf9f4e247552498232caff; Linux Linux >= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 61a39797bb136243c48b46e2586d8a9e2cea6a89; Linux Linux 5.14; Linux Linux < 5.14; Linux Linux 5.15.226 (fixed in 5.15.226); Linux Linux 6.1.193 (fixed in 6.1.193); Linux Linux 6.6.163 (fixed in 6.6.163)

ProductVersionsFixed in
Linux Linux>= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < fbfff331e73f44c25f4edd112eaef3b6865171c6—
Linux Linux>= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 294e306dc1c49f1124d0b82eef565778d975420b—
Linux Linux>= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 0b456d70fff190abac02795ddb088618ff512a48—
Linux Linux>= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 0f86aba67317d65b2dc89995dd5ddefe219411a7—
Linux Linux>= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 4ab2c987fd15a4bd28ef46a9ac871359886e6439—
Linux Linux>= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < c3d0261c4fae2cc36dcf9f4e247552498232caff—
Linux Linux>= 6165d5dd99dbaec7a309491c3951bd81fc89978d, < 61a39797bb136243c48b46e2586d8a9e2cea6a89—
Linux Linux5.14—
Linux Linux< 5.14—
Linux Linux5.15.2265.15.226
Linux Linux6.1.1936.1.193
Linux Linux6.6.1636.6.163
Linux Linux6.12.1176.12.117
Linux Linux6.18.616.18.61
Linux Linux7.3.27.3.2
Linux Linux7.4-rc17.4-rc1

Action recommended by the source

Upgrade to a fixed version: 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1.

Fixed in: 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.