{"id":"CVE-2024-39494","aliases":["CVE-2024-39494"],"related":[],"kind":"vulnerability","state":"published","title":"ima: Fix use-after-free on a dentry's dname.name","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nima: Fix use-after-free on a dentry's dname.name\n\n->d_name.name can change on rename and the earlier value can be freed;\nthere are conditions sufficient to stabilize it (->d_lock on dentry,\n->d_lock on its parent, ->i_rwsem exclusive on the parent's inode,\nrename_lock), but none of those are met at any of the sites. Take a stable\nsnapshot of the name instead.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nima: Fix use-after-free on a dentry's dname.name\n\n->d_name.name can change on rename and the earlier value can be freed;\nthere are conditions sufficient to stabilize it (->d_lock on dentry,\n->d_lock on its parent, ->i_rwsem exclusive on the parent's inode,\nrename_lock), but none of those are met at any of the sites. Take a stable\nsnapshot of the name instead.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ima: corrige el use-after-free en dentry dname.name -&gt;d_name.name puede cambiar al cambiar el nombre y el valor anterior se puede liberar; existen condiciones suficientes para estabilizarlo (-&gt;d_lock on dentry, -&gt;d_lock on its parent, -&gt;i_rwsem exclusivo en el inodo del padre, rename_lock), pero ninguna de ellas se cumple en ninguno de los sitios. En su lugar, tome una instantánea estable del nombre.","source":"nvd"}],"published":"2024-07-12T12:20:30.348Z","modified":"2026-08-05T11:33:43.864Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"2fe5d6def1672ae6635dd71867bf36dcfaa7434b","fixed":"480afcbeb7aaaa22677d3dd48ec590b441eaac1a","status":"affected"},{"type":"git","introduced":"2fe5d6def1672ae6635dd71867bf36dcfaa7434b","fixed":"edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb","status":"affected"},{"type":"git","introduced":"2fe5d6def1672ae6635dd71867bf36dcfaa7434b","fixed":"0b31e28fbd773aefb6164687e0767319b8199829","status":"affected"},{"type":"git","introduced":"2fe5d6def1672ae6635dd71867bf36dcfaa7434b","fixed":"7fb374981e31c193b1152ed8d3b0a95b671330d4","status":"affected"},{"type":"git","introduced":"2fe5d6def1672ae6635dd71867bf36dcfaa7434b","fixed":"dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c","status":"affected"},{"type":"git","introduced":"2fe5d6def1672ae6635dd71867bf36dcfaa7434b","fixed":"a78a6f0da57d058e2009e9958fdcef66f165208c","status":"affected"},{"type":"git","introduced":"2fe5d6def1672ae6635dd71867bf36dcfaa7434b","fixed":"be84f32bb2c981ca670922e047cdde1488b233de","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.7","status":"unaffected"},{"type":"semver","introduced":"5.4.291","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.235","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.97","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.35","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.6","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"3.19","fixed":"5.4.291"},{"status":"affected","introduced":"5.5","fixed":"5.10.235"},{"status":"affected","introduced":"5.11","fixed":"5.15.174"},{"status":"affected","introduced":"5.16","fixed":"6.1.97"},{"status":"affected","introduced":"6.2","fixed":"6.6.35"},{"status":"affected","introduced":"6.7","fixed":"6.9.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/480afcbeb7aaaa22677d3dd48ec590b441eaac1a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/edf287bc610b18d7a9c0c0c1cb2e97b9348c71bb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b31e28fbd773aefb6164687e0767319b8199829","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7fb374981e31c193b1152ed8d3b0a95b671330d4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be84f32bb2c981ca670922e047cdde1488b233de","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:07:29.508Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39494","url":"https://www.cve.org/CVERecord?id=CVE-2024-39494","licence":"CVE Terms of Use","modified":"2026-08-05T11:33:43.864Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39494","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39494","licence":"Public domain","modified":"2026-08-04T11:19:00.507Z"}],"updatedAt":"2026-11-25T22:58:42.816Z","epss":{"score":0.00306,"percentile":0.25225,"date":"2026-12-01T12:00:22.000Z"}}