CVE-2024-39494

ima: Fix use-after-free on a dentry's dname.name

HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.31 % · percentile 24 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: ima: Fix use-after-free on a dentry's dname.name ->d_name.name can change on rename and the earlier value can be freed; there are conditions sufficient to stabilize it (->d_lock on dentry, ->d_lock on its parent, ->i_rwsem exclusive on the parent's inode, rename_lock), but none of those are met at any of the sites. Take a stable snapshot of the name instead.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 2fe5d6def1672ae6635dd71867bf36dcfaa7434b < 480afcbeb7aaaa22677d3dd48ec590b441eaac1a ; affected 2fe5d6def1672ae6635dd71867bf36dcfaa7434b < edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb ; affected 2fe5d6def1672ae6635dd71867bf36dcfaa7434b < 0b31e28fbd773aefb6164687e0767319b8199829 ; affected 2fe5d6def1672ae6635dd71867bf36dcfaa7434b < 7fb374981e31c193b1152ed8d3b0a95b671330d4 ; affected 2fe5d6def1672ae6635dd71867bf36dcfaa7434b < dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c ; affected 2fe5d6def1672ae6635dd71867bf36dcfaa7434b < a78a6f0da57d058e2009e9958fdcef66f165208c
Linux · Linuxaffected 3.7 ; unaffected 0 < 3.7 ; unaffected 5.4.291 ≤ 5.4.* ; unaffected 5.10.235 ≤ 5.10.* ; unaffected 5.15.174 ≤ 5.15.* ; unaffected 6.1.97 ≤ 6.1.*

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