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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-12 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-39494, DEBIAN-CVE-2024-39494
- Record: https://cvemate.com/vulnerability/CVE-2024-39494 · JSON: https://cvemate.com/vulnerability/CVE-2024-39494/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.306%, percentile 25.189%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 133)

- debian linux (Debian): \< 6.1.99-1 \| \< 6.9.7-1
- ubuntu linux (Ubuntu): \< 4.4.0-260.294 \| \< 4.15.0-230.242 \| \< 5.4.0-196.216 \| \< 5.15.0-122.132 \| \< 6.8.0-44.44
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1137.143 \| \< 4.4.0-1175.190 \| \< 4.15.0-1174.187 \| \< 5.4.0-1133.143 \| \< 5.15.0-1070.76 \| \< 6.8.0-1015.16
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1070.76~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1133.143~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1015.16~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2112.118 \| All versions (No fix recorded) \| \< 5.4.0-1133.143+fips1 \| \< 5.15.0-1070.76+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1174.187~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1182.197~14.04.1 \| \< 4.15.0-1182.197~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1138.145 \| \< 5.15.0-1073.82 \| \< 6.8.0-1014.16
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1182.197
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 33)

- <https://git.kernel.org/stable/c/480afcbeb7aaaa22677d3dd48ec590b441eaac1a>
- <https://git.kernel.org/stable/c/edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb>
- <https://git.kernel.org/stable/c/0b31e28fbd773aefb6164687e0767319b8199829>
- <https://git.kernel.org/stable/c/7fb374981e31c193b1152ed8d3b0a95b671330d4>
- <https://git.kernel.org/stable/c/dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c>
- <https://git.kernel.org/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c>
- <https://git.kernel.org/stable/c/be84f32bb2c981ca670922e047cdde1488b233de>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://ubuntu.com/security/CVE-2024-39494>
- <https://www.cve.org/CVERecord?id=CVE-2024-39494>
- <https://git.kernel.org/linus/be84f32bb2c981ca670922e047cdde1488b233de>
- <https://ubuntu.com/security/notices/USN-6999-1>
- <https://ubuntu.com/security/notices/USN-7004-1>
- <https://ubuntu.com/security/notices/USN-7005-1>
- <https://ubuntu.com/security/notices/USN-7008-1>
- <https://ubuntu.com/security/notices/USN-7005-2>
- <https://ubuntu.com/security/notices/USN-7021-1>
- <https://ubuntu.com/security/notices/USN-7022-1>
- <https://ubuntu.com/security/notices/USN-6999-2>

---

Data as of 2026-12-05T04:23:54.215Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
