GHSA-W343-5FQ9-98X8
Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-04 06:31In the Linux kernel, the following vulnerability has been resolved:
tcp: fix request_sock use-after-free during Fast Open accept()
Commit e3d95ad7da4f ("inet: avoid fastopen lock for regular accept()") made inet_csk_accept() check tfo_listener before taking fastopenq.lock to avoid taking the lock for connections that did not use Fast Open.
reqsk_fastopen_remove() clears tfo_listener while holding fastopenq.lock, then reads req->sk. If inet_csk_accept() concurrently observes tfo_listener after it has been cleared, it skips fastopenq.lock and drops the last reference to the request_sock. This can free the request_sock while reqsk_fastopen_remove() is still using it.
If the freed memory is reused for a new request_sock with req->sk == NULL, the reset path in reqsk_fastopen_remove() can append the new request_sock to the original listener's list of requests that caused an RST. After the new request_sock is freed, the next append writes through the stale rskq_rst_tail into freed memory.
KASAN reported the following use-after-free when writing fastopenq->rskq_rst_tail->dl_next = req:
BUG: KASAN: slab-use-after-free in reqsk_fastopen_remove+0x142/0x210 Write of size 8 at addr ffff888108230688 by task swapper/5/0 ... Call Trace: ... reqsk_fastopen_remove+0x142/0x210 tcp_check_req+0x96f/0xdd0 ... tcp_rcv_state_process+0x19c/0x26b0 ... tcp_v4_do_rcv+0x16e/0x490 tcp_v4_rcv+0x14a0/0x1af0 ... ip_protocol_deliver_rcu+0x39/0x1e0 ip_local_deliver_finish+0x124/0x1e0 ip_local_deliver+0xfb/0x1e0 ...
To widen the race windows, mdelay(5) was added after newsk = req->sk, mdelay(20) after the if (req) reqsk_put(req) block, and mdelay(100) after tcp_rsk(req)->tfo_listener = false. The KASAN report above was reproduced with this kernel.
For the lockless check, use tcp_sk(newsk)->syn_fastopen_child instead of tfo_listener, which reqsk_fastopen_remove() clears.
syn_fastopen_child is a field of the Fast Open child TCP socket referenced by newsk, not of the request_sock. It is set before the child socket is added to the accept queue. The paths that call reqsk_fastopen_remove() in response to a remote ACK or RST do not clear this field.
inet_csk_accept() uses this field to take fastopenq.lock only for Fast Open child sockets and rechecks tfo_listener while holding the lock. Connections that did not use Fast Open continue to avoid the lock.
{
"affected": [],
"aliases": [
"CVE-2026-143150"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-03T10:17:49Z",
"severity": "HIGH"
},
"details": "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-\u003esk. 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-\u003esk ==\nNULL, the reset path in reqsk_fastopen_remove() can append the new\nrequest_sock to the original listener\u0027s 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-\u003erskq_rst_tail-\u003edl_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 \u003cIRQ\u003e\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 \u003c/IRQ\u003e\n\nTo widen the race windows, mdelay(5) was added after newsk = req-\u003esk,\nmdelay(20) after the if (req) reqsk_put(req) block, and mdelay(100)\nafter tcp_rsk(req)-\u003etfo_listener = false. The KASAN report above was\nreproduced with this kernel.\n\nFor the lockless check, use tcp_sk(newsk)-\u003esyn_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.",
"id": "GHSA-w343-5fq9-98x8",
"modified": "2026-12-04T06:31:08Z",
"published": "2026-12-03T12:31:06Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143150"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/62754aad50d0b30938bd8ce30b43474ce502a2af"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8a8043bb3b7093f92e776a8125be7bd4ad0214d4"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/b6410a98a09e1d910000dfb045920e94f782443d"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.