{"api_version":"1","generated_at":"2026-12-04T12:43:49+00:00","cve":"CVE-2026-142949","urls":{"html":"https://cve.report/CVE-2026-142949","api":"https://cve.report/api/cve/CVE-2026-142949.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142949","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142949"},"summary":{"title":"tcp: fix NULL pointer dereference when restarting a Fast Open listener","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: fix NULL pointer dereference when restarting a Fast Open listener\n\nWhen a valid RST is received for a Fast Open child accepted before the\nthree-way handshake completes, reqsk_fastopen_remove() adds the\nrequest_sock to the listener's RST list if the listener is in TCP_LISTEN.\n\nAn application can call shutdown(SHUT_RD) on a listener socket.\ninet_csk_listen_stop() checks rskq_rst_head without holding\nfastopenq.lock. If rskq_rst_head is NULL, it does not acquire the lock\nand therefore does not synchronize with an insertion by\nreqsk_fastopen_remove() after that function has passed the TCP_LISTEN\ncheck.\n\nThe more likely outcome of this race, even without a subsequent\nlisten(), is a leak. If reqsk_fastopen_remove() inserts a request_sock\nafter inet_csk_listen_stop() observes an empty list and returns, the\nrequest_sock is stranded in rskq_rst_head and keeps a reference on the\nlistener. The socket is already in TCP_CLOSE, so a subsequent close()\ndoes not call inet_csk_listen_stop() again.\n\nIf listen() is called again on the same socket before the delayed list\ninsertion, the insertion can overlap the queue initialization in\nreqsk_queue_alloc(). If it occurs after rskq_rst_head is set to NULL but\nbefore rskq_rst_tail is set to NULL, rskq_rst_head points to the\nrequest_sock while rskq_rst_tail is NULL.\n\nWhen a valid RST is later received for another accepted Fast Open child,\nrskq_rst_head is not NULL, so reqsk_fastopen_remove() attempts to write\nthe request_sock pointer to rskq_rst_tail->dl_next while rskq_rst_tail is\nNULL. KASAN reports:\n\n  BUG: KASAN: null-ptr-deref in reqsk_fastopen_remove+0x147/0x210\n  Write of size 8 at addr 0000000000000088 by task swapper/3/0\n  ...\n  Call Trace:\n   <IRQ>\n   ...\n   reqsk_fastopen_remove+0x147/0x210\n   tcp_check_req+0xa70/0x1060\n   ...\n   tcp_rcv_state_process+0x1cb/0x2ae0\n   ...\n   tcp_v4_do_rcv+0x1fe/0x740\n   tcp_v4_rcv+0x1744/0x2070\n   ...\n   ip_protocol_deliver_rcu+0x5c/0x280\n   ip_local_deliver_finish+0x171/0x330\n   ip_local_deliver+0x107/0x370\n   ...\n   </IRQ>\n\nTo widen the race window, the issue was reproduced after adding\nmdelay(3000) immediately after reqsk_fastopen_remove() checks that the\nlistener is in TCP_LISTEN and immediately after reqsk_queue_alloc() sets\nrskq_rst_head to NULL.\n\nMake inet_csk_listen_stop() acquire fastopenq.lock regardless of the\nvalue of rskq_rst_head and detach the list while holding the lock. With\nthis synchronization, reqsk_fastopen_remove() either inserts the\nrequest_sock before inet_csk_listen_stop() acquires the lock, in which\ncase inet_csk_listen_stop() reclaims it, or sees that the listener is\nnot in TCP_LISTEN and does not insert anything.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:13","updated_at":"2026-12-03 10:17:13"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f2e4b0ecb3971cff430bfdc46a9019cec658b342","name":"https://git.kernel.org/stable/c/f2e4b0ecb3971cff430bfdc46a9019cec658b342","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/86fe1770040e2e95ddb03cadc1f34445d2d8a475","name":"https://git.kernel.org/stable/c/86fe1770040e2e95ddb03cadc1f34445d2d8a475","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/06776d859f7fce1318081cae7c6576931a194d18","name":"https://git.kernel.org/stable/c/06776d859f7fce1318081cae7c6576931a194d18","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/95daf3d2051c8f7df4e81f1f41b465b0294efb3a","name":"https://git.kernel.org/stable/c/95daf3d2051c8f7df4e81f1f41b465b0294efb3a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/aa40afa831ebfe45e40a23721711059f2ac584d4","name":"https://git.kernel.org/stable/c/aa40afa831ebfe45e40a23721711059f2ac584d4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/44f57efaebb0325230cce416204e1ce01e435d2a","name":"https://git.kernel.org/stable/c/44f57efaebb0325230cce416204e1ce01e435d2a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142949","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142949","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0536fcc039a8926ec12ec587f41a83f7acafeb82 95daf3d2051c8f7df4e81f1f41b465b0294efb3a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0536fcc039a8926ec12ec587f41a83f7acafeb82 86fe1770040e2e95ddb03cadc1f34445d2d8a475 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0536fcc039a8926ec12ec587f41a83f7acafeb82 f2e4b0ecb3971cff430bfdc46a9019cec658b342 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0536fcc039a8926ec12ec587f41a83f7acafeb82 06776d859f7fce1318081cae7c6576931a194d18 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0536fcc039a8926ec12ec587f41a83f7acafeb82 44f57efaebb0325230cce416204e1ce01e435d2a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0536fcc039a8926ec12ec587f41a83f7acafeb82 aa40afa831ebfe45e40a23721711059f2ac584d4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.276 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.227 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* 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-rc4 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"142949","cve":"CVE-2026-142949","epss":"0.002150000","percentile":"0.126200000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"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":"95daf3d2051c8f7df4e81f1f41b465b0294efb3a","status":"affected","version":"0536fcc039a8926ec12ec587f41a83f7acafeb82","versionType":"git"},{"lessThan":"86fe1770040e2e95ddb03cadc1f34445d2d8a475","status":"affected","version":"0536fcc039a8926ec12ec587f41a83f7acafeb82","versionType":"git"},{"lessThan":"f2e4b0ecb3971cff430bfdc46a9019cec658b342","status":"affected","version":"0536fcc039a8926ec12ec587f41a83f7acafeb82","versionType":"git"},{"lessThan":"06776d859f7fce1318081cae7c6576931a194d18","status":"affected","version":"0536fcc039a8926ec12ec587f41a83f7acafeb82","versionType":"git"},{"lessThan":"44f57efaebb0325230cce416204e1ce01e435d2a","status":"affected","version":"0536fcc039a8926ec12ec587f41a83f7acafeb82","versionType":"git"},{"lessThan":"aa40afa831ebfe45e40a23721711059f2ac584d4","status":"affected","version":"0536fcc039a8926ec12ec587f41a83f7acafeb82","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.4"},{"lessThan":"4.4","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.276","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.227","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","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-rc4","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.276","versionStartIncluding":"4.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.227","versionStartIncluding":"4.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"4.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"4.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"4.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc4","versionStartIncluding":"4.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: fix NULL pointer dereference when restarting a Fast Open listener\n\nWhen a valid RST is received for a Fast Open child accepted before the\nthree-way handshake completes, reqsk_fastopen_remove() adds the\nrequest_sock to the listener's RST list if the listener is in TCP_LISTEN.\n\nAn application can call shutdown(SHUT_RD) on a listener socket.\ninet_csk_listen_stop() checks rskq_rst_head without holding\nfastopenq.lock. If rskq_rst_head is NULL, it does not acquire the lock\nand therefore does not synchronize with an insertion by\nreqsk_fastopen_remove() after that function has passed the TCP_LISTEN\ncheck.\n\nThe more likely outcome of this race, even without a subsequent\nlisten(), is a leak. If reqsk_fastopen_remove() inserts a request_sock\nafter inet_csk_listen_stop() observes an empty list and returns, the\nrequest_sock is stranded in rskq_rst_head and keeps a reference on the\nlistener. The socket is already in TCP_CLOSE, so a subsequent close()\ndoes not call inet_csk_listen_stop() again.\n\nIf listen() is called again on the same socket before the delayed list\ninsertion, the insertion can overlap the queue initialization in\nreqsk_queue_alloc(). If it occurs after rskq_rst_head is set to NULL but\nbefore rskq_rst_tail is set to NULL, rskq_rst_head points to the\nrequest_sock while rskq_rst_tail is NULL.\n\nWhen a valid RST is later received for another accepted Fast Open child,\nrskq_rst_head is not NULL, so reqsk_fastopen_remove() attempts to write\nthe request_sock pointer to rskq_rst_tail->dl_next while rskq_rst_tail is\nNULL. KASAN reports:\n\n  BUG: KASAN: null-ptr-deref in reqsk_fastopen_remove+0x147/0x210\n  Write of size 8 at addr 0000000000000088 by task swapper/3/0\n  ...\n  Call Trace:\n   <IRQ>\n   ...\n   reqsk_fastopen_remove+0x147/0x210\n   tcp_check_req+0xa70/0x1060\n   ...\n   tcp_rcv_state_process+0x1cb/0x2ae0\n   ...\n   tcp_v4_do_rcv+0x1fe/0x740\n   tcp_v4_rcv+0x1744/0x2070\n   ...\n   ip_protocol_deliver_rcu+0x5c/0x280\n   ip_local_deliver_finish+0x171/0x330\n   ip_local_deliver+0x107/0x370\n   ...\n   </IRQ>\n\nTo widen the race window, the issue was reproduced after adding\nmdelay(3000) immediately after reqsk_fastopen_remove() checks that the\nlistener is in TCP_LISTEN and immediately after reqsk_queue_alloc() sets\nrskq_rst_head to NULL.\n\nMake inet_csk_listen_stop() acquire fastopenq.lock regardless of the\nvalue of rskq_rst_head and detach the list while holding the lock. With\nthis synchronization, reqsk_fastopen_remove() either inserts the\nrequest_sock before inet_csk_listen_stop() acquires the lock, in which\ncase inet_csk_listen_stop() reclaims it, or sees that the listener is\nnot in TCP_LISTEN and does not insert anything."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:16:35.971Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/95daf3d2051c8f7df4e81f1f41b465b0294efb3a"},{"url":"https://git.kernel.org/stable/c/86fe1770040e2e95ddb03cadc1f34445d2d8a475"},{"url":"https://git.kernel.org/stable/c/f2e4b0ecb3971cff430bfdc46a9019cec658b342"},{"url":"https://git.kernel.org/stable/c/06776d859f7fce1318081cae7c6576931a194d18"},{"url":"https://git.kernel.org/stable/c/44f57efaebb0325230cce416204e1ce01e435d2a"},{"url":"https://git.kernel.org/stable/c/aa40afa831ebfe45e40a23721711059f2ac584d4"}],"title":"tcp: fix NULL pointer dereference when restarting a Fast Open listener","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142949","datePublished":"2026-12-03T09:16:35.971Z","dateReserved":"2026-12-03T03:10:28.339Z","dateUpdated":"2026-12-03T09:16:35.971Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:13","lastModifiedDate":"2026-12-03 10:17:13","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142949","Ordinal":"1","Title":"tcp: fix NULL pointer dereference when restarting a Fast Open li","CVE":"CVE-2026-142949","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142949","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: fix NULL pointer dereference when restarting a Fast Open listener\n\nWhen a valid RST is received for a Fast Open child accepted before the\nthree-way handshake completes, reqsk_fastopen_remove() adds the\nrequest_sock to the listener's RST list if the listener is in TCP_LISTEN.\n\nAn application can call shutdown(SHUT_RD) on a listener socket.\ninet_csk_listen_stop() checks rskq_rst_head without holding\nfastopenq.lock. If rskq_rst_head is NULL, it does not acquire the lock\nand therefore does not synchronize with an insertion by\nreqsk_fastopen_remove() after that function has passed the TCP_LISTEN\ncheck.\n\nThe more likely outcome of this race, even without a subsequent\nlisten(), is a leak. If reqsk_fastopen_remove() inserts a request_sock\nafter inet_csk_listen_stop() observes an empty list and returns, the\nrequest_sock is stranded in rskq_rst_head and keeps a reference on the\nlistener. The socket is already in TCP_CLOSE, so a subsequent close()\ndoes not call inet_csk_listen_stop() again.\n\nIf listen() is called again on the same socket before the delayed list\ninsertion, the insertion can overlap the queue initialization in\nreqsk_queue_alloc(). If it occurs after rskq_rst_head is set to NULL but\nbefore rskq_rst_tail is set to NULL, rskq_rst_head points to the\nrequest_sock while rskq_rst_tail is NULL.\n\nWhen a valid RST is later received for another accepted Fast Open child,\nrskq_rst_head is not NULL, so reqsk_fastopen_remove() attempts to write\nthe request_sock pointer to rskq_rst_tail->dl_next while rskq_rst_tail is\nNULL. KASAN reports:\n\n  BUG: KASAN: null-ptr-deref in reqsk_fastopen_remove+0x147/0x210\n  Write of size 8 at addr 0000000000000088 by task swapper/3/0\n  ...\n  Call Trace:\n   <IRQ>\n   ...\n   reqsk_fastopen_remove+0x147/0x210\n   tcp_check_req+0xa70/0x1060\n   ...\n   tcp_rcv_state_process+0x1cb/0x2ae0\n   ...\n   tcp_v4_do_rcv+0x1fe/0x740\n   tcp_v4_rcv+0x1744/0x2070\n   ...\n   ip_protocol_deliver_rcu+0x5c/0x280\n   ip_local_deliver_finish+0x171/0x330\n   ip_local_deliver+0x107/0x370\n   ...\n   </IRQ>\n\nTo widen the race window, the issue was reproduced after adding\nmdelay(3000) immediately after reqsk_fastopen_remove() checks that the\nlistener is in TCP_LISTEN and immediately after reqsk_queue_alloc() sets\nrskq_rst_head to NULL.\n\nMake inet_csk_listen_stop() acquire fastopenq.lock regardless of the\nvalue of rskq_rst_head and detach the list while holding the lock. With\nthis synchronization, reqsk_fastopen_remove() either inserts the\nrequest_sock before inet_csk_listen_stop() acquires the lock, in which\ncase inet_csk_listen_stop() reclaims it, or sees that the listener is\nnot in TCP_LISTEN and does not insert anything.","Type":"Description","Title":"tcp: fix NULL pointer dereference when restarting a Fast Open li"}]}}}