# CVE-2026-142947: cxl/core: Skip einj\_inject creation when devm\_add\_action\_or\_reset() fails

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:26:14.333Z
- **Modified:** 2026-12-03T04:18:36.513Z

> **AI summary (AI-generated, claude-haiku-5-5):** In the Linux kernel's CXL core, a missing error check lets debugfs file creation use a freed directory dentry after a devres allocation failure, causing a use-after-free.

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 024bb06e2575088d58b782bd7892e13612c15d7b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7259fcafd28c2c4b38978cda23241d4180ca20ad; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b25af6afd2f26b455108bab03dfeba52378e8dd2; \< 6.18.65; \< 7.3.6
- Anyone running Linux all versions

## 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.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 024bb06e2575088d58b782bd7892e13612c15d7b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7259fcafd28c2c4b38978cda23241d4180ca20ad; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b25af6afd2f26b455108bab03dfeba52378e8dd2; \< 6.18.65; \< 7.3.6 (cvelist)
- Linux: all versions (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 7.3.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142947. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142947.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 024bb06e2575088d58b782bd7892e13612c15d7b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7259fcafd28c2c4b38978cda23241d4180ca20ad; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b25af6afd2f26b455108bab03dfeba52378e8dd2; < 6.18.65; < 7.3.6; Linux …
Fixed in: Linux 024bb06e2575088d58b782bd7892e13612c15d7b, Linux 7259fcafd28c2c4b38978cda23241d4180ca20ad, Linux 6.18.65, Linux 7.3.6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142947 being exploited?

There is no confirmed exploitation: CVE-2026-142947 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142947?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142947?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 024bb06e2575088d58b782bd7892e13612c15d7b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7259fcafd28c2c4b38978cda23241d4180ca20ad; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b25af6afd2f26b455108bab03dfeba52378e8dd2; \< 6.18.65; \< 7.3.6; Linux all versions.

### Is there a fix for CVE-2026-142947?

Yes. Fixed in Linux 024bb06e2575088d58b782bd7892e13612c15d7b, Linux 7259fcafd28c2c4b38978cda23241d4180ca20ad, Linux 6.18.65, Linux 7.3.6. Upgrade Linux to 7.3.6 or later.

### How do I check if I'm affected by CVE-2026-142947?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/024bb06e2575088d58b782bd7892e13612c15d7b>
- other: <https://git.kernel.org/stable/c/7259fcafd28c2c4b38978cda23241d4180ca20ad>
- other: <https://git.kernel.org/stable/c/b25af6afd2f26b455108bab03dfeba52378e8dd2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142947>

HTML: <https://flawdb.com/CVE-2026-142947> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142947>
