Skip to contentSkip to conversation

CVE-2026-53311: fuse: fix uninit-value in fuse_dentry_revalidate()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 26

lore
Share & tools
lore
#0 lore raw

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

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

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

fuse: fix uninit-value in fuse_dentry_revalidate()

fuse_dentry_revalidate() may be called with a dentry that didn't had ->d_time initialised. The issue was found with KMSAN, where lookup_open() calls __d_alloc(), followed by d_revalidate(), as shown below:

=====================================================

BUG: KMSAN: uninit-value in fuse_dentry_revalidate+0x150/0x13d0 fs/fuse/dir.c:394
 fuse_dentry_revalidate+0x150/0x13d0 fs/fuse/dir.c:394
 d_revalidate fs/namei.c:1030 [inline]
 lookup_open fs/namei.c:4405 [inline]
 open_last_lookups fs/namei.c:4583 [inline]
 path_openat+0x1614/0x64c0 fs/namei.c:4827
 do_file_open+0x2aa/0x680 fs/namei.c:4859

[...]

Uninit was created at:

 slab_post_alloc_hook mm/slub.c:4466 [inline]
 slab_alloc_node mm/slub.c:4788 [inline]
 kmem_cache_alloc_lru_noprof+0x382/0x1280 mm/slub.c:4807
 __d_alloc+0x55/0xa00 fs/dcache.c:1740
 d_alloc_parallel+0x99/0x2740 fs/dcache.c:2604
 lookup_open fs/namei.c:4398 [inline]
 open_last_lookups fs/namei.c:4583 [inline]
 path_openat+0x135f/0x64c0 fs/namei.c:4827
 do_file_open+0x2aa/0x680 fs/namei.c:4859

[...]
=====================================================

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

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

	Issue introduced in 6.16 with commit 2396356a945bb022aff02656f59c2a45d457043f and fixed in 6.18.34 with commit da3d241c5b925f17a9d8051d7a9e0d454d8e01f6
	Issue introduced in 6.16 with commit 2396356a945bb022aff02656f59c2a45d457043f and fixed in 7.0.10 with commit 3ac9117ba3deab8a5dd22847355f861686f4bee7
	Issue introduced in 6.16 with commit 2396356a945bb022aff02656f59c2a45d457043f and fixed in 7.1 with commit 5a6baf204610589f8a5b5a1cd69d1fe661d9d3cd

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-53311

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/dir.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/da3d241c5b925f17a9d8051d7a9e0d454d8e01f6
	https://git.kernel.org/stable/c/3ac9117ba3deab8a5dd22847355f861686f4bee7
	https://git.kernel.org/stable/c/5a6baf204610589f8a5b5a1cd69d1fe661d9d3cd