Linux Kernel Virtiofs Use-After-Free Vulnerability in Submount Unmount Handling

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's virtiofs implementation, specifically related to the handling of submount unmounting. This issue arises when the 'iput()' function is called from 'fuse_release_end()', potentially leading to a system crash (Oops) if the superblock has already been destroyed. Typically, this situation is avoided by ensuring that the number of waiting requests drops to zero before initiating the superblock shutdown. However, this mechanism only works for the final submount instance, as the wait counter is connection-specific rather than superblock-specific. The vulnerability can be exploited by reverting to synchronous release requests for the auto_submounts case, which currently affects virtiofs only.

Impact

Exploitation of this vulnerability can lead to a use-after-free condition, causing a system crash (Oops) by dereferencing a freed memory location.

Reproduction

To reproduce this vulnerability, create a virtiofs filesystem with submounts. Then, unmount the submounts while the filesystem is still in use, which can cause the superblock to be destroyed before all requests have been processed. This can be automated with a script that mounts and unmounts submounts quickly, simulating a race condition.

Remediation

Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched kernel can be found on the official Linux kernel website.

Added: Jul 19, 2026, 1:20 PM
Updated: Jul 19, 2026, 1:20 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
9.6
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.