CVE-2026-80521: af_unix: Unlink scc_entry in unix_del_edge().
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
af_unix: Unlink scc_entry in unix_del_edge().
Kyle Zeng reported that GC could free a dead SCC partially.
The scenario is as follows:
1) Create two SCCs:
X -. A <-> B
^--'2) Run the following concurrently:
2-1) send() sk-B to sk-B from sk-X
2-2) close() both A and B
At 2-1), there is a small window where unix_add_edges() publishes a new edge (B <-> B) to GC but its skb is not queued by skb_queue_tail().
If 2-2) completes before skb_queue_tail() and GC is triggered, it judges A <-> B as dead, but B is not freed because GC cannot collect the not-yet-queued skb holding the B <-> B edge.
X -. A <-> B -. This edge is visible
^--' ^..' but skb is not
This itself is not a problem since the next GC run will judge B as dead as well and free it finally.
X -. A <.> B -.
^--' ^--'However, X's SCC forces the next GC to call unix_walk_scc_fast(), and it iterates over A through B's scc_entry.
Let's unlink scc_entry before freeing the vertex in unix_del_edge().
The Linux kernel CVE team has assigned CVE-2026-80521 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit 4090fa373f0e763c43610853d2774b5979915959 and fixed in 7.1.10 with commit e3702470ced94fad74d71e2232f022d2eb752a6d Issue introduced in 6.10 with commit 4090fa373f0e763c43610853d2774b5979915959 and fixed in 7.2 with commit 594d905195024b228c962627ae5ae7c17bd582a4 Issue introduced in 6.1.141 with commit 5dfd283f4651d04dbb70ceb9ae5c4a30eda3c52a Issue introduced in 6.6.93 with commit de7921631ff323369aa63a4324695ab54ea4047e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80521
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/unix/garbage.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/e3702470ced94fad74d71e2232f022d2eb752a6d https://git.kernel.org/stable/c/594d905195024b228c962627ae5ae7c17bd582a4