CVE-2026-142949

Not scored yetLast modified Dec 3, 2026

Description

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

tcp: fix NULL pointer dereference when restarting a Fast Open listener

When a valid RST is received for a Fast Open child accepted before the three-way handshake completes, reqsk_fastopen_remove() adds the request_sock to the listener's RST list if the listener is in TCP_LISTEN.

An application can call shutdown(SHUT_RD) on a listener socket. inet_csk_listen_stop() checks rskq_rst_head without holding fastopenq.lock. If rskq_rst_head is NULL, it does not acquire the lock and therefore does not synchronize with an insertion by reqsk_fastopen_remove() after that function has passed the TCP_LISTEN check.

The more likely outcome of this race, even without a subsequent listen(), is a leak. If reqsk_fastopen_remove() inserts a request_sock after inet_csk_listen_stop() observes an empty list and returns, the request_sock is stranded in rskq_rst_head and keeps a reference on the listener. The socket is already in TCP_CLOSE, so a subsequent close() does not call inet_csk_listen_stop() again.

If listen() is called again on the same socket before the delayed list insertion, the insertion can overlap the queue initialization in reqsk_queue_alloc(). If it occurs after rskq_rst_head is set to NULL but before rskq_rst_tail is set to NULL, rskq_rst_head points to the request_sock while rskq_rst_tail is NULL.

When a valid RST is later received for another accepted Fast Open child, rskq_rst_head is not NULL, so reqsk_fastopen_remove() attempts to write the request_sock pointer to rskq_rst_tail->dl_next while rskq_rst_tail is NULL. KASAN reports:

BUG: KASAN: null-ptr-deref in reqsk_fastopen_remove+0x147/0x210 Write of size 8 at addr 0000000000000088 by task swapper/3/0 ... Call Trace: <IRQ> ... reqsk_fastopen_remove+0x147/0x210 tcp_check_req+0xa70/0x1060 ... tcp_rcv_state_process+0x1cb/0x2ae0 ... tcp_v4_do_rcv+0x1fe/0x740 tcp_v4_rcv+0x1744/0x2070 ... ip_protocol_deliver_rcu+0x5c/0x280 ip_local_deliver_finish+0x171/0x330 ip_local_deliver+0x107/0x370 ... </IRQ>

To widen the race window, the issue was reproduced after adding mdelay(3000) immediately after reqsk_fastopen_remove() checks that the listener is in TCP_LISTEN and immediately after reqsk_queue_alloc() sets rskq_rst_head to NULL.

Make inet_csk_listen_stop() acquire fastopenq.lock regardless of the value of rskq_rst_head and detach the list while holding the lock. With this synchronization, reqsk_fastopen_remove() either inserts the request_sock before inet_csk_listen_stop() acquires the lock, in which case inet_csk_listen_stop() reclaims it, or sees that the listener is not in TCP_LISTEN and does not insert anything.

Metrics

No CVSS score has been published yet.

Affected software

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

VendorProductVersions
LinuxLinux>= 0536fcc039a8926ec12ec587f41a83f7acafeb82, < 95daf3d2051c8f7df4e81f1f41b465b0294efb3a; >= 0536fcc039a8926ec12ec587f41a83f7acafeb82, < 86fe1770040e2e95ddb03cadc1f34445d2d8a475; >= 0536fcc039a8926ec12ec587f41a83f7acafeb82, < f2e4b0ecb3971cff430bfdc46a9019cec658b342; >= 0536fcc039a8926ec12ec587f41a83f7acafeb82, < 06776d859f7fce1318081cae7c6576931a194d18; >= 0536fcc039a8926ec12ec587f41a83f7acafeb82, < 44f57efaebb0325230cce416204e1ce01e435d2a; >= 0536fcc039a8926ec12ec587f41a83f7acafeb82, < aa40afa831ebfe45e40a23721711059f2ac584d4
LinuxLinux4.4

References

Timeline

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

Related CVEs from 2026

CVE-2026-142950In the Linux kernel, the following vulnerability has been resolved: nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem() CoCVE-2026-142951In the Linux kernel, the following vulnerability has been resolved: sctp: fix skb_over_panic when adding addresses with a pending delete ofCVE-2026-142952In the Linux kernel, the following vulnerability has been resolved: accel/ivpu: Defer recovery until probe completes An error IRQ that firCVE-2026-142953In the Linux kernel, the following vulnerability has been resolved: gpio: mpsse: reject bulk-in endpoints smaller than 3 bytes mpsse_read(CVE-2026-142954In the Linux kernel, the following vulnerability has been resolved: blk-mq: take quiesce_lock when removing a queue from the tag set UnquiCVE-2026-142955In the Linux kernel, the following vulnerability has been resolved: fou: reserve headroom before pushing the encap header ip_tunnel_xmit()CVE-2026-142956In the Linux kernel, the following vulnerability has been resolved: iio: trigger: Return an error when the trigger has no free irq iio_triCVE-2026-142957In the Linux kernel, the following vulnerability has been resolved: iio: temperature: hid-sensor-temperature: Use per-instance callbacks hCVE-2026-142958In the Linux kernel, the following vulnerability has been resolved: iio: proximity: sx9500: ignore event config writes that don't change stCVE-2026-142959In the Linux kernel, the following vulnerability has been resolved: iio: light: tsl2591: don't divide by zero The TSL2591 has two raw lighCVE-2026-142967.5When using the Direct XIP update strategy, the main application image starts other cores (i.e. radio core), based on the currently active slCVE-2026-142960In the Linux kernel, the following vulnerability has been resolved: iio: imu: kmx61: reject duplicate event disable The IIO core does not
CVE-2026-142949: Unscored | Vulnix