nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c36e206f302f1ddefed92d09ecbba070e1ae079e, Kernel 6.18.24, Kernel 6.19.14 and 18 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e897be17a441fa637cd166fc3de1445131e57692 <c36e206f302f1ddefed92d09ecbba070e1ae079e, >=6.13 <6.18.24, >=6.19 <6.19.14, >=6.7 <6.12.83, >=7.0 <7.0.1, >=5.15.42 <5.15.209, >=5.17.10 <5.18, >=5.4.196 <5.5, >=d05cc5395e36711edad8bdef6945f138d8a7097b <837c7a59fb58f81b0db33848357f6a5d0d1250ad, >=d626fcdabea2258be395a775bdbe09270e9bf73d <6637bbcfb59df5b732a79e5ab1a74886a0b93d59, >=e897be17a441fa637cd166fc3de1445131e57692 <41de342278ae025c99cc8d33648773f05e306cf1, >=e897be17a441fa637cd166fc3de1445131e57692 <449ec5fc99f45974525ba9eea16b6670c45cd363, >=e897be17a441fa637cd166fc3de1445131e57692 <4a4e0328edd9e9755843787d28f16dd4165f8b48, >=e897be17a441fa637cd166fc3de1445131e57692 <7318e3549518ce8f14776a489d86488d80d7e2c8, >=e897be17a441fa637cd166fc3de1445131e57692 <7902b1df1520a0880bcda7a3704cfacd17905a83, >=e897be17a441fa637cd166fc3de1445131e57692 <97fb7afec404912d967a7d4715f37742666b3084, <6.6.136, =1829b24a36ca12ca95b96d5478faeff40c17f2b6, =307d021b1a7f33048b624f7aaeaa75e3eae571f1, =5.18, =605babb979c213737618b1c837e89624e5ab11fd, =6c3da8c0a35bbafe359d9166269d5590f29664de, >=4.14.296 <4.15, >=4.19.245 <4.20, >=5.10.118 <5.10.258 | c36e206f302f1ddefed92d09ecbba070e1ae079e, 6.18.24, 6.19.14, 6.12.83, 7.0.1, 5.15.209, 5.18, 5.5, 837c7a59fb58f81b0db33848357f6a5d0d1250ad, 6637bbcfb59df5b732a79e5ab1a74886a0b93d59, 41de342278ae025c99cc8d33648773f05e306cf1, 449ec5fc99f45974525ba9eea16b6670c45cd363, 4a4e0328edd9e9755843787d28f16dd4165f8b48, 7318e3549518ce8f14776a489d86488d80d7e2c8, 7902b1df1520a0880bcda7a3704cfacd17905a83, 97fb7afec404912d967a7d4715f37742666b3084, 6.6.136, 4.15, 4.20, 5.10.258 |
| linux-kernel: Kernel | >=4.14.296 <4.15, >=4.19.245 <4.20, >=5.10.118 <5.10.258, >=5.15.42 <5.15.209, >=5.17.10 <5.18, >=5.18.0 <6.1.175, >=5.4.196 <5.5, >=6.13.0 <6.18.24, >=6.19.0 <6.19.14, >=6.2.0 <6.6.136, >=6.20.0 <7.0.1, >=6.7.0 <6.12.83 | 4.15, 4.20, 5.10.258, 5.15.209, 5.18, 6.1.175, 5.5, 6.18.24, 6.19.14, 6.6.136, 7.0.1, 6.12.83 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket