SocWatch

CVE-2026-98464

Kritisch 9,3

In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Synchronize hrtimer callback during teardown The non-Sstc hrtimer callback clea...

CVSS
9,3 (v3.1)
Angriffswahrscheinlichkeit (EPSS)
0,14 % (höher als 3,8 % aller Lücken)
Veröffentlicht
18.10.2026
Zuletzt geändert
24.10.2026

Beschreibung

In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Synchronize hrtimer callback during teardown The non-Sstc hrtimer callback clears next_set before its final uses of the enclosing vCPU. If teardown observes next_set as false while the callback is still running, kvm_riscv_vcpu_timer_cancel() skips hrtimer_cancel() and kvm_destroy_vcpus() can free the vCPU before the callback enters kvm_riscv_vcpu_set_interrupt(). A guest can arm the timer with SBI TIME and request shutdown with SBI legacy shutdown or SRST. A VMM that honors KVM_EXIT_SYSTEM_EVENT and destroys the VM supplies the teardown side of the race; no post-launch host ioctl is needed to arm or request teardown. On upstream master 62cc90241548, generic KASAN reported: BUG: KASAN: slab-use-after-free in do_raw_spin_lock Write of size 4 at addr ff60000005e58898 kvm_riscv_vcpu_set_interrupt kvm_riscv_vcpu_hrtimer_expired __hrtimer_run_queues hrtimer_interrupt The object was allocated by KVM_CREATE_VCPU and freed concurrently by: kvm_destroy_vcpus kvm_arch_destroy_vm kvm_destroy_vm __fput For deterministic validation, I added mdelay(1000) immediately after the existing next_set = false assignment. This only widens the existing post-clear callback window. A no-delay trace build naturally reached the callback-after-teardown-start/before-deinit ordering in 12 of 200 runs, but 1,500 stock-kernel stress iterations did not produce a KASAN report, so natural reproduction is timing-sensitive. Always invoke hrtimer_cancel() for an initialized timer. Preserve the existing -EINVAL result when the timer is no longer set, but only after synchronizing with a running callback. With this patch, hrtimer_cancel() blocked for the full widened callback window before vCPU destruction. KASAN reported no error in 100 fixed-and-widened runs or 200 fix-only timing-sweep runs.

Betroffene Pakete

Paket Betroffen Behoben in
Debian:12 linux alle Versionen vor 6.1.190-1 6.1.190-1
Debian:12 linux-6.12 alle Versionen vor 6.12.113-1~deb12u1 6.12.113-1~deb12u1
Debian:13 linux alle Versionen vor 6.12.113-1 6.12.113-1
Ubuntu:22.04:LTS linux-aws-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-aws-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-aws-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-aws-6.8 alle Versionen vor 6.8.0-1069.74~22.04.1 6.8.0-1069.74~22.04.1
Ubuntu:22.04:LTS linux-azure-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-azure-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-azure-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-azure-6.8 alle Versionen vor 6.8.0-1073.82~22.04.1 6.8.0-1073.82~22.04.1
Ubuntu:22.04:LTS linux-gcp-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-gcp-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-gcp-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-gcp-6.8 alle Versionen vor 6.8.0-1073.81~22.04.1 6.8.0-1073.81~22.04.1
Ubuntu:22.04:LTS linux-hwe-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-hwe-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-hwe-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-hwe-6.8 alle Versionen vor 6.8.0-149.149~22.04.1 6.8.0-149.149~22.04.1
Ubuntu:22.04:LTS linux-ibm-6.8 alle Versionen vor 6.8.0-1069.70~22.04.1 6.8.0-1069.70~22.04.1
Ubuntu:22.04:LTS linux-lowlatency-hwe-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.8 alle Versionen vor 6.8.0-149.149.1~22.04.1 6.8.0-149.149.1~22.04.1
Ubuntu:22.04:LTS linux-oracle-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-oracle-6.8 alle Versionen vor 6.8.0-1067.71~22.04.1 6.8.0-1067.71~22.04.1
Ubuntu:24.04:LTS linux alle Versionen vor 6.8.0-149.149 6.8.0-149.149
Ubuntu:24.04:LTS linux-aws alle Versionen vor 6.8.0-1069.74 6.8.0-1069.74
Ubuntu:24.04:LTS linux-aws-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-aws-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-aws-7.0 alle Versionen vor 7.0.0-1017.18~24.04.1 7.0.0-1017.18~24.04.1
Ubuntu:24.04:LTS linux-azure alle Versionen vor 6.8.0-1073.82 6.8.0-1073.82
Ubuntu:24.04:LTS linux-azure-6.11 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-azure-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-azure-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-azure-7.0 alle Versionen vor 7.0.0-1020.21~24.04.2 7.0.0-1020.21~24.04.2
Ubuntu:24.04:LTS linux-gcp alle Versionen vor 6.8.0-1073.81 6.8.0-1073.81
Ubuntu:24.04:LTS linux-gcp-6.11 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-gcp-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-gcp-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-gcp-7.0 alle Versionen vor 7.0.0-1017.19~24.04.1 7.0.0-1017.19~24.04.1
Ubuntu:24.04:LTS linux-hwe-6.11 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-hwe-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-hwe-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-hwe-7.0 alle Versionen vor 7.0.0-42.42~24.04.1 7.0.0-42.42~24.04.1
Ubuntu:24.04:LTS linux-ibm alle Versionen vor 6.8.0-1069.70 6.8.0-1069.70
Ubuntu:24.04:LTS linux-lowlatency alle Versionen vor 6.8.0-149.149.1 6.8.0-149.149.1
Ubuntu:24.04:LTS linux-lowlatency-hwe-6.11 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-oracle alle Versionen vor 6.8.0-1067.71 6.8.0-1067.71
Ubuntu:24.04:LTS linux-oracle-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-oracle-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-oracle-7.0 alle Versionen vor 7.0.0-1016.18~24.04.1 7.0.0-1016.18~24.04.1
Ubuntu:24.04:LTS linux-vmware alle Versionen vor 6.8.0-1010.10 6.8.0-1010.10

Quellen

Weitere Kennungen

UBUNTU-CVE-2026-98464 · DEBIAN-CVE-2026-98464

Sind Ihre Projekte betroffen?

Prüfen Sie ein Lockfile kostenlos oder lassen Sie Ihre Repositories laufend überwachen.