CVE-2024-39494

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

HIGH
7.8
CVSS Score
Published: July 12, 2024 at 12:20 PM UTC
Updated: August 5, 2026 at 12:04 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.19 ≤ v < 5.4.2913.7 ≤ v < 5.10.2353.7 ≤ v < 5.15.1743.7 ≤ v < 5.4.2913.7 ≤ v < 6.1.973.7 ≤ v < 6.103.7 ≤ v < 6.6.353.7 ≤ v < 6.9.65.11 ≤ v < 5.15.1745.16 ≤ v < 6.1.975.5 ≤ v < 5.10.2356.2 ≤ v < 6.6.356.7 ≤ v < 6.9.62fe5d6def1672ae6635dd71867bf36dcfaa7434b3.7
Vendor states this is fixed in 0b31e28fbd773aefb6164687e0767319b8199829 (fixed)
Vendor states this is fixed in 480afcbeb7aaaa22677d3dd48ec590b441eaac1a (fixed)
Vendor states this is fixed in 7fb374981e31c193b1152ed8d3b0a95b671330d4 (fixed)
Vendor states this is fixed in a78a6f0da57d058e2009e9958fdcef66f165208c (fixed)
Vendor states this is fixed in be84f32bb2c981ca670922e047cdde1488b233de (fixed)
Vendor states this is fixed in dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c (fixed)
Vendor states this is fixed in edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb (fixed)
Vendor states this is fixed in 3.7 (unaffected)
Vendor states this is fixed in 5.10.235 (unaffected)
Vendor states this is fixed in 5.15.174 (unaffected)
Vendor states this is fixed in 5.4.291 (unaffected)
Vendor states this is fixed in 6.1.97 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.35 (unaffected)
Vendor states this is fixed in 6.9.6 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0b31e28fbd773aefb6164687e0767319b8199829
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/480afcbeb7aaaa22677d3dd48ec590b441eaac1a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7fb374981e31c193b1152ed8d3b0a95b671330d4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/be84f32bb2c981ca670922e047cdde1488b233de
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb
Mailing ListThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card