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/0x13d0fs/fuse/dir.c:394fuse_dentry_revalidate+0x150/0x13d0fs/fuse/dir.c:394d_revalidatefs/namei.c:1030[inline]lookup_openfs/namei.c:4405[inline]open_last_lookupsfs/namei.c:4583[inline]path_openat+0x1614/0x64c0fs/namei.c:4827do_file_open+0x2aa/0x680fs/namei.c:4859
[...]
Uninit was created at:slab_post_alloc_hookmm/slub.c:4466[inline]slab_alloc_nodemm/slub.c:4788[inline]kmem_cache_alloc_lru_noprof+0x382/0x1280mm/slub.c:4807__d_alloc+0x55/0xa00fs/dcache.c:1740d_alloc_parallel+0x99/0x2740fs/dcache.c:2604lookup_openfs/namei.c:4398[inline]open_last_lookupsfs/namei.c:4583[inline]path_openat+0x135f/0x64c0fs/namei.c:4827do_file_open+0x2aa/0x680fs/namei.c:4859[...]
=====================================================