{"id":"CVE-2025-68325","published":"2025-12-18T15:02:50Z","modified":"2026-05-23T16:02:41Z","title":"net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00291,"percentile":0.14237,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a3f4e3de41a3f115db35276c6b186ccbc913934a","tags":[]},{"url":"https://git.kernel.org/stable/c/38abf6e931b169ea88d7529b49096f53a5dcf8fe","tags":[]},{"url":"https://git.kernel.org/stable/c/fcb91be52eb6e92e00b533ebd7c77fecada537e1","tags":[]},{"url":"https://git.kernel.org/stable/c/d01f0e072dadb02fe10f436b940dd957aff0d7d4","tags":[]},{"url":"https://git.kernel.org/stable/c/0b6216f9b3d1c33c76f74511026e5de5385ee520","tags":[]},{"url":"https://git.kernel.org/stable/c/529c284cc2815c8350860e9a31722050fe7117cb","tags":[]},{"url":"https://git.kernel.org/stable/c/3ed6c458530a547ed0c9ea0b02b19bab620be88b","tags":[]},{"url":"https://git.kernel.org/stable/c/9fefc78f7f02d71810776fdeb119a05a946a27cc","tags":[]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":2.85},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-12-20","earliestUrl":"https://github.com/n132/CVE-2025-68325","repos":[{"name":"n132/CVE-2025-68325","url":"https://github.com/n132/CVE-2025-68325","stars":2,"created":"2025-12-20"}]},"first":{"date":"2025-12-20","source":"PoC-in-GitHub","url":"https://github.com/n132/CVE-2025-68325"},"provenance":"source"},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= de04ddd2980b48caa8d7e24a7db2742917a8b280, < a3f4e3de41a3f115db35276c6b186ccbc913934a",">= 0dacfc5372e314d1219f03e64dde3ab495a5a25e, < 38abf6e931b169ea88d7529b49096f53a5dcf8fe",">= 710866fc0a64eafcb8bacd91bcb1329eb7e5035f, < fcb91be52eb6e92e00b533ebd7c77fecada537e1",">= aa12ee1c1bd260943fd6ab556d8635811c332eeb, < d01f0e072dadb02fe10f436b940dd957aff0d7d4",">= ff57186b2cc39766672c4c0332323933e5faaa88, < 0b6216f9b3d1c33c76f74511026e5de5385ee520",">= 15de71d06a400f7fdc15bf377a2552b0ec437cf5, < 529c284cc2815c8350860e9a31722050fe7117cb",">= 15de71d06a400f7fdc15bf377a2552b0ec437cf5, < 3ed6c458530a547ed0c9ea0b02b19bab620be88b",">= 15de71d06a400f7fdc15bf377a2552b0ec437cf5, < 9fefc78f7f02d71810776fdeb119a05a946a27cc","7689ab22de36f8db19095f6bdf11f28cfde92f5c","62d591dde4defb1333d202410609c4ddeae060b3"]},{"vendor":"Linux","product":"Linux","versions":["6.17"]}],"euvd":{"id":"EUVD-2025-204267","exploited":false,"provenance":"source"}}