CVE-2025-38000CWE-416

CVE-2025-38000

High · published June 6, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
13.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00231 · 13.2th percentile
Weakness
CWE-416 · Use After Free
Published
2025-06-06T17:15Z
Affected products (15)
ProductVersionsFixed in
linux/linux_kernel≥ 4.8, < 5.4.2945.4.294
linux/linux_kernel≥ 5.5, < 5.10.2385.10.238
linux/linux_kernel≥ 5.11, < 5.15.1855.15.185
linux/linux_kernel≥ 5.16, < 6.1.1416.1.141
linux/linux_kernel≥ 6.2, < 6.6.936.6.93
linux/linux_kernel≥ 6.7, < 6.12.316.12.31
linux/linux_kernel≥ 6.13, < 6.14.96.14.9
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
debian/debian_linuxall versions—
References (10)
EPSS history
Timeline
  • 06 JUN 13:03Z
    sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()
    cvelistv5