AZL-117754: CVE-2026-142947 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
What runtime condition is required for the unsafe debugfs operation to occur?
The condition occurs when devm_add_action_or_reset() fails because devres allocation fails. In that failure path, the debugfs directory has already been removed, but the code would otherwise attempt to create the einj_inject file using the released directory as its parent.
What does the resolved change do in the failure path?
It skips creation of the einj_inject debugfs file when devm_add_action_or_reset() fails. This avoids using a dentry whose final reference was dropped and whose memory may be pending delayed freeing.