CVE-2026-52984: net/sched: netem: fix queue limit check to include reordered packets
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/sched: netem: fix queue limit check to include reordered packets
The queue limit check in netem_enqueue() uses q->t_len which only counts packets in the internal tfifo. Packets placed in sch->q by the reorder path (__qdisc_enqueue_head) are not counted, allowing the total queue occupancy to exceed sch->limit under reordering.
Include sch->q.qlen in the limit check.
The Linux kernel CVE team has assigned CVE-2026-52984 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10.232 with commit 216509dda290f6db92c816dd54b83c1df9da9e76 and fixed in 5.10.258 with commit 0f875d52db4c921da610e481b72f03cc82fdcb72 Issue introduced in 5.15.175 with commit c2047b0e216c8edce227d7c42f99ac2877dad0e4 and fixed in 5.15.209 with commit ef9a41b3870fb90577da5b2de5bd140022d4021e Issue introduced in 6.1.121 with commit 10df49cfca73dfbbdb6c4150d859f7e8926ae427 and fixed in 6.1.175 with commit 74fcd8e127200a50ee22ba2b45c164722bdb9177 Issue introduced in 6.6.67 with commit 3824c5fad18eeb7abe0c4fc966f29959552dca3e and fixed in 6.6.141 with commit 39a66e83ea41fe845631eeb8d326953de27d13f9 Issue introduced in 6.12.6 with commit 356078a5c55ec8d2061fcc009fb8599f5b0527f9 and fixed in 6.12.91 with commit 54b5dbacd00dedffd5e2eed76de1c3839996b5e6 Issue introduced in 6.13 with commit f8d4bc455047cf3903cd6f85f49978987dbb3027 and fixed in 6.18.33 with commit 8450462eaf91d5d2a9e863507b16d18e814baef3 Issue introduced in 6.13 with commit f8d4bc455047cf3903cd6f85f49978987dbb3027 and fixed in 7.0.10 with commit 936a7dd87251f6f3e88983350833edf60fe6a80b Issue introduced in 6.13 with commit f8d4bc455047cf3903cd6f85f49978987dbb3027 and fixed in 7.1 with commit 4185701fcce6b426b6c3630b25330dddd9c47b0d Issue introduced in 5.4.288 with commit 83c6ab12f08dcc09d4c5ac86fdb89736b28f1d31
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-52984
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/sched/sch_netem.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/0f875d52db4c921da610e481b72f03cc82fdcb72 https://git.kernel.org/stable/c/ef9a41b3870fb90577da5b2de5bd140022d4021e https://git.kernel.org/stable/c/74fcd8e127200a50ee22ba2b45c164722bdb9177 https://git.kernel.org/stable/c/39a66e83ea41fe845631eeb8d326953de27d13f9 https://git.kernel.org/stable/c/54b5dbacd00dedffd5e2eed76de1c3839996b5e6 https://git.kernel.org/stable/c/8450462eaf91d5d2a9e863507b16d18e814baef3 https://git.kernel.org/stable/c/936a7dd87251f6f3e88983350833edf60fe6a80b https://git.kernel.org/stable/c/4185701fcce6b426b6c3630b25330dddd9c47b0d