{"api_version":"1","generated_at":"2026-12-03T16:36:13+00:00","cve":"CVE-2026-143150","urls":{"html":"https://cve.report/CVE-2026-143150","api":"https://cve.report/api/cve/CVE-2026-143150.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143150","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143150"},"summary":{"title":"tcp: fix request_sock use-after-free during Fast Open accept()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:49","updated_at":"2026-12-03 10:17:49"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/b6410a98a09e1d910000dfb045920e94f782443d","name":"https://git.kernel.org/stable/c/b6410a98a09e1d910000dfb045920e94f782443d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/62754aad50d0b30938bd8ce30b43474ce502a2af","name":"https://git.kernel.org/stable/c/62754aad50d0b30938bd8ce30b43474ce502a2af","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8a8043bb3b7093f92e776a8125be7bd4ad0214d4","name":"https://git.kernel.org/stable/c/8a8043bb3b7093f92e776a8125be7bd4ad0214d4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143150","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143150","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e3d95ad7da4f8955599f0786d7c70497c0aaf8c9 b6410a98a09e1d910000dfb045920e94f782443d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e3d95ad7da4f8955599f0786d7c70497c0aaf8c9 8a8043bb3b7093f92e776a8125be7bd4ad0214d4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e3d95ad7da4f8955599f0786d7c70497c0aaf8c9 62754aad50d0b30938bd8ce30b43474ce502a2af git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/ipv4/inet_connection_sock.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"b6410a98a09e1d910000dfb045920e94f782443d","status":"affected","version":"e3d95ad7da4f8955599f0786d7c70497c0aaf8c9","versionType":"git"},{"lessThan":"8a8043bb3b7093f92e776a8125be7bd4ad0214d4","status":"affected","version":"e3d95ad7da4f8955599f0786d7c70497c0aaf8c9","versionType":"git"},{"lessThan":"62754aad50d0b30938bd8ce30b43474ce502a2af","status":"affected","version":"e3d95ad7da4f8955599f0786d7c70497c0aaf8c9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/ipv4/inet_connection_sock.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.1"},{"lessThan":"4.1","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"4.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"4.1","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:19:53.273Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143150","datePublished":"2026-12-03T09:19:53.273Z","dateReserved":"2026-12-03T03:10:28.354Z","dateUpdated":"2026-12-03T09:19:53.273Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:49","lastModifiedDate":"2026-12-03 10:17:49","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143150","Ordinal":"1","Title":"tcp: fix request_sock use-after-free during Fast Open accept()","CVE":"CVE-2026-143150","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143150","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"tcp: fix request_sock use-after-free during Fast Open accept()"}]}}}