Skip to content
FlawDB
Sign in

CVE-2026-142947

UNSCORED

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

AI summary AI generated

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.

Mitigation

  • Upgrade Linux to 7.3.6 or later.

Who should check

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

Vulnerability facts

Affected
Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 024bb06e2575088d58b782bd7892e13612c15d7b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7259fcafd28c2c4b38978cda23241d4180ca20ad; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b25af6afd2f26b455108bab03dfeba52378e8dd2; < 6.18.65; < 7.3.6; Linux all versions
Fixed in
Linux 024bb06e2575088d58b782bd7892e13612c15d7b, Linux 7259fcafd28c2c4b38978cda23241d4180ca20ad, Linux 6.18.65, Linux 7.3.6
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 024bb06e2575088d58b782bd7892e13612c15d7b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7259fcafd28c2c4b38978cda23241d4180ca20ad; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b25af6afd2f26b455108bab03dfeba52378e8dd2; < 6.18.65; < 7.3.6—cvelist
Linuxall versions—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

Technologies

References

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
UNSCOREDCVE-2026-142948

i2c: designware: queue only one read command for block reads

Linux kernel
UNSCOREDCVE-2026-142946

ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()

Linux kernel
UNSCOREDCVE-2026-142945

ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()

Linux kernel
UNSCOREDCVE-2026-142944

ASoC: amd: acp-es8336: Use an owned codec device reference

Linux kernel
UNSCOREDCVE-2026-142943

ASoC: amd: acp3x-es83xx: Keep an owned codec device reference

Linux kernel
Sponsors