Skip to main content
VulnerabilityPublished

CVE-2025-38000: Linux kernel · sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()

Affects Linux kernelSource CVE Database V5

0

Not known to be exploited.

Data as of 26 Oct 2026, 10:12 UTC

Severity
High

Rated High by the CNA (Linux) · No CVSS score from NVD or the CNA

EPSS
0.2% chance of exploitation in 30 days – higher than 13% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

AI-suggested

European organizations should prioritize updating their Linux kernel versions to include the patch that fixes CVE-2025-38000. Since the vulnerability is in the kernel's HFSC qdisc code, kernel upgrades or backported patches from trusted Linux distributions are essential. Network administrators should audit their use of HFSC queuing disciplines and consider temporarily disabling HFSC or switching to alternative qdiscs if patching is delayed. Monitoring kernel logs for unusual dequeue or packet drop behavior related to HFSC may help detect attempts to trigger the vulnerability. Additionally, applying strict access controls to limit who can configure or interact with network queuing disciplines reduces the risk of exploitation. For embedded or specialized devices running affected kernels, coordinate with vendors for timely firmware updates. Finally, incorporate this vulnerability into incident response and vulnerability management workflows to ensure rapid remediation and detection.

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.

References

Community reviews

Loading reviews…