1. Home
  2. Vulnerabilities
  3. CVE-2026-142947

CVE-2026-142947

cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails

Published 3 Dec 2026 · modified 3 Dec 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 15/100

Summary

In the Linux kernel, the following vulnerability has been resolved: cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails cxl_debugfs_create_dport_dir() ignores the devm_add_action_or_reset() result and creates the einj_inject file below @dir unconditionally. When the devres allocation fails, remove_debugfs() has already run before devm_add_action_or_reset() returns, i.e. debugfs_remove() has released @dir. The subsequent debugfs_create_file() would then use that dentry as its parent although its final reference was dropped in the removal and its memory is subject to call_rcu() delayed freeing. Skip the file creation in that case, consistent with how the rest of the helper tolerates debugfs failures.

Affected products and versions

Linux (3 line(s))
Linux
ProductVersionsFixed inSource
Linux before 6.18.65 (excluded) — CNA (vendor or assigner)
Linux before 7.3.6 (excluded) — CNA (vendor or assigner)
Linux Versions not specified — CNA (vendor or assigner)

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)

How this data is obtained and calculated