CVE-2026-139098
tcp: avoid double destroy in tcp_abort() of an unaccepted child
Check your servers for CVE-2026-139098
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139098 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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]
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 26.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 372df1f2057c389490d4ae726eef9772a3a4d5f2, before b6bdafd96b74ad0684f09599f9d56695c1854968 affected from bac76cf89816bff06c4ec2f3df97dc34e150a1c4, before 35732ee7c3a78061dea9421d44d382c94f53ff6c affected from bac76cf89816bff06c4ec2f3df97dc34e150a1c4, before ee9cfcb38b09569c50ce0ab3dabafa201c498ae1 affected from bac76cf89816bff06c4ec2f3df97dc34e150a1c4, before 92f78b000427f5705171497135fe4f0d202c0a88 affected from bac76cf89816bff06c4ec2f3df97dc34e150a1c4, before dbd62ad55a4c898f5a4c9edb20c0c062afb799df affected b753821e069413d801a7c6df3c0b45cff2b443ad affected 1c2ea2326afa066e915b489c4114c5f1944155af affected from 6.6.84, before 6.6.163 affected from 6.1.132, before 6.2 affected from 6.10.8, before 6.11
Other versions: unaffected
|
| Linux |
affected 6.11 unaffected before 6.11 unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139098 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139098
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139098
trivy image --scanners vuln IMAGE | grep CVE-2026-139098
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/b6bdafd96b74ad0684f09599f9d56695c1854968 git.kernel.org
- https://git.kernel.org/stable/c/35732ee7c3a78061dea9421d44d382c94f53ff6c git.kernel.org
- https://git.kernel.org/stable/c/ee9cfcb38b09569c50ce0ab3dabafa201c498ae1 git.kernel.org
- https://git.kernel.org/stable/c/92f78b000427f5705171497135fe4f0d202c0a88 git.kernel.org
- https://git.kernel.org/stable/c/dbd62ad55a4c898f5a4c9edb20c0c062afb799df git.kernel.org
Source: the record CVE-2026-139098 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse