CVE-2024-39494 json
ima: Fix use-after-free on a dentry's dname.name
published 2024-07-12 2 y ago modified 2026-08-05 3 mo ago also EUVD-2024-38321
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 23%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.4.291, 5.10.235, 5.15.174, 6.1.97, 6.6.35, 6.9.6, 6.10
- linux Debian 12 6.1.99-1
- linux Debian 14, Debian 13 6.9.7-1
debian advisories DEBIAN-CVE-2024-39494
- linux Ubuntu 20.04 LTS 5.4.0-196.216
- linux Ubuntu 22.04 LTS 5.15.0-122.132
- linux Ubuntu 24.04 LTS 6.8.0-44.44
- linux-aws Ubuntu 20.04 LTS 5.4.0-1133.143
- linux-aws Ubuntu 22.04 LTS 5.15.0-1070.76
- linux-aws Ubuntu 24.04 LTS 6.8.0-1015.16
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1137.146
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1069.77
ubuntu advisories UBUNTU-CVE-2024-39494
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt Linux Micro 6.0 6.4.0-9.1
- kernel-source-rt Linux Micro 6.0 6.4.0-9.1
- kernel-source Linux Micro 6.0 6.4.0-18.1
- kernel-default Linux Micro 6.0 6.4.0-18.1
- kernel-kvmsmall Linux Micro 6.0 6.4.0-18.1
- kernel-default-base Linux Micro 6.0 6.4.0-17.1.1.51
- kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
- kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
suse advisories SUSE-SU-2025:20028-1SUSE-SU-2025:20008-1SUSE-SU-2024:2973-1SUSE-SU-2024:2948-1SUSE-SU-2024:2947-1SUSE-SU-2024:2940-1
- git.kernel.org/stable/c/480afcbeb7aaaa22677d3dd48ec590b441eaac1a commit
- git.kernel.org/stable/c/edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb commit
- git.kernel.org/stable/c/0b31e28fbd773aefb6164687e0767319b8199829 commit
- git.kernel.org/stable/c/7fb374981e31c193b1152ed8d3b0a95b671330d4 commit
- git.kernel.org/stable/c/dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c commit
- git.kernel.org/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c commit
- git.kernel.org/stable/c/be84f32bb2c981ca670922e047cdde1488b233de commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-39494 updated cvss 5.5
kernel: ima: Fix use-after-free on a dentry's dname.name
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.31% chance of exploitation in the next 30 days, higher than 23% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/480afcbeb7aaaa22677d3dd48ec590b441eaac1a
patch
-
git.kernel.org
/stable/c/edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb
patch
-
git.kernel.org
/stable/c/0b31e28fbd773aefb6164687e0767319b8199829
patch
-
git.kernel.org
/stable/c/7fb374981e31c193b1152ed8d3b0a95b671330d4
patch
-
git.kernel.org
/stable/c/dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c
patch
-
git.kernel.org
/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c
patch
-
git.kernel.org
/stable/c/be84f32bb2c981ca670922e047cdde1488b233de
patch
-
lists.debian.org
/debian-lts-announce/2025/05/msg00030.html
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2025/01/msg00001.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2024-39494
- NVD CVE-2024-39494
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.