Skip to contentSkip to conversation

CVE-2026-53381: virtiofs: fix UAF on submount umount

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

virtiofs: fix UAF on submount umount

iput() called from fuse_release_end() can Oops if the super block has already been destroyed. Normally this is prevented by waiting for num_waiting to go down to zero before commencing with super block shutdown.

This only works, however, for the last submount instance, as the wait counter is per connection, not per superblock.

Revert to using synchronous release requests for the auto_submounts case, which is virtiofs only at this time.

The Linux kernel CVE team has assigned CVE-2026-53381 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.10.246 with commit 548e1f2bac1d4df91a6138f26bb4ab00323fd948 and fixed in 5.10.260 with commit 607a1d4c42f649e6197567c0448fd9ebb316cd42
	Issue introduced in 5.15.196 with commit cfd1aa3e2b71f3327cb373c45a897c9028c62b35 and fixed in 5.15.211 with commit 1cc0e3a0c6499aaaa2f21a4fcbba388486afb25e
	Issue introduced in 6.1.158 with commit 83b375c6efef69b1066ad2d79601221e7892745a and fixed in 6.1.177 with commit 0b809199ff87c44487e516a725dd4be2185712ce
	Issue introduced in 6.6.115 with commit bfd17b6138df0122a95989457d8e18ce0b86165e and fixed in 6.6.144 with commit 2181a09ba980f142650fb053666350ead4471cfe
	Issue introduced in 6.12.54 with commit b26923512dbe57ae4917bafd31396d22a9d1691a and fixed in 6.12.95 with commit 97c4691653d145dcc699eca5d3aba3219a520f1f
	Issue introduced in 6.18 with commit 26e5c67deb2e1f42a951f022fdf5b9f7eb747b01 and fixed in 6.18.37 with commit 2abfd3ffbd9452f72535d96ff3982b3ab1f8f2f9
	Issue introduced in 6.18 with commit 26e5c67deb2e1f42a951f022fdf5b9f7eb747b01 and fixed in 7.0.14 with commit 39a2b95e008665c14f84e50ed411d898df7cd11b
	Issue introduced in 6.18 with commit 26e5c67deb2e1f42a951f022fdf5b9f7eb747b01 and fixed in 7.1.2 with commit e09412a714bcd49375198427bb4aa005037a9d6f
	Issue introduced in 6.18 with commit 26e5c67deb2e1f42a951f022fdf5b9f7eb747b01 and fixed in 7.2-rc1 with commit 06b41351779e9289e8785694ade9042ae85e41ea
	Issue introduced in 6.17.4 with commit f19a1390af448d9e193c08e28ea5f727bf3c3049

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53381

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/fuse/file.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/607a1d4c42f649e6197567c0448fd9ebb316cd42
	https://git.kernel.org/stable/c/1cc0e3a0c6499aaaa2f21a4fcbba388486afb25e
	https://git.kernel.org/stable/c/0b809199ff87c44487e516a725dd4be2185712ce
	https://git.kernel.org/stable/c/2181a09ba980f142650fb053666350ead4471cfe
	https://git.kernel.org/stable/c/97c4691653d145dcc699eca5d3aba3219a520f1f
	https://git.kernel.org/stable/c/2abfd3ffbd9452f72535d96ff3982b3ab1f8f2f9
	https://git.kernel.org/stable/c/39a2b95e008665c14f84e50ed411d898df7cd11b
	https://git.kernel.org/stable/c/e09412a714bcd49375198427bb4aa005037a9d6f
	https://git.kernel.org/stable/c/06b41351779e9289e8785694ade9042ae85e41ea