Use-after-free from double socket destroy in Linux kernel TCP abort
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
The Linux kernel TCP stack can destroy an unaccepted child socket twice when tcp_abort() races with listener shutdown. A local user with low privileges can trigger a double sock_put() and a use-after-free, which the CVSS vector rates as high impact to confidentiality, integrity and availability. Affected Linux kernel versions are from 6.6.84 before 6.6.163, from 6.1.132 before 6.2, from 6.10.8 before 6.11, and from 6.11 onward.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: tcp: avoid double destroy in tcp_abort() of an unaccepted child tcp_abort() checks for TCP_CLOSE while only owning the socket lock, then grabs the BH lock before calling tcp_done_with_error(). For a child still sitting in a listener accept queue (which can be reached via SOCK_DESTROY or bpf_sock_destroy()), inet_csk_listen_stop() can run in this window: it only holds the child BH lock, and calls inet_child_forget(), which disconnects, orphans and destroys the child. tcp_abort() then calls tcp_done_with_error() -> tcp_done(), which sees SOCK_DEAD and calls inet_csk_destroy_sock() a second time, leading to a double sock_put() and a use-after-free. Recheck TCP_CLOSE after acquiring the BH lock, unless we just closed a listener ourselves, in which case tcp_done_with_error() must still run to report the error. Note that the WARN_ON(sock_owned_by_user(child)) in inet_csk_listen_stop() can still trigger in this window. [edumazet: recheck TCP_CLOSE under the BH lock instead of moving the test, smaller diff]
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
For the Linux kernel, the fixed versions are 6.2, 6.6.163, 6.11, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc1.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.2, 6.11
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139098
- 2026-11-30 Alias added: GHSA-fhq6-gwg3-f43j
- 2026-12-01 CVSS score added · CNA
References
Other 5
- https://git.kernel.org/stable/c/b6bdafd96b74ad0684f09599f9d56695c1854968
- https://git.kernel.org/stable/c/35732ee7c3a78061dea9421d44d382c94f53ff6c
- https://git.kernel.org/stable/c/ee9cfcb38b09569c50ce0ab3dabafa201c498ae1
- https://git.kernel.org/stable/c/92f78b000427f5705171497135fe4f0d202c0a88
- https://git.kernel.org/stable/c/dbd62ad55a4c898f5a4c9edb20c0c062afb799df
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-139098 · CVE Program
- CVE-2026-139098 · NVD
- GHSA-fhq6-gwg3-f43j · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences