Not scored
net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop
- Severity
- Not scored
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop In cake_drop(), qdisc_tree_reduce_backlog() is used to update the qlen and backlog of the qdisc hierarchy. Its caller, cake_enqueue(), assumes that the parent qdisc will enqueue the current packet. However, this assumption breaks when cake_enqueue() returns NET_XMIT_CN: the parent qdisc stops enqueuing current packet, leaving the tree qlen/backlog accounting inconsistent. This mismatch can lead to a NULL dereference (e.g., when the parent Qdisc is qfq_qdisc). This patch computes the qlen/backlog delta in a more robust way by observing the difference before and after the series of cake_drop() calls, and then compensates the qdisc tree accounting if cake_enqueue() returns NET_XMIT_CN. To ensure correct compensation when ACK thinning is enabled, a new variable is introduced to keep qlen unchanged.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from de04ddd2980b48caa8d7e24a7db2742917a8b280 before a3f4e3de41a3f115db35276c6b186ccbc913934a, from 0dacfc5372e314d1219f03e64dde3ab495a5a25e before 38abf6e931b169ea88d7529b49096f53a5dcf8fe, from 710866fc0a64eafcb8bacd91bcb1329eb7e5035f before fcb91be52eb6e92e00b533ebd7c77fecada537e1, from aa12ee1c1bd260943fd6ab556d8635811c332eeb before d01f0e072dadb02fe10f436b940dd957aff0d7d4, from ff57186b2cc39766672c4c0332323933e5faaa88 before 0b6216f9b3d1c33c76f74511026e5de5385ee520, from 15de71d06a400f7fdc15bf377a2552b0ec437cf5 before 529c284cc2815c8350860e9a31722050fe7117cb, from 15de71d06a400f7fdc15bf377a2552b0ec437cf5 before 3ed6c458530a547ed0c9ea0b02b19bab620be88b, from 15de71d06a400f7fdc15bf377a2552b0ec437cf5 before 9fefc78f7f02d71810776fdeb119a05a946a27cc and 10 more Not affected: before 6.17, from 5.10.248 up to 5.10.*, from 5.15.198 up to 5.15.*, from 6.1.160 up to 6.1.*, from 6.6.120 up to 6.6.*, from 6.12.63 up to 6.12.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop In cake_drop(), qdisc_tree_reduce_backlog() is used to update the qlen and backlog of the qdisc hierarchy. Its caller, cake_enqueue(), assumes that the parent qdisc will enqueue the current packet. However, this assumption breaks when cake_enqueue() returns NET_XMIT_CN: the parent qdisc stops enqueuing current packet, leaving the tree qlen/backlog accounting inconsistent. This mismatch can lead to a NULL dereference (e.g., when the parent Qdisc is qfq_qdisc). This patch computes the qlen/backlog delta in a more robust way by observing the difference before and after the series of cake_drop() calls, and then compensates the qdisc tree accounting if cake_enqueue() returns NET_XMIT_CN. To ensure correct compensation when ACK thinning is enabled, a new variable is introduced to keep qlen unchanged.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/sched: sch_cake: Corrección de la reducción incorrecta de qlen en cake_drop En cake_drop(), se utiliza qdisc_tree_reduce_backlog() para actualizar el qlen y el backlog de la jerarquía qdisc. Su llamador, cake_enqueue(), asume que el qdisc padre encolará el paquete actual. Sin embargo, esta suposición se rompe cuando cake_enqueue() devuelve NET_XMIT_CN: el qdisc padre deja de encolar el paquete actual, dejando la contabilidad de qlen/backlog del árbol inconsistente. Esta inconsistencia puede llevar a una desreferencia de NULL (por ejemplo, cuando el Qdisc padre es qfq_qdisc). Este parche calcula el delta de qlen/backlog de una manera más robusta observando la diferencia antes y después de la serie de llamadas a cake_drop(), y luego compensa la contabilidad del árbol qdisc si cake_enqueue() devuelve NET_XMIT_CN. Para asegurar una compensación correcta cuando el adelgazamiento de ACK está habilitado, se introduce una nueva variable para mantener qlen sin cambios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68325 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2025-68325 changed 2026-10-13 | Public domain |