summaryrefslogtreecommitdiff
path: root/security/integrity/ima/ima_main.c
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2024-03-22 17:03:12 +0300
committerMimi Zohar <zohar@linux.ibm.com>2024-04-08 14:55:47 +0300
commitbe84f32bb2c981ca670922e047cdde1488b233de (patch)
treea3c135a23ab2e801c0f2ab977e0a77d2122cdb13 /security/integrity/ima/ima_main.c
parentfec50db7033ea478773b159e0e2efb135270e3b7 (diff)
downloadlinux-be84f32bb2c981ca670922e047cdde1488b233de.tar.xz
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. Link: https://lore.kernel.org/all/20240202182732.GE2087318@ZenIV/ Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security/integrity/ima/ima_main.c')
0 files changed, 0 insertions, 0 deletions