nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map (Linux Linux)

CVE-2026-31577
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.13 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-476 — Déréférencement de pointeur nul

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected d626fcdabea2258be395a775bdbe09270e9bf73d < 6637bbcfb59df5b732a79e5ab1a74886a0b93d59 ; affected d05cc5395e36711edad8bdef6945f138d8a7097b < 837c7a59fb58f81b0db33848357f6a5d0d1250ad ; affected e897be17a441fa637cd166fc3de1445131e57692 < 7902b1df1520a0880bcda7a3704cfacd17905a83 ; affected e897be17a441fa637cd166fc3de1445131e57692 < 7318e3549518ce8f14776a489d86488d80d7e2c8 ; affected e897be17a441fa637cd166fc3de1445131e57692 < 449ec5fc99f45974525ba9eea16b6670c45cd363 ; affected e897be17a441fa637cd166fc3de1445131e57692 < c36e206f302f1ddefed92d09ecbba070e1ae079e
Linux · Linuxaffected 5.18 ; unaffected 0 < 5.18 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.136 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD