cvelo
P4 · InfoEPSS 0.3%

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

  • CVE-2026-142947
  • GHSA-v5pr-pq9v-742f
  • EUVD-2026-142356

Description

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.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run a version before 7.3.6update to 7.3.6 or later
    • If you run a version before 6.18.65update to 6.18.65 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    before 7.3.67.3.6
    before 6.18.656.18.65
    from 6.18.65 up to 6.18.*: not affectednone stated
    from 7.3.6 up to 7.3.*: not affectednone stated
    from 7.4-rc1 onwards: not affectednone stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.