PoC Monitor
← All CVEs
CVE-2025-38000published 6 Jun 2025 13:03 UTCData: JSON · API

Linux

sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-416
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 1034e3310752e8675e313f7271b348914008719a
  • >= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < f9f593e34d2fb67644372c8f7b033bdc622ad228
  • >= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 89c301e929a0db14ebd94b4d97764ce1d6981653
  • >= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4
  • >= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 93c276942e75de0e5bc91576300d292e968f5a02
  • >= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 49b21795b8e5654a7df3d910a12e1060da4c04cf
  • >= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335
  • >= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, < 3f981138109f63232a5fb7165938d4c945cc1b9d

Fixed in 1034e3310752e8675e313f7271b348914008719a, f9f593e34d2fb67644372c8f7b033bdc622ad228, 89c301e929a0db14ebd94b4d97764ce1d6981653, f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4, 93c276942e75de0e5bc91576300d292e968f5a02, 49b21795b8e5654a7df3d910a12e1060da4c04cf, 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335, 3f981138109f63232a5fb7165938d4c945cc1b9d

Linux Linux
  • 4.8

Fixed in 0, 5.4.294, 5.10.238, 5.15.185, 6.1.141, 6.6.93, 6.12.31, 6.14.9, 6.15

Mitigation

Upgrade Linux to 1034e3310752e8675e313f7271b348914008719a or f9f593e34d2fb67644372c8f7b033bdc622ad228 or 89c301e929a0db14ebd94b4d97764ce1d6981653 or f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4 or 93c276942e75de0e5bc91576300d292e968f5a02 or 49b21795b8e5654a7df3d910a12e1060da4c04cf or 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335 or 3f981138109f63232a5fb7165938d4c945cc1b9d or later.

Upgrade Linux to 0 or 5.4.294 or 5.10.238 or 5.15.185 or 6.1.141 or 6.6.93 or 6.12.31 or 6.14.9 or 6.15 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published6 Jun 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.