Bug 1227716 (CVE-2024-39494) - VUL-0: CVE-2024-39494: kernel: ima: fix use-after-free on a dentry's dname.name
Summary: VUL-0: CVE-2024-39494: kernel: ima: fix use-after-free on a dentry's dname.name
Status: NEW
Alias: CVE-2024-39494
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P2 - High : Major
Target Milestone: ---
Assignee: David Disseldorp
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/413809/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-39494:7.8:(AV:...
Keywords:
Depends on:
Blocks: 1227901
  Show dependency treegraph
 
Reported: 2024-07-12 14:33 UTC by SMASH SMASH
Modified: 2024-07-16 09:12 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-07-12 14:33:50 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-39494
https://www.cve.org/CVERecord?id=CVE-2024-39494
https://git.kernel.org/stable/c/7fb374981e31c193b1152ed8d3b0a95b671330d4
https://git.kernel.org/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c
https://git.kernel.org/stable/c/be84f32bb2c981ca670922e047cdde1488b233de
https://git.kernel.org/stable/c/dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c