CVE-2026-143150

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

tcp: fix request_sock use-after-free during Fast Open accept()

Commit e3d95ad7da4f ("inet: avoid fastopen lock for regular accept()") made inet_csk_accept() check tfo_listener before taking fastopenq.lock to avoid taking the lock for connections that did not use Fast Open.

reqsk_fastopen_remove() clears tfo_listener while holding fastopenq.lock, then reads req->sk. If inet_csk_accept() concurrently observes tfo_listener after it has been cleared, it skips fastopenq.lock and drops the last reference to the request_sock. This can free the request_sock while reqsk_fastopen_remove() is still using it.

If the freed memory is reused for a new request_sock with req->sk == NULL, the reset path in reqsk_fastopen_remove() can append the new request_sock to the original listener's list of requests that caused an RST. After the new request_sock is freed, the next append writes through the stale rskq_rst_tail into freed memory.

KASAN reported the following use-after-free when writing fastopenq->rskq_rst_tail->dl_next = req:

BUG: KASAN: slab-use-after-free in reqsk_fastopen_remove+0x142/0x210 Write of size 8 at addr ffff888108230688 by task swapper/5/0 ... Call Trace: <IRQ> ... reqsk_fastopen_remove+0x142/0x210 tcp_check_req+0x96f/0xdd0 ... tcp_rcv_state_process+0x19c/0x26b0 ... tcp_v4_do_rcv+0x16e/0x490 tcp_v4_rcv+0x14a0/0x1af0 ... ip_protocol_deliver_rcu+0x39/0x1e0 ip_local_deliver_finish+0x124/0x1e0 ip_local_deliver+0xfb/0x1e0 ... </IRQ>

To widen the race windows, mdelay(5) was added after newsk = req->sk, mdelay(20) after the if (req) reqsk_put(req) block, and mdelay(100) after tcp_rsk(req)->tfo_listener = false. The KASAN report above was reproduced with this kernel.

For the lockless check, use tcp_sk(newsk)->syn_fastopen_child instead of tfo_listener, which reqsk_fastopen_remove() clears.

syn_fastopen_child is a field of the Fast Open child TCP socket referenced by newsk, not of the request_sock. It is set before the child socket is added to the accept queue. The paths that call reqsk_fastopen_remove() in response to a remote ACK or RST do not clear this field.

inet_csk_accept() uses this field to take fastopenq.lock only for Fast Open child sockets and rechecks tfo_listener while holding the lock. Connections that did not use Fast Open continue to avoid the lock.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143151In the Linux kernel, the following vulnerability has been resolved: tcp: fix authentication bypass via unsupported TCP auth options tcp_inCVE-2026-143152In the Linux kernel, the following vulnerability has been resolved: tcp: do not coalesce segments after FIN A FIN consumes a sequence numbCVE-2026-143153In the Linux kernel, the following vulnerability has been resolved: tcp: free saved_syn after an RCU grace period tcp_reqsk_record_syn() aCVE-2026-143154In the Linux kernel, the following vulnerability has been resolved: tls: only install push_pending_record for a TX context tls_set_sw_offlCVE-2026-143155In the Linux kernel, the following vulnerability has been resolved: vsock/virtio: clear vqs[] to avoid a UAF on a failed PM restore virtioCVE-2026-143156In the Linux kernel, the following vulnerability has been resolved: xprtrdma: serialize unmap_sync with xprt_disconnect frwr_unmap_sync() CVE-2026-143157In the Linux kernel, the following vulnerability has been resolved: net: netns: fix INT_MAX nsid cleanup A syzkaller reproducer assigning CVE-2026-143158In the Linux kernel, the following vulnerability has been resolved: net: bridge: use one headroom snapshot for ND replies br_nd_send() calCVE-2026-143159In the Linux kernel, the following vulnerability has been resolved: net/smc: fix link group ownership in handshake abort An aborted first-CVE-2026-143168.1The revoked-key error path builds a human-readable failure reason using sprintf() into a heap buffer. The allocated buffer is too small for CVE-2026-143160In the Linux kernel, the following vulnerability has been resolved: net/smc: fix lgr/lnk lifetime vs diag reader race The diag dump walks CVE-2026-143161In the Linux kernel, the following vulnerability has been resolved: net/rds: Do not unpin a page after a failed atomic pin rds_cmsg_atomic
CVE-2026-143150: Unscored | Vulnix