{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142872","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.334Z","datePublished":"2026-12-03T03:23:32.040Z","dateUpdated":"2026-12-04T03:25:37.348Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:25:37.348Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: count last skb of each sk_backlog pass in __release_sock()\n\nRunning 500 concurrent TCPv6 streams (neper \"tcp_stream -6 -T 1 -F 500\")\non a 2-core Cortex-A53 (CONFIG_PREEMPT_NONE=y, HZ=1000, LATENCY_WARN)\ntriggers resched_latency_warn() in __release_sock():\n\n  [ 3655.311821] sched: CPU 0 need_resched set for > 100006892 ns (100 ticks) without schedule\n  [ 3655.311889] Call trace:\n  ...\n  [ 3655.311944]  resched_latency_warn+0x7c/0x88\n  [ 3655.311958]  sched_tick+0x1c0/0x418\n  ...\n  [ 3655.312578]  net_rx_action+0x238/0x438\n  ...\n  [ 3655.312641]  do_softirq+0x4c/0x90\n  [ 3655.312651]  __local_bh_enable_ip+0x84/0x90\n  [ 3655.312663]  local_bh_enable+0x1c/0x28\n  [ 3655.312674]  __dev_queue_xmit+0x4a8/0xb00\n  ...\n  [ 3655.312782]  tcp_v6_do_rcv+0x240/0x5f8\n  [ 3655.312793]  __release_sock+0x9c/0x188\n  [ 3655.312806]  release_sock+0x150/0x168\n  [ 3655.312817]  tcp_sendmsg+0x4c/0x70\n\n__release_sock() can loop past 100 ms without calling cond_resched():\n\n- Each outer-loop pass drains sk_backlog, but \"if (!skb) break;\" runs\n  before \"++nb\", so a pass of B skbs only adds B - 1 to nb (0 for 1 skb).\n- With 500 TCPv6 streams and NAPI sharing two Cortex-A53 cores, runnable\n  tasks keep TIF_NEED_RESCHED set on CPU 0.\n- During spin_unlock_bh() and TX softirqs (__dev_queue_xmit() ->\n  local_bh_enable()), tcp_add_backlog() coalesces arriving pure ACKs into\n  a single tail skb.\n- Repeated 1-skb passes never advance nb or call cond_resched(),\n  triggering resched_latency_warn() after 100 ticks.\n\nRestore the do-while loop and drop \"if (!skb) break;\" so every skb\nincrements nb across passes and calls cond_resched() every 16 skbs.\n\nReproduced the issue and verified the fix on two 2-core Cortex-A53 hosts\n(CONFIG_PREEMPT_NONE=y, HZ=1000, LATENCY_WARN, latency_warn_once=0) with\na userspace reproducer over /dev/net/tun:\n\n- CPU 0 runs a TCPv6 sender and a second runnable task while CPU 1 writes\n  pure ACKs to /dev/net/tun (~30k TCPBacklogCoalesce/run), sustaining\n  1-skb sk_backlog refills in __release_sock() for ~400 ms (ftrace).\n- Before: CPU 0 stayed unscheduled in __release_sock(), hitting\n  resched_latency_warn() 293 and 275 times on the two hosts (> 100.9 ms).\n- After: cond_resched() yielded CPU 0 inside __release_sock(), with\n  0 resched_latency_warn() hits on both hosts.\n- Also observed no regression with the workload from\n  commit 16c610162d1f (\"net: call cond_resched() less often in\n  __release_sock()\"), \"super_netperf 4 -H srv -T,10 -l 3000 &\"."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - Pure TCP ACK segments from a remote peer refill the socket backlog: tcp_v4_rcv or tcp_v6_rcv calls tcp_add_backlog while the socket is user-owned, and __release_sock, reached from tcp_sendmsg via release_sock and from tcp_sendmsg_locked via sk_flush_backlog, livelocks draining those one-skb passes.\nAC:L - The attacker completes a TCP handshake and sends pure ACKs. tcp_add_backlog pulls the TCP header and skb_try_coalesce folds each zero-length ACK into the single tail skb with delta_truesize 0, which is allowed above the sk_rcvbuf limit, so every __release_sock pass has one skb and ++nb is skipped. An ACK flood held that state for hundreds of milliseconds.\nPR:N - tcp_v4_rcv and tcp_v6_rcv queue the ACKs with tcp_add_backlog only because sock_owned_by_user is set inside tcp_sendmsg or tcp_recvmsg. The handshake and those ACK segments need no credentials and occur before any application authentication.\nUI:N - The socket owner is the network service already inside tcp_sendmsg or tcp_recvmsg on the attacker's own connection, and release_sock or sk_flush_backlog runs as part of that syscall. The attacker supplies the ACKs without a further local action.\nS:U - The missed cond_resched keeps the socket-owning task inside __release_sock on its CPU. The effect stays in the host kernel and does not cross a guest-to-host or sandbox boundary.\nC:N - __release_sock still walks sk_backlog and hands each skb to sk_backlog_rcv. The defect is the final skb of a pass taking the break before ++nb, and that path does not read memory outside the skb being processed.\nI:N - Each backlog skb is detached, passed to sk_backlog_rcv, and freed on the normal TCP input path. Skipping cond_resched does not write attacker-controlled kernel memory or change control flow.\nA:H - Where cond_resched is the yield point, one-skb passes leave nb at 0, so __release_sock never reaches schedule. For the whole ACK flood that CPU runs no other task, the soft-lockup watchdog reports the hang, and non-preemptible RCU gets no quiescent state because the tick only sets TIF_NEED_RESCHED."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock.c"],"versions":[{"version":"40e78a37beac76694cab4601bba15fccd68569f1","lessThan":"e08c172aa73706e385710c876f0efe211787ce63","status":"affected","versionType":"git"},{"version":"66bcd6c577d83d0db60468d04e3c8c79caa649ce","lessThan":"2399609bc603c91752756fac1fd5548b775d9582","status":"affected","versionType":"git"},{"version":"c52cb572a7819f4e4a931125f582453a1d289491","lessThan":"9e69fe5338cf1cd7e71ad63c72ab59b7d10ead4b","status":"affected","versionType":"git"},{"version":"170bd191fa6c18748771843e1396922865a23b8a","lessThan":"449c7cb63175f4e14a8559ef8759f4a987afca1c","status":"affected","versionType":"git"},{"version":"562bcdc0d776f25e136be4133c6e79577405ca76","lessThan":"e8fb61e46c860f9401f2862a15869c82444b4278","status":"affected","versionType":"git"},{"version":"16c610162d1f1c332209de1c91ffb09b659bb65d","lessThan":"f5130be000f0eb71a7359244d41b2ec3ffb08488","status":"affected","versionType":"git"},{"version":"16c610162d1f1c332209de1c91ffb09b659bb65d","lessThan":"55e4044c1bc87e69b127790d4e73d34dddb9afdf","status":"affected","versionType":"git"},{"version":"16c610162d1f1c332209de1c91ffb09b659bb65d","lessThan":"c4e4056b21355356f6a95bcdf03a850edd9f49e7","status":"affected","versionType":"git"},{"version":"0ee184e039269397780cfd03401d939620b93aa1","status":"affected","versionType":"git"},{"version":"c42221a8de5958a7fa3f59c56b17f47cfe93bf6a","status":"affected","versionType":"git"},{"version":"5.10.247","lessThan":"5.10.275","status":"affected","versionType":"semver"},{"version":"5.15.197","lessThan":"5.15.226","status":"affected","versionType":"semver"},{"version":"6.1.159","lessThan":"6.1.193","status":"affected","versionType":"semver"},{"version":"6.6.117","lessThan":"6.6.163","status":"affected","versionType":"semver"},{"version":"6.12.58","lessThan":"6.12.118","status":"affected","versionType":"semver"},{"version":"5.4.302","lessThan":"5.5","status":"affected","versionType":"semver"},{"version":"6.17.8","lessThan":"6.18","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock.c"],"versions":[{"version":"6.18","status":"affected"},{"version":"0","lessThan":"6.18","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","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":"5.10.247","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.197","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.159","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.117","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.58","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.302"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17.8"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/e08c172aa73706e385710c876f0efe211787ce63"},{"url":"https://git.kernel.org/stable/c/2399609bc603c91752756fac1fd5548b775d9582"},{"url":"https://git.kernel.org/stable/c/9e69fe5338cf1cd7e71ad63c72ab59b7d10ead4b"},{"url":"https://git.kernel.org/stable/c/449c7cb63175f4e14a8559ef8759f4a987afca1c"},{"url":"https://git.kernel.org/stable/c/e8fb61e46c860f9401f2862a15869c82444b4278"},{"url":"https://git.kernel.org/stable/c/f5130be000f0eb71a7359244d41b2ec3ffb08488"},{"url":"https://git.kernel.org/stable/c/55e4044c1bc87e69b127790d4e73d34dddb9afdf"},{"url":"https://git.kernel.org/stable/c/c4e4056b21355356f6a95bcdf03a850edd9f49e7"}],"title":"net: count last skb of each sk_backlog pass in __release_sock()","x_generator":{"engine":"bippy-1.2.0"}}}}