CVE-2026-31577
MEDIUMnilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map
Title source: cnaDescription
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map The DAT inode's btree node cache (i_assoc_inode) is initialized lazily during btree operations. However, nilfs_mdt_save_to_shadow_map() assumes i_assoc_inode is already initialized when copying dirty pages to the shadow map during GC. If NILFS_IOCTL_CLEAN_SEGMENTS is called immediately after mount before any btree operation has occurred on the DAT inode, i_assoc_inode is NULL leading to a general protection fault. Fix this by calling nilfs_attach_btree_node_cache() on the DAT inode in nilfs_dat_read() at mount time, ensuring i_assoc_inode is always initialized before any GC operation can use it.
References (9)
Core 9
Core References
Scores
CVSS v3
5.5
EPSS
0.0013
EPSS Percentile
2.6%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-476
Status
published
Products (48)
linux/Kernel
< 5.10.258linux
linux/Kernel
5.11.0 - 5.15.209linux
linux/Kernel
5.16.0 - 6.1.175linux
linux/Kernel
5.18.0 - 6.6.136linux
linux/Kernel
6.13.0 - 6.19.14linux
linux/Kernel
6.19.0 - 7.0.1linux
linux/Kernel
6.2.0 - 6.12.83linux
linux/Kernel
6.7.0 - 6.18.24linux
Linux/Linux
< 5.18
Linux/Linux
1829b24a36ca12ca95b96d5478faeff40c17f2b6
... and 38 more
Published
Apr 24, 2026
Tracked Since
Apr 24, 2026