{"id":"CVE-2026-31577","aliases":["CVE-2026-31577"],"related":[],"kind":"vulnerability","state":"published","title":"nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnilfs2: corrección de la desreferencia de i_assoc_inode NULL en nilfs_mdt_save_to_shadow_map\n\nLa caché de nodos btree del inodo DAT (i_assoc_inode) se inicializa de forma perezosa durante las operaciones btree. Sin embargo, nilfs_mdt_save_to_shadow_map() asume que i_assoc_inode ya está inicializado al copiar páginas sucias al mapa de sombra durante la GC.\n\nSi se llama a NILFS_IOCTL_CLEAN_SEGMENTS inmediatamente después del montaje antes de que haya ocurrido cualquier operación btree en el inodo DAT, i_assoc_inode es NULL, lo que lleva a un fallo de protección general.\n\nEsto se soluciona llamando a nilfs_attach_btree_node_cache() en el inodo DAT en nilfs_dat_read() en el momento del montaje, asegurando que i_assoc_inode siempre esté inicializado antes de que cualquier operación de GC pueda usarlo.","source":"nvd"}],"published":"2026-04-24T14:42:08.879Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"d626fcdabea2258be395a775bdbe09270e9bf73d","fixed":"6637bbcfb59df5b732a79e5ab1a74886a0b93d59","status":"affected"},{"type":"git","introduced":"d05cc5395e36711edad8bdef6945f138d8a7097b","fixed":"837c7a59fb58f81b0db33848357f6a5d0d1250ad","status":"affected"},{"type":"git","introduced":"e897be17a441fa637cd166fc3de1445131e57692","fixed":"7902b1df1520a0880bcda7a3704cfacd17905a83","status":"affected"},{"type":"git","introduced":"e897be17a441fa637cd166fc3de1445131e57692","fixed":"7318e3549518ce8f14776a489d86488d80d7e2c8","status":"affected"},{"type":"git","introduced":"e897be17a441fa637cd166fc3de1445131e57692","fixed":"449ec5fc99f45974525ba9eea16b6670c45cd363","status":"affected"},{"type":"git","introduced":"e897be17a441fa637cd166fc3de1445131e57692","fixed":"c36e206f302f1ddefed92d09ecbba070e1ae079e","status":"affected"},{"type":"git","introduced":"e897be17a441fa637cd166fc3de1445131e57692","fixed":"41de342278ae025c99cc8d33648773f05e306cf1","status":"affected"},{"type":"git","introduced":"e897be17a441fa637cd166fc3de1445131e57692","fixed":"97fb7afec404912d967a7d4715f37742666b3084","status":"affected"},{"type":"git","introduced":"e897be17a441fa637cd166fc3de1445131e57692","fixed":"4a4e0328edd9e9755843787d28f16dd4165f8b48","status":"affected"},{"type":"git","version":"6c3da8c0a35bbafe359d9166269d5590f29664de","status":"affected"},{"type":"git","version":"605babb979c213737618b1c837e89624e5ab11fd","status":"affected"},{"type":"git","version":"307d021b1a7f33048b624f7aaeaa75e3eae571f1","status":"affected"},{"type":"git","version":"1829b24a36ca12ca95b96d5478faeff40c17f2b6","status":"affected"},{"type":"semver","introduced":"5.10.118","fixed":"5.10.258","status":"affected"},{"type":"semver","introduced":"5.15.42","fixed":"5.15.209","status":"affected"},{"type":"semver","introduced":"4.14.296","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.245","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.196","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.17.10","fixed":"5.18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6637bbcfb59df5b732a79e5ab1a74886a0b93d59","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/837c7a59fb58f81b0db33848357f6a5d0d1250ad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7902b1df1520a0880bcda7a3704cfacd17905a83","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7318e3549518ce8f14776a489d86488d80d7e2c8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/449ec5fc99f45974525ba9eea16b6670c45cd363","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c36e206f302f1ddefed92d09ecbba070e1ae079e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41de342278ae025c99cc8d33648773f05e306cf1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/97fb7afec404912d967a7d4715f37742666b3084","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a4e0328edd9e9755843787d28f16dd4165f8b48","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31577","url":"https://www.cve.org/CVERecord?id=CVE-2026-31577","licence":"CVE Terms of Use","modified":"2026-06-14T17:42:01.611Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31577","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31577","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.492Z","epss":{"score":0.0013,"percentile":0.02851,"date":"2026-12-01T12:00:22.000Z"}}