Linux io_uring credential use-after-free privilege escalation
CVE-2022-1043 is a use-after-free vulnerability in the Linux kernel's io_uring subsystem involving premature release of process credentials. The associated fix corrects the error-return check for xa_alloc_cycle(). A local attacker can exploit dangling credential pointers to corrupt system memory, crash the system, or escalate privileges. The affected range begins at Linux 5.12-rc3; the upper boundary is inconsistently identified as 5.14-rc6 or 5.14-rc7.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can elevate a local user to root, corrupt system memory, or cause a system crash. Demonstrated exploitation obtains UID 0 through a data-only temporal memory integrity attack without ROP, information leaks, or SMEP/SMAP/PTI bypasses.
If you can’t patch tonight, do this now.
Grsecurity credential-object canary validation and compiler-instrumented credential-read checks, combined with slab object-reuse hardening, demonstrated prevention of the exploit. With CONFIG_GRKERNSEC_SLAB_OBJREUSE_HARDEN and CONFIG_GRKERNSEC_SLAB_OBJREUSE_HARDEN_PLUGIN enabled, the exploit triggered a canary check, was terminated, and resulted in the attacking user being banned. This hardening is a defense-in-depth measure rather than a replacement for the kernel fix.
Patch, then assume compromise.
Apply the Linux kernel fix titled “io_uring: fix xa_alloc_cycle() error return value check” or install a vendor kernel update incorporating that fix. An exact fixed release is not established by the available information.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.