CVE-2026-31577
nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map
Check your servers for CVE-2026-31577
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31577 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.85% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d626fcdabea2258be395a775bdbe09270e9bf73d, before 6637bbcfb59df5b732a79e5ab1a74886a0b93d59 affected from d05cc5395e36711edad8bdef6945f138d8a7097b, before 837c7a59fb58f81b0db33848357f6a5d0d1250ad affected from e897be17a441fa637cd166fc3de1445131e57692, before 7902b1df1520a0880bcda7a3704cfacd17905a83 affected from e897be17a441fa637cd166fc3de1445131e57692, before 7318e3549518ce8f14776a489d86488d80d7e2c8 affected from e897be17a441fa637cd166fc3de1445131e57692, before 449ec5fc99f45974525ba9eea16b6670c45cd363 affected from e897be17a441fa637cd166fc3de1445131e57692, before c36e206f302f1ddefed92d09ecbba070e1ae079e affected from e897be17a441fa637cd166fc3de1445131e57692, before 41de342278ae025c99cc8d33648773f05e306cf1 affected from e897be17a441fa637cd166fc3de1445131e57692, before 97fb7afec404912d967a7d4715f37742666b3084 affected from e897be17a441fa637cd166fc3de1445131e57692, before 4a4e0328edd9e9755843787d28f16dd4165f8b48 affected 6c3da8c0a35bbafe359d9166269d5590f29664de affected 605babb979c213737618b1c837e89624e5ab11fd affected 307d021b1a7f33048b624f7aaeaa75e3eae571f1 affected 1829b24a36ca12ca95b96d5478faeff40c17f2b6 affected from 5.10.118, before 5.10.258 affected from 5.15.42, before 5.15.209 affected from 4.14.296, before 4.15 affected from 4.19.245, before 4.20 affected from 5.4.196, before 5.5 affected from 5.17.10, before 5.18
Other versions: unaffected
|
| Linux |
affected 5.18 unaffected before 5.18 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.136 up to and including 6.6.* unaffected from 6.12.83 up to and including 6.12.* unaffected from 6.18.24 up to and including 6.18.* unaffected from 6.19.14 up to and including 6.19.* unaffected from 7.0.1 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31577 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31577
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31577
trivy image --scanners vuln IMAGE | grep CVE-2026-31577
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/6637bbcfb59df5b732a79e5ab1a74886a0b93d59 git.kernel.org
- https://git.kernel.org/stable/c/837c7a59fb58f81b0db33848357f6a5d0d1250ad git.kernel.org
- https://git.kernel.org/stable/c/7902b1df1520a0880bcda7a3704cfacd17905a83 git.kernel.org
- https://git.kernel.org/stable/c/7318e3549518ce8f14776a489d86488d80d7e2c8 git.kernel.org
- https://git.kernel.org/stable/c/449ec5fc99f45974525ba9eea16b6670c45cd363 git.kernel.org
- https://git.kernel.org/stable/c/c36e206f302f1ddefed92d09ecbba070e1ae079e git.kernel.org
- https://git.kernel.org/stable/c/41de342278ae025c99cc8d33648773f05e306cf1 git.kernel.org
- https://git.kernel.org/stable/c/97fb7afec404912d967a7d4715f37742666b3084 git.kernel.org
- https://git.kernel.org/stable/c/4a4e0328edd9e9755843787d28f16dd4165f8b48 git.kernel.org
Source: the record CVE-2026-31577 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse