{"id":"CVE-2025-68325","aliases":["CVE-2025-68325"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_cake: Fix incorrect qlen reduction in cake_drop\n\nIn cake_drop(), qdisc_tree_reduce_backlog() is used to update the qlen\nand backlog of the qdisc hierarchy. Its caller, cake_enqueue(), assumes\nthat the parent qdisc will enqueue the current packet. However, this\nassumption breaks when cake_enqueue() returns NET_XMIT_CN: the parent\nqdisc stops enqueuing current packet, leaving the tree qlen/backlog\naccounting inconsistent. This mismatch can lead to a NULL dereference\n(e.g., when the parent Qdisc is qfq_qdisc).\n\nThis patch computes the qlen/backlog delta in a more robust way by\nobserving the difference before and after the series of cake_drop()\ncalls, and then compensates the qdisc tree accounting if cake_enqueue()\nreturns NET_XMIT_CN.\n\nTo ensure correct compensation when ACK thinning is enabled, a new\nvariable is introduced to keep qlen unchanged.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_cake: Fix incorrect qlen reduction in cake_drop\n\nIn cake_drop(), qdisc_tree_reduce_backlog() is used to update the qlen\nand backlog of the qdisc hierarchy. Its caller, cake_enqueue(), assumes\nthat the parent qdisc will enqueue the current packet. However, this\nassumption breaks when cake_enqueue() returns NET_XMIT_CN: the parent\nqdisc stops enqueuing current packet, leaving the tree qlen/backlog\naccounting inconsistent. This mismatch can lead to a NULL dereference\n(e.g., when the parent Qdisc is qfq_qdisc).\n\nThis patch computes the qlen/backlog delta in a more robust way by\nobserving the difference before and after the series of cake_drop()\ncalls, and then compensates the qdisc tree accounting if cake_enqueue()\nreturns NET_XMIT_CN.\n\nTo ensure correct compensation when ACK thinning is enabled, a new\nvariable is introduced to keep qlen unchanged.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/sched: sch_cake: Corrección de la reducción incorrecta de qlen en cake_drop\n\nEn 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).\n\nEste 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.\n\nPara asegurar una compensación correcta cuando el adelgazamiento de ACK está habilitado, se introduce una nueva variable para mantener qlen sin cambios.","source":"nvd"}],"published":"2025-12-18T15:02:50.214Z","modified":"2026-10-13T11:10:00.203Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"de04ddd2980b48caa8d7e24a7db2742917a8b280","fixed":"a3f4e3de41a3f115db35276c6b186ccbc913934a","status":"affected"},{"type":"git","introduced":"0dacfc5372e314d1219f03e64dde3ab495a5a25e","fixed":"38abf6e931b169ea88d7529b49096f53a5dcf8fe","status":"affected"},{"type":"git","introduced":"710866fc0a64eafcb8bacd91bcb1329eb7e5035f","fixed":"fcb91be52eb6e92e00b533ebd7c77fecada537e1","status":"affected"},{"type":"git","introduced":"aa12ee1c1bd260943fd6ab556d8635811c332eeb","fixed":"d01f0e072dadb02fe10f436b940dd957aff0d7d4","status":"affected"},{"type":"git","introduced":"ff57186b2cc39766672c4c0332323933e5faaa88","fixed":"0b6216f9b3d1c33c76f74511026e5de5385ee520","status":"affected"},{"type":"git","introduced":"15de71d06a400f7fdc15bf377a2552b0ec437cf5","fixed":"529c284cc2815c8350860e9a31722050fe7117cb","status":"affected"},{"type":"git","introduced":"15de71d06a400f7fdc15bf377a2552b0ec437cf5","fixed":"3ed6c458530a547ed0c9ea0b02b19bab620be88b","status":"affected"},{"type":"git","introduced":"15de71d06a400f7fdc15bf377a2552b0ec437cf5","fixed":"9fefc78f7f02d71810776fdeb119a05a946a27cc","status":"affected"},{"type":"git","version":"7689ab22de36f8db19095f6bdf11f28cfde92f5c","status":"affected"},{"type":"git","version":"62d591dde4defb1333d202410609c4ddeae060b3","status":"affected"},{"type":"semver","introduced":"5.10.241","fixed":"5.10.248","status":"affected"},{"type":"semver","introduced":"5.15.190","fixed":"5.15.198","status":"affected"},{"type":"semver","introduced":"6.1.149","fixed":"6.1.160","status":"affected"},{"type":"semver","introduced":"6.6.103","fixed":"6.6.120","status":"affected"},{"type":"semver","introduced":"6.12.44","fixed":"6.12.63","status":"affected"},{"type":"semver","introduced":"5.4.297","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"6.16.4","fixed":"6.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"5.10.248","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.198","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.160","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.63","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.13","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a3f4e3de41a3f115db35276c6b186ccbc913934a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/38abf6e931b169ea88d7529b49096f53a5dcf8fe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fcb91be52eb6e92e00b533ebd7c77fecada537e1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d01f0e072dadb02fe10f436b940dd957aff0d7d4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b6216f9b3d1c33c76f74511026e5de5385ee520","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/529c284cc2815c8350860e9a31722050fe7117cb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ed6c458530a547ed0c9ea0b02b19bab620be88b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9fefc78f7f02d71810776fdeb119a05a946a27cc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68325","url":"https://www.cve.org/CVERecord?id=CVE-2025-68325","licence":"CVE Terms of Use","modified":"2026-05-23T16:02:41.295Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68325","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68325","licence":"Public domain","modified":"2026-10-13T11:10:00.203Z"}],"updatedAt":"2026-11-25T22:59:09.693Z","epss":{"score":0.00212,"percentile":0.12192,"date":"2026-12-01T12:00:22.000Z"}}