{"id":"CVE-2025-38000","published":"2025-06-06T13:03:35Z","modified":"2026-10-15T21:52:06Z","title":"sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()\n\nWhen enqueuing the first packet to an HFSC class, hfsc_enqueue() calls the\nchild qdisc's peek() operation before incrementing sch->q.qlen and\nsch->qstats.backlog. If the child qdisc uses qdisc_peek_dequeued(), this may\ntrigger an immediate dequeue and potential packet drop. In such cases,\nqdisc_tree_reduce_backlog() is called, but the HFSC qdisc's qlen and backlog\nhave not yet been updated, leading to inconsistent queue accounting. This\ncan leave an empty HFSC class in the active list, causing further\nconsequences like use-after-free.\n\nThis patch fixes the bug by moving the increment of sch->q.qlen and\nsch->qstats.backlog before the call to the child qdisc's peek() operation.\nThis ensures that queue length and backlog are always accurate when packet\ndrops or dequeues are triggered during the peek.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00324,"percentile":0.17869,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/1034e3310752e8675e313f7271b348914008719a","tags":[]},{"url":"https://git.kernel.org/stable/c/f9f593e34d2fb67644372c8f7b033bdc622ad228","tags":[]},{"url":"https://git.kernel.org/stable/c/89c301e929a0db14ebd94b4d97764ce1d6981653","tags":[]},{"url":"https://git.kernel.org/stable/c/f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4","tags":[]},{"url":"https://git.kernel.org/stable/c/93c276942e75de0e5bc91576300d292e968f5a02","tags":[]},{"url":"https://git.kernel.org/stable/c/49b21795b8e5654a7df3d910a12e1060da4c04cf","tags":[]},{"url":"https://git.kernel.org/stable/c/3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335","tags":[]},{"url":"https://git.kernel.org/stable/c/3f981138109f63232a5fb7165938d4c945cc1b9d","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":3.57},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 1034e3310752e8675e313f7271b348914008719a",">= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < f9f593e34d2fb67644372c8f7b033bdc622ad228",">= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 89c301e929a0db14ebd94b4d97764ce1d6981653",">= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4",">= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 93c276942e75de0e5bc91576300d292e968f5a02",">= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 49b21795b8e5654a7df3d910a12e1060da4c04cf",">= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335",">= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 3f981138109f63232a5fb7165938d4c945cc1b9d"]},{"vendor":"Linux","product":"Linux","versions":["4.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:46:43.597631Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-17141","exploited":false,"provenance":"source"}}