In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix NULL iassocinode dereference in nilfsmdtsavetoshadowmap The DAT inode's btree node cache (iassocinode) is initialized lazily during btree operations. However, nilfsmdtsavetoshadowmap() assumes iassocinode is already initialized when copying dirty pages to the shadow map during GC. If NILFSIOCTLCLEANSEGMENTS is called immediately after mount before any btree operation has occurred on the DAT inode, iassocinode is NULL leading to a general protection fault. Fix this by calling nilfsattachbtreenodecache() on the DAT inode in nilfsdatread() at mount time, ensuring iassoc_inode is always initialized before any GC operation can use it.