{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143150",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.354Z",
        "datePublished": "2026-12-03T09:19:53.273Z",
        "dateUpdated": "2026-12-04T03:29:54.307Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:29:54.307Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: fix request_sock use-after-free during Fast Open accept()\n\nCommit e3d95ad7da4f (\"inet: avoid fastopen lock for regular accept()\")\nmade inet_csk_accept() check tfo_listener before taking fastopenq.lock\nto avoid taking the lock for connections that did not use Fast Open.\n\nreqsk_fastopen_remove() clears tfo_listener while holding fastopenq.lock,\nthen reads req->sk. If inet_csk_accept() concurrently observes\ntfo_listener after it has been cleared, it skips fastopenq.lock and\ndrops the last reference to the request_sock. This can free the\nrequest_sock while reqsk_fastopen_remove() is still using it.\n\nIf the freed memory is reused for a new request_sock with req->sk ==\nNULL, the reset path in reqsk_fastopen_remove() can append the new\nrequest_sock to the original listener's list of requests that caused an\nRST. After the new request_sock is freed, the next append writes through\nthe stale rskq_rst_tail into freed memory.\n\nKASAN reported the following use-after-free when writing\nfastopenq->rskq_rst_tail->dl_next = req:\n\n  BUG: KASAN: slab-use-after-free in reqsk_fastopen_remove+0x142/0x210\n  Write of size 8 at addr ffff888108230688 by task swapper/5/0\n  ...\n  Call Trace:\n   <IRQ>\n   ...\n   reqsk_fastopen_remove+0x142/0x210\n   tcp_check_req+0x96f/0xdd0\n   ...\n   tcp_rcv_state_process+0x19c/0x26b0\n   ...\n   tcp_v4_do_rcv+0x16e/0x490\n   tcp_v4_rcv+0x14a0/0x1af0\n   ...\n   ip_protocol_deliver_rcu+0x39/0x1e0\n   ip_local_deliver_finish+0x124/0x1e0\n   ip_local_deliver+0xfb/0x1e0\n   ...\n   </IRQ>\n\nTo widen the race windows, mdelay(5) was added after newsk = req->sk,\nmdelay(20) after the if (req) reqsk_put(req) block, and mdelay(100)\nafter tcp_rsk(req)->tfo_listener = false. The KASAN report above was\nreproduced with this kernel.\n\nFor the lockless check, use tcp_sk(newsk)->syn_fastopen_child instead of\ntfo_listener, which reqsk_fastopen_remove() clears.\n\nsyn_fastopen_child is a field of the Fast Open child TCP socket\nreferenced by newsk, not of the request_sock. It is set before the child\nsocket is added to the accept queue. The paths that call\nreqsk_fastopen_remove() in response to a remote ACK or RST do not clear\nthis field.\n\ninet_csk_accept() uses this field to take fastopenq.lock only for Fast\nOpen child sockets and rechecks tfo_listener while holding the lock.\nConnections that did not use Fast Open continue to avoid the lock."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 8.1,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - inet_csk_accept() is TCP's accept() handler; its lockless tfo_listener check reqsk_put()s the Fast Open request_sock. The use is in reqsk_fastopen_remove(), reached when tcp_v4_rcv or tcp_v6_rcv delivers a TCP RST with seq == tcp_rsk(req)->rcv_nxt through tcp_v4_do_rcv/tcp_rcv_state_process/tcp_check_req. That RST, and the TFO SYN tcp_try_fastopen used to create the child, are routable TCP segments to a listener with server Fast Open enabled.\nAC:H - The free is a use-after-free only if inet_csk_accept() sees tfo_listener already cleared and its reqsk_put() runs before reqsk_fastopen_remove() reads req->sk and writes rskq_rst_tail->dl_next, with the slab slot reused so req->sk == NULL. The peer sends the SYN and the RST but cannot stall that function between the flag store and those uses; the reported KASAN hit needed an inserted mdelay() after the clear.\nPR:N - No credential check exists in tcp_v4_rcv, tcp_check_req, or tcp_try_fastopen. The attacker requests a Fast Open cookie with an empty TFO option, then sends the SYN carrying that cookie so tcp_fastopen_cookie_gen_check accepts it and tcp_fastopen_create_child queues the child; the following RST is a normal segment from that same peer.\nUI:N - The attacker sends the cookie SYN and the RST. tcp_conn_request wakes the listening application through sk_data_ready, and inet_csk_accept runs in that server's existing accept loop. No other user has to mount media, open a file, or take a separate action.\nS:U - The request_sock freed by inet_csk_accept's reqsk_put and the fastopenq.rskq_rst_tail pointer written in reqsk_fastopen_remove belong to the same host kernel. This does not cross a guest/host, IOMMU, or other security-authority boundary.\nC:H - After inet_csk_accept's reqsk_put frees the request_sock, reqsk_fastopen_remove still loads req->sk and then walks the reset queue. Reclaiming that slot from the request_sock cache (further SYNs allocate it) lets the attacker choose the bytes those loads interpret, a heap read beyond a bounded leak.\nI:H - KASAN reports an 8-byte write of fastopenq->rskq_rst_tail->dl_next in reqsk_fastopen_remove after that request_sock was freed. Once the tail is stale, the next RST append stores a request_sock pointer through it into reclaimed memory, a heap write aimed by spraying the same cache.\nA:H - That dl_next store runs in softirq on the tcp_v4_rcv path (ip_local_deliver → tcp_v4_rcv → tcp_v4_do_rcv → tcp_rcv_state_process → tcp_check_req). Faulting on the freed request_sock, or on the next append through the dangling rskq_rst_tail, oopses in interrupt context and panics the host."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/ipv4/inet_connection_sock.c"
                    ],
                    "versions": [
                        {
                            "version": "e3d95ad7da4f8955599f0786d7c70497c0aaf8c9",
                            "lessThan": "b6410a98a09e1d910000dfb045920e94f782443d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e3d95ad7da4f8955599f0786d7c70497c0aaf8c9",
                            "lessThan": "8a8043bb3b7093f92e776a8125be7bd4ad0214d4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e3d95ad7da4f8955599f0786d7c70497c0aaf8c9",
                            "lessThan": "62754aad50d0b30938bd8ce30b43474ce502a2af",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/ipv4/inet_connection_sock.c"
                    ],
                    "versions": [
                        {
                            "version": "4.1",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.1",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc3",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.1",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.1",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.1",
                                    "versionEndExcluding": "7.4-rc3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/b6410a98a09e1d910000dfb045920e94f782443d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8a8043bb3b7093f92e776a8125be7bd4ad0214d4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/62754aad50d0b30938bd8ce30b43474ce502a2af"
                }
            ],
            "title": "tcp: fix request_sock use-after-free during Fast Open accept()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}