{"id":"CVE-2026-139098","aliases":["CVE-2026-139098"],"related":[],"kind":"vulnerability","state":"published","title":"tcp: avoid double destroy in tcp_abort() of an unaccepted child","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: avoid double destroy in tcp_abort() of an unaccepted child\n\ntcp_abort() checks for TCP_CLOSE while only owning the socket lock,\nthen grabs the BH lock before calling tcp_done_with_error().\n\nFor a child still sitting in a listener accept queue (which can be\nreached via SOCK_DESTROY or bpf_sock_destroy()), inet_csk_listen_stop()\ncan run in this window: it only holds the child BH lock, and calls\ninet_child_forget(), which disconnects, orphans and destroys the child.\n\ntcp_abort() then calls tcp_done_with_error() -> tcp_done(), which sees\nSOCK_DEAD and calls inet_csk_destroy_sock() a second time, leading to\na double sock_put() and a use-after-free.\n\nRecheck TCP_CLOSE after acquiring the BH lock, unless we just closed\na listener ourselves, in which case tcp_done_with_error() must still\nrun to report the error.\n\nNote that the WARN_ON(sock_owned_by_user(child)) in\ninet_csk_listen_stop() can still trigger in this window.\n\n[edumazet: recheck TCP_CLOSE under the BH lock instead of moving the test, smaller diff]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: avoid double destroy in tcp_abort() of an unaccepted child\n\ntcp_abort() checks for TCP_CLOSE while only owning the socket lock,\nthen grabs the BH lock before calling tcp_done_with_error().\n\nFor a child still sitting in a listener accept queue (which can be\nreached via SOCK_DESTROY or bpf_sock_destroy()), inet_csk_listen_stop()\ncan run in this window: it only holds the child BH lock, and calls\ninet_child_forget(), which disconnects, orphans and destroys the child.\n\ntcp_abort() then calls tcp_done_with_error() -> tcp_done(), which sees\nSOCK_DEAD and calls inet_csk_destroy_sock() a second time, leading to\na double sock_put() and a use-after-free.\n\nRecheck TCP_CLOSE after acquiring the BH lock, unless we just closed\na listener ourselves, in which case tcp_done_with_error() must still\nrun to report the error.\n\nNote that the WARN_ON(sock_owned_by_user(child)) in\ninet_csk_listen_stop() can still trigger in this window.\n\n[edumazet: recheck TCP_CLOSE under the BH lock instead of moving the test, smaller diff]","source":"cvelist"}],"published":"2026-11-30T13:31:33.519Z","modified":"2026-12-01T06:17:34.650Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"372df1f2057c389490d4ae726eef9772a3a4d5f2","fixed":"b6bdafd96b74ad0684f09599f9d56695c1854968","status":"affected"},{"type":"git","introduced":"bac76cf89816bff06c4ec2f3df97dc34e150a1c4","fixed":"35732ee7c3a78061dea9421d44d382c94f53ff6c","status":"affected"},{"type":"git","introduced":"bac76cf89816bff06c4ec2f3df97dc34e150a1c4","fixed":"ee9cfcb38b09569c50ce0ab3dabafa201c498ae1","status":"affected"},{"type":"git","introduced":"bac76cf89816bff06c4ec2f3df97dc34e150a1c4","fixed":"92f78b000427f5705171497135fe4f0d202c0a88","status":"affected"},{"type":"git","introduced":"bac76cf89816bff06c4ec2f3df97dc34e150a1c4","fixed":"dbd62ad55a4c898f5a4c9edb20c0c062afb799df","status":"affected"},{"type":"git","version":"b753821e069413d801a7c6df3c0b45cff2b443ad","status":"affected"},{"type":"git","version":"1c2ea2326afa066e915b489c4114c5f1944155af","status":"affected"},{"type":"semver","introduced":"6.6.84","fixed":"6.6.163","status":"affected"},{"type":"semver","introduced":"6.1.132","fixed":"6.2","status":"affected"},{"type":"semver","introduced":"6.10.8","fixed":"6.11","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b6bdafd96b74ad0684f09599f9d56695c1854968","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35732ee7c3a78061dea9421d44d382c94f53ff6c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee9cfcb38b09569c50ce0ab3dabafa201c498ae1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92f78b000427f5705171497135fe4f0d202c0a88","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbd62ad55a4c898f5a4c9edb20c0c062afb799df","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139098","url":"https://www.cve.org/CVERecord?id=CVE-2026-139098","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:09.071Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139098","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139098","licence":"Public domain","modified":"2026-12-01T06:17:34.650Z"}],"updatedAt":"2026-12-01T06:32:24.221Z","epss":{"score":0.00319,"percentile":0.26848,"date":"2026-12-01T12:00:22.000Z"}}