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-93827 Overview
CVE-2026-93827 is a double-free vulnerability in the Linux kernel's virtio-fs driver. The flaw resides in virtio_fs_setup_vqs(), which allocates fs->vqs and fs->mq_map before invoking virtio_find_vqs(). When virtio_find_vqs() fails, the error path frees both pointers but leaves them dangling in struct virtio_fs. The subsequent virtio_fs_probe() cleanup drops the last kobject reference, and virtio_fs_ktype_release() frees the same pointers a second time. The condition is reproducible when a malformed virtio-fs device advertises more request queues than the underlying transport provides.
Critical Impact
A local attacker able to present a malicious virtio-fs device can trigger a kernel double-free during probe, enabling denial of service or potential memory corruption with high confidentiality, integrity, and availability impact.
Affected Products
- Linux kernel versions containing the virtio-fs driver with the vulnerable virtio_fs_setup_vqs() error path
- Guest virtual machines running affected kernels with virtio-fs filesystem support enabled
- Host and container environments exposing virtio-fs devices to untrusted workloads
Discovery Timeline
- 2026-09-24 - CVE-2026-93827 published to the National Vulnerability Database (NVD)
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93827
Vulnerability Analysis
The vulnerability is a double-free [CWE-415] in the virtio-fs driver's queue setup logic. During probe, virtio_fs_setup_vqs() allocates two heap buffers assigned to fs->vqs and fs->mq_map. These buffers hold virtqueue references and the mapping between request queues and host CPUs.
If virtio_find_vqs() returns an error, the function frees both allocations and propagates the error upward. However, it does not reset the pointer fields in the virtio_fs structure. Those stale pointers remain accessible to the kobject release path.
When virtio_fs_probe() observes the failure, it drops the final kobject reference. The release callback virtio_fs_ktype_release() unconditionally calls kfree() on fs->vqs and fs->mq_map, freeing the already-released memory a second time. Freeing a chunk twice through the SLUB allocator can corrupt free-list metadata and may be weaponized for privilege escalation under favorable heap conditions.
Root Cause
The root cause is incomplete cleanup state management in the error path of virtio_fs_setup_vqs(). The function releases memory but does not nullify the owning pointers, violating the kernel convention that freed pointers in long-lived structures must be set to NULL so later kfree(NULL) calls become no-ops. The upstream fix assigns NULL to fs->vqs and fs->mq_map immediately after kfree() in the error path.
Attack Vector
Exploitation requires local access to influence the virtio-fs device presented to the kernel. A malicious or compromised hypervisor, a crafted virtual device, or a USB/thunderbolt bridge that emulates virtio transport can advertise more request queues than the transport actually supports. During guest probe, virtio_find_vqs() fails on the excess queue, triggering the double-free cleanup sequence. The attack vector is local with no user interaction and no privileges required inside the guest.
See the upstream fix in Kernel Git Commit 20ef4739, Kernel Git Commit 3fbc5ee7, and Kernel Git Commit 6af3330e for the sanitized remediation.
Detection Methods for CVE-2026-93827
Indicators of Compromise
- Kernel panic or oops messages referencing virtio_fs_setup_vqs, virtio_fs_probe, or virtio_fs_ktype_release during device probe
- SLUB allocator warnings such as double free or corruption logged by dmesg shortly after virtio-fs device enumeration
- Unexpected guest crashes immediately after attaching a virtio-fs share with a mismatched queue count
Detection Strategies
- Monitor kernel ring buffers for BUG: KASAN: double-free entries tied to the virtio_fs module when KASAN-enabled kernels are deployed
- Correlate hypervisor logs showing virtio-fs device attach events with guest kernel faults occurring within the probe window
- Audit running kernel versions across the fleet to identify hosts and guests that have not applied the referenced stable commits
Monitoring Recommendations
- Forward dmesg and /var/log/kern.log to a centralized log pipeline and alert on virtio_fs-related stack traces
- Track kernel package versions and patch state through configuration management to confirm remediation coverage
- Flag any guest VM that performs repeated virtio-fs probe attempts, which may indicate exploitation probing
How to Mitigate CVE-2026-93827
Immediate Actions Required
- Apply the upstream stable kernel patches referenced in commits 20ef4739, 3fbc5ee7, and 6af3330e as soon as distribution packages become available
- Restrict exposure of virtio-fs devices to guests from trusted hypervisor configurations only, and avoid attaching virtio-fs shares from untrusted sources
- Inventory kernels across physical hosts, virtual machines, and container hosts to prioritize patching of systems that load the virtio_fs module
Patch Information
The fix sets fs->vqs and fs->mq_map to NULL immediately after kfree() in the virtio_fs_setup_vqs() error path. This ensures the later virtio_fs_ktype_release() call encounters an uninitialized state and the redundant kfree(NULL) becomes a no-op. The patch is available in the upstream stable tree via the three commits listed in the external references.
Workarounds
- Unload the virtio_fs kernel module on systems that do not require virtio-fs shares using modprobe -r virtio_fs
- Blacklist the virtio_fs module through /etc/modprobe.d/ to prevent automatic loading during device enumeration
- Validate hypervisor virtio-fs configurations so advertised request queue counts match transport capabilities before guest boot
# Prevent the vulnerable module from loading until the kernel is patched
echo "blacklist virtio_fs" | sudo tee /etc/modprobe.d/disable-virtio-fs.conf
sudo modprobe -r virtio_fs 2>/dev/null || true
sudo update-initramfs -u
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

