PT-2026-167061
CVE-2026-143203
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
CVSS 3.1
7.8
HighMetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
tcp: do not resurrect a former listener with SO ATTACH REUSEPORT [CE]BPF
After listen() + shutdown(), a TCP socket is moved to the closed
section of its reuseport group, while TCP NEW SYN RECV requests
can still reference it as rsk listener.
If SO ATTACH REUSEPORT [CE]BPF is then used on this socket,
reuseport attach prog() calls reuseport alloc(), which resurrects
it into the listening section of a new group, even though the
socket is still in TCP CLOSE.
After close(), the socket stays in that group and the pending
requests keep it allocated. When the final ACK arrives,
reuseport migrate sock() can select this dead socket and
inet csk clone lock() clones it. With a ULP like espintcp installed
while in TCP CLOSE, the child inherits icsk ulp data and sk destruct
after tcp cleanup ulp() cleared icsk ulp ops, leading to a
use-after-free in espintcp destruct().
As done in commit 8cc3aef0cb19 ("tcp: Do not allow buggy transitions
between ehash and lhash2."), deny this transition instead of adding
checks to the fast path.
Only an unhashed former listener is affected. Applications can still
attach a reuseport prog to a socket that never listened, or to a
listener (including one that called listen() again after shutdown()).
Found an issue in the description? Have something to add? Feel free to write us 👾