Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97992 Overview
CVE-2026-97992 is a use-after-free vulnerability in the Linux kernel's vhost-vdpa subsystem. The flaw lives in vhost_vdpa_config_cb(), which loads v->config_ctx and signals the eventfd without acquiring a reference or holding a lock. A concurrent VHOST_VDPA_SET_CONFIG_CALL ioctl can swap and free the context through eventfd_ctx_put(), leaving the callback dereferencing freed memory. With VDUSE as the parent device, the race is reachable from userspace with access to /dev/vduse, which is root by default. The upstream fix adds a spinlock covering every access to config_ctx.
Critical Impact
A local user with access to /dev/vduse can trigger a kernel use-after-free, enabling denial of service and potential local privilege escalation.
Affected Products
- Linux kernel versions containing the vhost-vdpa driver prior to the fix commits
- Systems exposing /dev/vduse to non-root users or containers
- Distributions shipping the VDUSE parent driver with vhost-vdpa support
Discovery Timeline
- 2026-09-25 - CVE-2026-97992 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97992
Vulnerability Analysis
The vulnerability is a classic read-side use-after-free [CWE-416] caused by missing synchronization between an ioctl writer and an asynchronous callback reader. vhost_vdpa_config_cb() loads the config_ctx pointer without taking a reference and without holding any lock, then calls eventfd_signal() on the dereferenced value. In parallel, VHOST_VDPA_SET_CONFIG_CALL swaps v->config_ctx and invokes eventfd_ctx_put(), which drops the last kref and immediately frees the eventfd context with no RCU grace period.
The two paths share no lock. The ioctl executes under vhost_dev.mutex, while the parent device invokes the callback from interrupt or workqueue context. This is distinct from the earlier reopen refcount underflow fixed by commit f6bbf0010ba0, which addressed a stale pointer in vhost_vdpa_config_put(). Here the pointer is maintained correctly; the read side is simply unprotected.
Root Cause
The root cause is an unsynchronized read of a reference-counted pointer. The callback assumes config_ctx remains valid for the duration of the signal call, but no lock, RCU section, or temporary reference enforces that invariant. When the ioctl releases the final reference between the load and the signal, memory is freed and reused.
Attack Vector
Exploitation requires local access to /dev/vduse. A VDUSE process issues VDUSE_DEV_INJECT_CONFIG_IRQ to queue dev->inject, which runs vduse_dev_irq_inject() under VDUSE's dev->irq_lock. A second thread concurrently calls VHOST_VDPA_SET_CONFIG_CALL on the vhost-vdpa file descriptor to swap the call fd. Because VHOST_VDPA_SET_CONFIG_CALL does not go through reset, an in-flight inject is never flushed. KASAN traces published with the patch show the race triggering within seconds, producing a slab-use-after-free read inside eventfd_signal_mask().
No verified public exploit code is available. See the upstream patch commits for technical details.
Detection Methods for CVE-2026-97992
Indicators of Compromise
- KASAN reports showing slab-use-after-free in native_queued_spin_lock_slowpath with a call chain through eventfd_signal_mask and vhost_vdpa_config_cb
- Unexpected kernel oops or panic entries referencing vduse_dev_irq_inject on kworker/u* threads
- Repeated userspace calls to VDUSE_DEV_INJECT_CONFIG_IRQ interleaved with VHOST_VDPA_SET_CONFIG_CALL on the same device
Detection Strategies
- Enable KASAN on test and staging kernels to surface the race during fuzzing or stress testing of VDUSE and vhost-vdpa
- Audit host kernel logs for use-after-free signatures that match the published call trace
- Monitor process access to /dev/vduse and correlate with vhost-vdpa ioctl activity from the same user
Monitoring Recommendations
- Collect dmesg and /var/log/kern.log centrally and alert on BUG: KASAN or general protection fault events referencing vhost or vduse symbols
- Track creation of VDUSE devices and the processes holding file descriptors on /dev/vduse
- Baseline normal eventfd and ioctl volume per container or VM host to detect anomalous callback flooding
How to Mitigate CVE-2026-97992
Immediate Actions Required
- Apply the upstream kernel patches that add a spinlock around all accesses to config_ctx in the vhost-vdpa driver
- Restrict access to /dev/vduse to trusted administrative users and remove exposure from unprivileged containers
- Unload the vduse module on hosts where it is not required
Patch Information
The fix adds a spinlock covering every access to config_ctx, ensuring the callback either signals a live context or observes NULL, and the eventfd_ctx_put() runs only after no callback can reach the old pointer. Patches are available in the following commits: commit 5a075ee2, commit 62be4e3e, commit bf35c894, and commit f4a93f15.
Workarounds
- Deny access to /dev/vduse via udev rules or SELinux/AppArmor policy until the kernel is patched
- Blacklist the vduse kernel module on systems that do not require VDUSE functionality
- Avoid exposing vhost-vdpa device nodes to unprivileged workloads or multi-tenant containers
# Blacklist the vduse module and restrict device access
echo 'blacklist vduse' | sudo tee /etc/modprobe.d/blacklist-vduse.conf
sudo rmmod vduse 2>/dev/null
sudo chmod 0600 /dev/vduse 2>/dev/null
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

