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

Published Dec 3, 2026
·
Updated

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

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

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

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

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

KASAN reported the following use-after-free when writing fastopenq->rskqrsttail->dlnext = req:

BUG: KASAN: slab-use-after-free in reqskfastopenremove+0x142/0x210 Write of size 8 at addr ffff888108230688 by task swapper/5/0 ... Call Trace: <IRQ> ... reqskfastopenremove+0x142/0x210 tcpcheckreq+0x96f/0xdd0 ... tcprcvstateprocess+0x19c/0x26b0 ... tcpv4dorcv+0x16e/0x490 tcpv4rcv+0x14a0/0x1af0 ... ipprotocoldeliverrcu+0x39/0x1e0 iplocaldeliverfinish+0x124/0x1e0 iplocaldeliver+0xfb/0x1e0 ... </IRQ>

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

For the lockless check, use tcpsk(newsk)->synfastopenchild instead of tfolistener, which reqskfastopenremove() clears.

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

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

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=4.1.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1, <=6.12.118-1, <=7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  3. Compensating control

    In inet_csk_accept(), use tcp_sk(newsk)->syn_fastopen_child for the lockless check instead of tfo_listener, then recheck tfo_listener while holding fastopenq.lock.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
Description
Data Sourced
via OSV·09:19 AM
DescriptionAffected Software
Data Sourced
via NVD·10:17 AM
Description

Frequently Asked Questions

1

Which deployments are exposed to this race?

The race involves Linux TCP listeners using TCP Fast Open and concurrent accept and request-removal activity. Regular accepts are relevant because the affected optimization skips the Fast Open queue lock when it observes that the request is no longer marked as having a Fast Open listener.

2

What is the likely impact if the race occurs?

A request_sock can be freed while reqsk_fastopen_remove() is still accessing it. Subsequent reuse and freeing of request_sock memory can cause writes through a stale rskq_rst_tail pointer into freed memory.

3

How can an affected system be identified at runtime?

The issue was observed by KASAN as a slab use-after-free write in reqsk_fastopen_remove(), specifically while writing through fastopenq->rskq_rst_tail->dl_next. KASAN reports with that function and write pattern are evidence of this condition.

4

What remediation is available?

The vulnerability is described as resolved, and stable-kernel fix references are provided for commits b6410a98a09e1d910000dfb045920e94f782443d, 8a8043bb3b7093f92e776a8125be7bd4ad0214d4, and 62754aad50d0b30938bd8ce30b43474ce502a2af.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203