CVE-2026-142947: cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

cxl/core: Skip einjinject creation when devmaddactionorreset() fails

cxldebugfscreatedportdir() ignores the devmaddactionorreset() result and creates the einjinject file below @dir unconditionally.

When the devres allocation fails, removedebugfs() has already run before devmaddactionorreset() returns, i.e. debugfsremove() has released @dir. The subsequent debugfscreatefile() would then use that dentry as its parent although its final reference was dropped in the removal and its memory is subject to callrcu() delayed freeing.

Skip the file creation in that case, consistent with how the rest of the helper tolerates debugfs failures.

Affected Software

3 affected componentsFixes available
Linux Linux kernel
linux/kernel<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  3. Compensating control

    In cxl_debugfs_create_dport_dir(), skip creating the einj_inject debugfs file when devm_add_action_or_reset() fails, because remove_debugfs() may already have released @dir.

Event History

Dec 3, 2026
CVE Published
via MITRE·03:26 AM
Data Sourced
via MITRE·03:26 AM
Description
Data Sourced
via OSV·03:26 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

What systems are exposed to this issue?

Systems running the Linux kernel with CXL core support are exposed when the affected debugfs path for CXL dports is exercised. The issue involves creation of the einj_inject debugfs file.

2

What conditions are required to trigger the flaw?

A devres allocation must fail during devm_add_action_or_reset() in cxl_debugfs_create_dport_dir(). The helper then removes the debugfs directory, but the vulnerable behavior attempts to create einj_inject using that removed directory dentry.

3

Is there a workaround if the fix cannot be applied immediately?

The provided information identifies the affected functionality as CXL debugfs file creation, but does not provide a documented configuration workaround. Applying a kernel version containing the referenced stable fixes is the indicated remediation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203