{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "024bb06e2575088d58b782bd7892e13612c15d7b"
            },
            {
              "fixed": "7259fcafd28c2c4b38978cda23241d4180ca20ad"
            },
            {
              "fixed": "b25af6afd2f26b455108bab03dfeba52378e8dd2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142947.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails\n\ncxl_debugfs_create_dport_dir() ignores the devm_add_action_or_reset()\nresult and creates the einj_inject file below @dir unconditionally.\n\nWhen the devres allocation fails, remove_debugfs() has already run\nbefore devm_add_action_or_reset() returns, i.e. debugfs_remove() has\nreleased @dir. The subsequent debugfs_create_file() would then use\nthat dentry as its parent although its final reference was dropped in\nthe removal and its memory is subject to call_rcu() delayed freeing.\n\nSkip the file creation in that case, consistent with how the rest of\nthe helper tolerates debugfs failures.",
  "id": "CVE-2026-142947",
  "modified": "2026-12-03T04:45:41.073512871Z",
  "published": "2026-12-03T03:26:14.333Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/024bb06e2575088d58b782bd7892e13612c15d7b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7259fcafd28c2c4b38978cda23241d4180ca20ad"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b25af6afd2f26b455108bab03dfeba52378e8dd2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142947.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142947"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails"
}