{"api_version":"1","generated_at":"2026-12-03T05:14:26+00:00","cve":"CVE-2026-142947","urls":{"html":"https://cve.report/CVE-2026-142947","api":"https://cve.report/api/cve/CVE-2026-142947.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142947","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142947"},"summary":{"title":"cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:36","updated_at":"2026-12-03 04:18:36"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/b25af6afd2f26b455108bab03dfeba52378e8dd2","name":"https://git.kernel.org/stable/c/b25af6afd2f26b455108bab03dfeba52378e8dd2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7259fcafd28c2c4b38978cda23241d4180ca20ad","name":"https://git.kernel.org/stable/c/7259fcafd28c2c4b38978cda23241d4180ca20ad","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/024bb06e2575088d58b782bd7892e13612c15d7b","name":"https://git.kernel.org/stable/c/024bb06e2575088d58b782bd7892e13612c15d7b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142947","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142947","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 024bb06e2575088d58b782bd7892e13612c15d7b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 7259fcafd28c2c4b38978cda23241d4180ca20ad git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 b25af6afd2f26b455108bab03dfeba52378e8dd2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18.65 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.3.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/cxl/core/port.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"024bb06e2575088d58b782bd7892e13612c15d7b","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"7259fcafd28c2c4b38978cda23241d4180ca20ad","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"b25af6afd2f26b455108bab03dfeba52378e8dd2","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"6.18.65","status":"affected","version":"0","versionType":"semver"},{"lessThan":"7.3.6","status":"affected","version":"0","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/cxl/core/port.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"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","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:26:14.333Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142947","datePublished":"2026-12-03T03:26:14.333Z","dateReserved":"2026-12-03T03:10:28.339Z","dateUpdated":"2026-12-03T03:26:14.333Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:36","lastModifiedDate":"2026-12-03 04:18:36","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142947","Ordinal":"1","Title":"cxl/core: Skip einj_inject creation when devm_add_action_or_rese","CVE":"CVE-2026-142947","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142947","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"cxl/core: Skip einj_inject creation when devm_add_action_or_rese"}]}}}