NULL pointer dereference in Linux kernel TCP Fast Open listeners
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Partial Red Hat: 6 without a fix
No CVSS vector from any source. Fix status from CNA and Red Hat.
Summary
Linux kernel versions from 4.4 are affected by a race in the TCP Fast Open listener code, where a request socket can be left unsynchronized after shutdown(SHUT_RD) and a later listen(). The race can cause a NULL pointer dereference in the kernel when a valid RST arrives for another accepted Fast Open child. The race can also leave a stranded request socket that holds a reference on the listener.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Linux kernel fixed versions are 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7 and 7.4-rc4. Red Hat currently has no fix available for Red Hat Enterprise Linux 8, 9 and 10 and OpenShift Container Platform 4 and 5, and has no fix planned for Red Hat Enterprise Linux 6.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · CNA Linux (Linux) Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc4
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Enterprise Linux 7
Timeline
- 2026-12-03 Threatist record created from CVE-2026-142949
- 2026-12-03 Alias added: GHSA-jr3h-g77g-3rv9
- 2026-12-03 Affected versions changed · Red Hat
- 2026-12-03 CVSS score added · Red Hat
References
Other 6
- https://git.kernel.org/stable/c/95daf3d2051c8f7df4e81f1f41b465b0294efb3a
- https://git.kernel.org/stable/c/86fe1770040e2e95ddb03cadc1f34445d2d8a475
- https://git.kernel.org/stable/c/f2e4b0ecb3971cff430bfdc46a9019cec658b342
- https://git.kernel.org/stable/c/06776d859f7fce1318081cae7c6576931a194d18
- https://git.kernel.org/stable/c/44f57efaebb0325230cce416204e1ce01e435d2a
- https://git.kernel.org/stable/c/aa40afa831ebfe45e40a23721711059f2ac584d4
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-142949 · CVE Program
- CVE-2026-142949 · NVD
- FIRST EPSS
- GHSA-jr3h-g77g-3rv9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-142949 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences