CVE Database
/

CVE-2025-38000

Back to search

CVE-2025-38000

Published: Jun 6, 2025

Modified: May 11, 2026

PUBLISHED

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.

VendorProductVersions

Linux

Linux

affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7 - < 1034e3310752e8675e313f7271b348914008719a
affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7 - < f9f593e34d2fb67644372c8f7b033bdc622ad228
affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7 - < 89c301e929a0db14ebd94b4d97764ce1d6981653
affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7 - < f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4
affected
12d0ad3be9c3854e52ec74bb83bb6f43612827c7 - < 93c276942e75de0e5bc91576300d292e968f5a02

+3 more versions

Linux

Linux

affected
4.8
unaffected
0 - < 4.8
unaffected
5.4.294 - <= 5.4.*
unaffected
5.10.238 - <= 5.10.*
unaffected
5.15.185 - <= 5.15.*

+5 more versions

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now