In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Synchronize hrtimer callback during teardown The non-Sstc hrtimer… (CVE-2026-98464)
Description
A use-after-free vulnerability in the Linux kernel's RISC-V KVM implementation was resolved. The issue occurs due to a race condition during hrtimer callback teardown, where a vCPU can be freed while a timer callback is still running. This can lead to a use-after-free error detected by KASAN. The vulnerability is timing-sensitive and requires a guest to arm the timer and request shutdown. The fix involves synchronizing hrtimer_cancel() to block until the callback completes before vCPU destruction.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel affects the RISC-V KVM subsystem's handling of high-resolution timers (hrtimer) during teardown. Specifically, the non-Sstc hrtimer callback clears the next_set flag before the final use of the vCPU. If the teardown process observes next_set as false while the callback is still executing, it skips hrtimer_cancel(), allowing kvm_destroy_vcpus() to free the vCPU prematurely. This leads to a use-after-free condition detected by KASAN during spinlock operations. The race condition can be triggered by a guest arming the timer via SBI TIME and requesting shutdown via SBI legacy shutdown or SRST, with the host VM monitor destroying the VM upon KVM_EXIT_SYSTEM_EVENT. The patch ensures hrtimer_cancel() synchronizes with any running callback, blocking teardown until safe, thus preventing the use-after-free.
Potential Impact
This vulnerability can cause a use-after-free condition in the kernel, potentially leading to kernel crashes or undefined behavior. It affects the stability and security of the host running RISC-V KVM virtual machines. There is no indication of remote code execution or privilege escalation in the provided data. Exploitation requires specific timing and guest cooperation to trigger the race condition.
Mitigation Recommendations
A patch has been applied to synchronize hrtimer_cancel() with any running callback during vCPU teardown, preventing use-after-free errors. Users should update to the fixed Linux kernel version containing this patch. Since this is a kernel-level fix, no additional mitigation is required beyond applying the official patch. Patch status is confirmed by the vendor advisory describing the fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w23m-4j94-2gwq
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98464"]
Threat ID: 6ad520b02cdf04f656993b04
Added to database: 10/18/2026, 19:40:32 UTC
Last enriched: 10/18/2026, 20:04:16 UTC
Last updated: 10/18/2026, 22:02:57 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.