CVE-2026-143222: af_unix: Remove gc_in_progress check in unix_peek_fpl().
In the Linux kernel, the following vulnerability has been resolved:
afunix: Remove gcinprogress check in unixpeekfpl().
unixvertexdead() and unixpeekfpl() are synchronised with unixpeekseq to prevent GC from purging a live socket's recvq.
unixpeekfpl() skips the synchronisation if gcinprogress is false.
However, on weakly ordered arch, GC might have already started working while the write to gcinprogress is buffered.
This does not occur on x86.
This is an unlikely path that happens only when AFUNIX fd is peeked so not worth complicating.
Instead of adding memory barriers in unixgc() and unixpeekfpl(), let's simply remove the broken short-circuit.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel, remove the gc_in_progress check (the short-circuit) from unix_peek_fpl().
Event History
Frequently Asked Questions
Which systems are realistically exposed to this race?
The issue is relevant on weakly ordered architectures. The described condition does not occur on x86.
What activity is required for the issue to occur?
It requires an AF_UNIX file descriptor to be peeked while UNIX-domain socket garbage collection is already beginning. The affected path is described as unlikely.
What is the practical remediation?
Use a Linux kernel version containing the resolved change that removes the gc_in_progress short-circuit in unix_peek_fpl(). The provided stable-kernel references identify fixes for this issue.