CVE-2026-142872: net: count last skb of each sk_backlog pass in __release_sock()

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: count last skb of each skbacklog pass in releasesock()

Running 500 concurrent TCPv6 streams (neper "tcpstream -6 -T 1 -F 500") on a 2-core Cortex-A53 (CONFIGPREEMPTNONE=y, HZ=1000, LATENCYWARN) triggers reschedlatencywarn() in releasesock():

[ 3655.311821] sched: CPU 0 needresched set for > 100006892 ns (100 ticks) without schedule [ 3655.311889] Call trace: ... [ 3655.311944] reschedlatencywarn+0x7c/0x88 [ 3655.311958] schedtick+0x1c0/0x418 ... [ 3655.312578] netrxaction+0x238/0x438 ... [ 3655.312641] dosoftirq+0x4c/0x90 [ 3655.312651] localbhenableip+0x84/0x90 [ 3655.312663] localbhenable+0x1c/0x28 [ 3655.312674] devqueuexmit+0x4a8/0xb00 ... [ 3655.312782] tcpv6dorcv+0x240/0x5f8 [ 3655.312793] releasesock+0x9c/0x188 [ 3655.312806] releasesock+0x150/0x168 [ 3655.312817] tcpsendmsg+0x4c/0x70

releasesock() can loop past 100 ms without calling condresched():

- Each outer-loop pass drains skbacklog, but "if (!skb) break;" runs before "++nb", so a pass of B skbs only adds B - 1 to nb (0 for 1 skb). - With 500 TCPv6 streams and NAPI sharing two Cortex-A53 cores, runnable tasks keep TIFNEEDRESCHED set on CPU 0. - During spinunlockbh() and TX softirqs (devqueuexmit() -> localbhenable()), tcpaddbacklog() coalesces arriving pure ACKs into a single tail skb. - Repeated 1-skb passes never advance nb or call condresched(), triggering reschedlatencywarn() after 100 ticks.

Restore the do-while loop and drop "if (!skb) break;" so every skb increments nb across passes and calls condresched() every 16 skbs.

Reproduced the issue and verified the fix on two 2-core Cortex-A53 hosts (CONFIGPREEMPTNONE=y, HZ=1000, LATENCYWARN, latencywarnonce=0) with a userspace reproducer over /dev/net/tun:

- CPU 0 runs a TCPv6 sender and a second runnable task while CPU 1 writes pure ACKs to /dev/net/tun (~30k TCPBacklogCoalesce/run), sustaining 1-skb skbacklog refills in releasesock() for ~400 ms (ftrace). - Before: CPU 0 stayed unscheduled in releasesock(), hitting reschedlatencywarn() 293 and 275 times on the two hosts (> 100.9 ms). - After: condresched() yielded CPU 0 inside releasesock(), with 0 reschedlatencywarn() hits on both hosts. - Also observed no regression with the workload from commit 16c610162d1f ("net: call condresched() less often in releasesock()"), "supernetperf 4 -H srv -T,10 -l 3000 &".

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In __release_sock(), restore the do-while loop and remove `if (!skb) break;` so the last skb in each sk_backlog pass is counted and cond_resched() is called every 16 skbs.

Event History

Dec 3, 2026
CVE Published
via MITRE·03:23 AM
Data Sourced
via MITRE·03:23 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203