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 (6)
Scores
CVSS v3
5.5
EPSS
0.0001
EPSS Percentile
2.3%
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 (25)
Linux/Linux
< 5.18
Linux/Linux
1829b24a36ca12ca95b96d5478faeff40c17f2b6
Linux/Linux
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 41de342278ae025c99cc8d33648773f05e306cf1
Linux/Linux
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 449ec5fc99f45974525ba9eea16b6670c45cd363
Linux/Linux
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 97fb7afec404912d967a7d4715f37742666b3084
Linux/Linux
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - c36e206f302f1ddefed92d09ecbba070e1ae079e
Linux/Linux
307d021b1a7f33048b624f7aaeaa75e3eae571f1
Linux/Linux
5.18
Linux/Linux
6.12.83 - 6.12.*
Linux/Linux
6.18.24 - 6.18.*
... and 15 more
Published
Apr 24, 2026
Tracked Since
Apr 24, 2026