CVE-2025-38000 Details
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.
A vulnerability in the Linux kernel's Hierarchical Fair Service Curve (HFSC) scheduling class has been addressed. The issue arose in the hfsc_enqueue() function, where the queue length and backlog statistics were not properly updated before the function called the child queue discipline's peek() operation. This oversight could lead to an immediate dequeue and potential packet drop if the child discipline used qdisc_peek_dequeued(). Although the HFSC class's queue length and backlog were eventually corrected, the initial inconsistency could cause an empty HFSC class to remain active, leading to further issues such as use-after-free errors. The vulnerability has been resolved by ensuring that the queue length and backlog are accurately updated before peeking, preventing any disruption in queue accounting.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1034e3310752e8675e313f7271b348914008719a | kernel.org | Patch |
| https://git.kernel.org/stable/c/3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335 | kernel.org | Patch |
| https://git.kernel.org/stable/c/3f981138109f63232a5fb7165938d4c945cc1b9d | kernel.org | Patch |
| https://git.kernel.org/stable/c/49b21795b8e5654a7df3d910a12e1060da4c04cf | kernel.org | Patch |
| https://git.kernel.org/stable/c/89c301e929a0db14ebd94b4d97764ce1d6981653 | kernel.org | Patch |
| https://git.kernel.org/stable/c/93c276942e75de0e5bc91576300d292e968f5a02 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f9f593e34d2fb67644372c8f7b033bdc622ad228 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html | CVE | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html | CVE | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.8, < 5.4.294 >= 5.5, < 5.10.238 >= 5.11, < 5.15.185 >= 5.16, < 6.1.141 >= 6.2, < 6.6.93 >= 6.7, < 6.12.31 >= 6.13, < 6.14.9 6.15 rc1 6.15 rc2 6.15 rc3 6.15 rc4 6.15 rc5 6.15 rc6 6.15 rc7 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CVE |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 16, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Jun 6, 2025 | New CVE Received | kernel.org |