CVE-2024-39494
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 2fe5d6def1672ae6635dd71867bf36dcfaa7434b before 480afcbeb7aaaa22677d3dd48ec590b441eaac1a, from 2fe5d6def1672ae6635dd71867bf36dcfaa7434b before edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb, from 2fe5d6def1672ae6635dd71867bf36dcfaa7434b before 0b31e28fbd773aefb6164687e0767319b8199829, from 2fe5d6def1672ae6635dd71867bf36dcfaa7434b before 7fb374981e31c193b1152ed8d3b0a95b671330d4, from 2fe5d6def1672ae6635dd71867bf36dcfaa7434b before dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c, from 2fe5d6def1672ae6635dd71867bf36dcfaa7434b before a78a6f0da57d058e2009e9958fdcef66f165208c, from 2fe5d6def1672ae6635dd71867bf36dcfaa7434b before be84f32bb2c981ca670922e047cdde1488b233de, 3.7
Not affected: before 3.7, from 5.4.291 up to 5.4.*, from 5.10.235 up to 5.10.*, from 5.15.174 up to 5.15.*, from 6.1.97 up to 6.1.*, from 6.6.35 up to 6.6.*
CVE List
debian debian_linux11.0NVD
linux linux_kernelfrom 3.19 before 5.4.291, from 5.5 before 5.10.235, from 5.11 before 5.15.174, from 5.16 before 6.1.97, from 6.2 before 6.6.35, from 6.7 before 6.9.6NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ima: corrige el use-after-free en dentry dname.name ->d_name.name puede cambiar al cambiar el nombre y el valor anterior se puede liberar; existen condiciones suficientes para estabilizarlo (->d_lock on dentry, ->d_lock on its parent, ->i_rwsem exclusivo en el inodo del padre, rename_lock), pero ninguna de ellas se cumple en ninguno de los sitios. En su lugar, tome una instantánea estable del nombre.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-39494 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-39494 changed 2026-08-04Public domain