CVE-2026-31577
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
24/04/2026
Last modified:
27/04/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map<br />
<br />
The DAT inode&#39;s btree node cache (i_assoc_inode) is initialized lazily<br />
during btree operations. However, nilfs_mdt_save_to_shadow_map()<br />
assumes i_assoc_inode is already initialized when copying dirty pages<br />
to the shadow map during GC.<br />
<br />
If NILFS_IOCTL_CLEAN_SEGMENTS is called immediately after mount before<br />
any btree operation has occurred on the DAT inode, i_assoc_inode is<br />
NULL leading to a general protection fault.<br />
<br />
Fix this by calling nilfs_attach_btree_node_cache() on the DAT inode<br />
in nilfs_dat_read() at mount time, ensuring i_assoc_inode is always<br />
initialized before any GC operation can use it.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6.136 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.12.83 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.18.24 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (including) | 6.19.14 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 7.0 (including) | 7.0.1 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/41de342278ae025c99cc8d33648773f05e306cf1
- https://git.kernel.org/stable/c/449ec5fc99f45974525ba9eea16b6670c45cd363
- https://git.kernel.org/stable/c/4a4e0328edd9e9755843787d28f16dd4165f8b48
- https://git.kernel.org/stable/c/7318e3549518ce8f14776a489d86488d80d7e2c8
- https://git.kernel.org/stable/c/97fb7afec404912d967a7d4715f37742666b3084
- https://git.kernel.org/stable/c/c36e206f302f1ddefed92d09ecbba070e1ae079e



