{"id":"AZL-117463","summary":"CVE-2026-139098 affecting package kernel 6.6.161.1-1","details":"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() -\u003e 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]","modified":"2026-12-02T14:17:33.450734858Z","published":"2026-11-30T14:18:18Z","upstream":["CVE-2026-139098"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139098"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-117463.json"}}],"schema_version":"1.9.2"}