CVE-2025-38000sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()
- 7.8HighCVSS base score
- 0.24%Exploitation in 30 daysEPSS · top 85% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue() When enqueuing the first packet to an HFSC class, hfsc_enqueue() calls the child qdisc's peek() operation before incrementing sch->q.qlen and sch->qstats.backlog. If the child qdisc uses qdisc_peek_dequeued(), this may trigger an immediate dequeue and potential packet drop. In such cases, qdisc_tree_reduce_backlog() is called, but the HFSC qdisc's qlen and backlog have not yet been updated, leading to inconsistent queue accounting. This can leave an empty HFSC class in the active list, causing further consequences like use-after-free. This patch fixes the bug by moving the increment of sch->q.qlen and sch->qstats.backlog before the call to the child qdisc's peek() operation. This ensures that queue length and backlog are always accurate when packet drops or dequeues are triggered during the peek.
Timeline
ID reserved
By Linux
- 51 days later
· 51 days later
Published
- 17 months later
· 17 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.24% · top 85% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 – < 1034e3310752e8675e313f7271b348914008719a
- affected 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 – < f9f593e34d2fb67644372c8f7b033bdc622ad228
- affected 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 – < 89c301e929a0db14ebd94b4d97764ce1d6981653
- affected 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 – < f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4
- affected 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 – < 93c276942e75de0e5bc91576300d292e968f5a02
- affected 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 – < 49b21795b8e5654a7df3d910a12e1060da4c04cf
- affected 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 – < 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335
- affected 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 – < 3f981138109f63232a5fb7165938d4c945cc1b9d
- affected 4.8
- unaffected < 4.8
- unaffected 5.4.294 – ≤ 5.4.*
- unaffected 5.10.238 – ≤ 5.10.*
- unaffected 5.15.185 – ≤ 5.15.*
- unaffected 6.1.141 – ≤ 6.1.*
- unaffected 6.6.93 – ≤ 6.6.*
- unaffected 6.12.31 – ≤ 6.12.*
- unaffected 6.14.9 – ≤ 6.14.*
- unaffected 6.15 – ≤ *
References
References10
- https://git.kernel.org/stable/c/1034e3310752e8675e313f7271b348914008719a (opens in a new tab)
- https://git.kernel.org/stable/c/f9f593e34d2fb67644372c8f7b033bdc622ad228 (opens in a new tab)
- https://git.kernel.org/stable/c/89c301e929a0db14ebd94b4d97764ce1d6981653 (opens in a new tab)
- https://git.kernel.org/stable/c/f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4 (opens in a new tab)
- https://git.kernel.org/stable/c/93c276942e75de0e5bc91576300d292e968f5a02 (opens in a new tab)
- https://git.kernel.org/stable/c/49b21795b8e5654a7df3d910a12e1060da4c04cf (opens in a new tab)
- https://git.kernel.org/stable/c/3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335 (opens in a new tab)
- https://git.kernel.org/stable/c/3f981138109f63232a5fb7165938d4c945cc1b9d (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-17141 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-38000)Record last updated .