Lucene search

K
cvelistLinuxCVELIST:CVE-2024-39494
HistoryJul 12, 2024 - 12:20 p.m.

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

2024-07-1212:20:30
Linux
www.cve.org
13
linux kernel
vulnerability
use-after-free
dentry
dname.name
rename_lock
cve

EPSS

0

Percentile

5.1%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "security/integrity/ima/ima_api.c",
      "security/integrity/ima/ima_template_lib.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "7fb374981e31",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "dd431c3ac1fc",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "a78a6f0da57d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "be84f32bb2c9",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "security/integrity/ima/ima_api.c",
      "security/integrity/ima/ima_template_lib.c"
    ],
    "versions": [
      {
        "version": "6.1.97",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.35",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.6",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]