{"id":"CVE-2026-31577","published":"2026-04-24T14:42:08Z","modified":"2026-06-14T17:42:01Z","title":"nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map\n\nThe DAT inode's btree node cache (i_assoc_inode) is initialized lazily\nduring btree operations. However, nilfs_mdt_save_to_shadow_map()\nassumes i_assoc_inode is already initialized when copying dirty pages\nto the shadow map during GC.\n\nIf NILFS_IOCTL_CLEAN_SEGMENTS is called immediately after mount before\nany btree operation has occurred on the DAT inode, i_assoc_inode is\nNULL leading to a general protection fault.\n\nFix this by calling nilfs_attach_btree_node_cache() on the DAT inode\nin nilfs_dat_read() at mount time, ensuring i_assoc_inode is always\ninitialized before any GC operation can use it.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00173,"percentile":0.03905,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6637bbcfb59df5b732a79e5ab1a74886a0b93d59","tags":[]},{"url":"https://git.kernel.org/stable/c/837c7a59fb58f81b0db33848357f6a5d0d1250ad","tags":[]},{"url":"https://git.kernel.org/stable/c/7902b1df1520a0880bcda7a3704cfacd17905a83","tags":[]},{"url":"https://git.kernel.org/stable/c/7318e3549518ce8f14776a489d86488d80d7e2c8","tags":[]},{"url":"https://git.kernel.org/stable/c/449ec5fc99f45974525ba9eea16b6670c45cd363","tags":[]},{"url":"https://git.kernel.org/stable/c/c36e206f302f1ddefed92d09ecbba070e1ae079e","tags":[]},{"url":"https://git.kernel.org/stable/c/41de342278ae025c99cc8d33648773f05e306cf1","tags":[]},{"url":"https://git.kernel.org/stable/c/97fb7afec404912d967a7d4715f37742666b3084","tags":[]},{"url":"https://git.kernel.org/stable/c/4a4e0328edd9e9755843787d28f16dd4165f8b48","tags":[]}],"priority":{"score":0.8,"factors":[{"name":"EPSS percentile","points":0.78}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d626fcdabea2258be395a775bdbe09270e9bf73d, < 6637bbcfb59df5b732a79e5ab1a74886a0b93d59",">= d05cc5395e36711edad8bdef6945f138d8a7097b, < 837c7a59fb58f81b0db33848357f6a5d0d1250ad",">= e897be17a441fa637cd166fc3de1445131e57692, < 7902b1df1520a0880bcda7a3704cfacd17905a83",">= e897be17a441fa637cd166fc3de1445131e57692, < 7318e3549518ce8f14776a489d86488d80d7e2c8",">= e897be17a441fa637cd166fc3de1445131e57692, < 449ec5fc99f45974525ba9eea16b6670c45cd363",">= e897be17a441fa637cd166fc3de1445131e57692, < c36e206f302f1ddefed92d09ecbba070e1ae079e",">= e897be17a441fa637cd166fc3de1445131e57692, < 41de342278ae025c99cc8d33648773f05e306cf1",">= e897be17a441fa637cd166fc3de1445131e57692, < 97fb7afec404912d967a7d4715f37742666b3084",">= e897be17a441fa637cd166fc3de1445131e57692, < 4a4e0328edd9e9755843787d28f16dd4165f8b48","6c3da8c0a35bbafe359d9166269d5590f29664de"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"euvd":{"id":"EUVD-2026-25470","exploited":false,"provenance":"source"}}