# CVE-2024-39494: ima: Fix use-after-free on a dentry's dname.name

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2024-07-12T12:20:30.348Z
- Modified: 2026-08-05T11:33:43.864Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 6.9.6 up to 6.9.*; from 6.10 up to *)
- debian debian_linux: 11.0
- linux linux_kernel: from 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.6

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/480afcbeb7aaaa22677d3dd48ec590b441eaac1a> (patch)
- <https://git.kernel.org/stable/c/edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb> (patch)
- <https://git.kernel.org/stable/c/0b31e28fbd773aefb6164687e0767319b8199829> (patch)
- <https://git.kernel.org/stable/c/7fb374981e31c193b1152ed8d3b0a95b671330d4> (patch)
- <https://git.kernel.org/stable/c/dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c> (patch)
- <https://git.kernel.org/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c> (patch)
- <https://git.kernel.org/stable/c/be84f32bb2c981ca670922e047cdde1488b233de> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2024-39494](https://www.cve.org/CVERecord?id=CVE-2024-39494), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-39494](https://nvd.nist.gov/vuln/detail/CVE-2024-39494), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-39494 · Whole record: https://cve.day/CVE-2024-39494.json · Rebuilt by cve.day 2026-11-25T22:58:42.816Z
