{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142947",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.339Z",
        "datePublished": "2026-12-03T03:26:14.333Z",
        "dateUpdated": "2026-12-03T03:26:14.333Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T03:26:14.333Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/cxl/core/port.c"
                    ],
                    "versions": [
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "024bb06e2575088d58b782bd7892e13612c15d7b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "7259fcafd28c2c4b38978cda23241d4180ca20ad",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "b25af6afd2f26b455108bab03dfeba52378e8dd2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.18.65",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.3.6",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/cxl/core/port.c"
                    ],
                    "versions": [
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/024bb06e2575088d58b782bd7892e13612c15d7b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7259fcafd28c2c4b38978cda23241d4180ca20ad"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b25af6afd2f26b455108bab03dfeba52378e8dd2"
                }
            ],
            "title": "cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}