CVE-2026-31577

nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map

published April 24, 2026

CVSS
—
EPSS
0%
Percentile
5.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00166 · 5.6th percentile
Published
2026-04-24T14:42Z
EPSS history
Timeline
  • 24 APR 14:42Z
    nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map
    cvelistv5