In the Linux kernel, the following vulnerability has been resolved:
fs: init flags_valid before calling vfs_fileattr_get
syzbot reported a uninit-value bug in [1].
Similar to the "*get" context where the kernel's internal file_kattr
structure is initialized before calling vfs_fileattr_get(), we should
use the same mechanism when using fa.
[1]
BUG: KMSAN: uninit-value in fuse_fileattr_get+0xeb4/0x1450fs/fuse/ioctl.c:517fuse_fileattr_get+0xeb4/0x1450fs/fuse/ioctl.c:517vfs_fileattr_getfs/file_attr.c:94[inline]__do_sys_file_getattrfs/file_attr.c:416[inline]