CVE-2026-89922 PUBLISHED

KVM: s390: Take srcu when importing watchpoint data

Assigner: Linux
Reserved: 11.09.2026 Published: 16.09.2026 Updated: 16.09.2026

In the Linux kernel, the following vulnerability has been resolved:

KVM: s390: Take srcu when importing watchpoint data

__import_wp_info() backs up the original guest memory contents of a watchpoint with read_guest_abs(), which is kvm_read_guest() and therefore resolves the memslot via __kvm_memslots(). That requires kvm->srcu (or kvm->slots_lock) to be held, otherwise a concurrent memslot update can free the memslots array under us once its SRCU grace period has elapsed.

As this is not fast path, following lock ordering (mutex first, then srcu) take the big hammer and hold the srcu for the full import.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 7.8

AV:L - The bug is reached only through the local KVM_SET_GUEST_DEBUG vCPU ioctl on a fd from /dev/kvm (kvm_vcpu_ioctl -> kvm_arch_vcpu_ioctl_set_guest_debug -> kvm_s390_import_bp_data). No network, adjacent-radio, or physical-device path reaches this s390 watchpoint import. AC:L - The attacker controls both sides of the race: one thread issues KVM_SET_GUEST_DEBUG with KVM_GUESTDBG_USE_HW_BP while another mutates memslots via KVM_SET_USER_MEMORY_REGION on the VM fd. Guest PER (sclp.has_gpere) is standard on s390 KVM hosts, not a rare config the attacker cannot influence. PR:L - The ioctl path has no capability check; only s390 ucontrol VMs require CAP_SYS_ADMIN. An unprivileged user with /dev/kvm access (kvm group or mode 0666, typical on virtualization hosts) can create a VM/vCPU and trigger the import. UI:N - The attacking process creates the VM and vCPU, installs hardware watchpoints, and races memslot updates itself. No separate victim user action such as mounting a filesystem or opening a file is required. S:U - KVM_SET_GUEST_DEBUG is a host-userspace ioctl; a guest cannot issue it, and this is not a guest-to-host escape. Impact stays within the host kernel's security authority, matching other KVM ioctl missing-SRCU UAFs. C:H - Without SRCU, read_guest_abs()/kvm_read_guest() resolves memslots via __kvm_memslots() while a concurrent update can kfree the kvm_memory_slot after the SRCU grace period. Use-after-free of slot metadata and gfn-tree nodes enables kernel-heap disclosure and is scored High. I:H - The same UAF lets the attacker reclaim the freed kvm_memory_slot, plant a dangling last_used_slot pointer, and walk attacker-controlled rb_left/rb_right during search_memslots(), yielding a kernel write/control-flow primitive. Kernel UAF memory corruption is scored High integrity. A:H - Dereferencing a freed kvm_memory_slot or walking a concurrently destroyed gfn rbtree causes a host kernel oops or panic. The unprotected srcu_dereference_check() also trips lockdep, which is fatal under panic_on_warn.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 27291e2165b6de70c476b7b675308113edd69a60 to 6830fbc3724bf49c142aae69a4694f115fa9cedd (excl.)
  • affected from 27291e2165b6de70c476b7b675308113edd69a60 to f8e3a9997d5ecd56ebe4b262ff424516c068fecb (excl.)
  • affected from 27291e2165b6de70c476b7b675308113edd69a60 to 76f5b4ea9ed0aa5a34bda9d8a878f2c73026ec03 (excl.)
  • affected from 27291e2165b6de70c476b7b675308113edd69a60 to cc710ee45395efb4937e042960f791d33924e5f6 (excl.)
  • affected from 27291e2165b6de70c476b7b675308113edd69a60 to 4c05bf21d1806853e662cc19e744736a3408f155 (excl.)
  • affected from 27291e2165b6de70c476b7b675308113edd69a60 to a4e482def8533ebace517d9f67f1465841b1f982 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.16 is affected
  • unaffected from 0 to 3.16 (excl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.51 to 6.18.* (incl.)
  • unaffected from 7.2.5 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References