CVE-2025-38000

HIGH

Linux Kernel 4.8-6.14.9 - Use-After-Free in HFSC Queue Accounting

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 7.8
EPSS 0.0008
EPSS Percentile 23.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-416
Status published
Products (28)
debian/debian_linux 11.0
linux/Kernel 4.8.0 - 5.4.294linux
linux/Kernel 5.11.0 - 5.15.185linux
linux/Kernel 5.16.0 - 6.1.141linux
linux/Kernel 5.5.0 - 5.10.238linux
linux/Kernel 6.13.0 - 6.14.9linux
linux/Kernel 6.2.0 - 6.6.93linux
linux/Kernel 6.7.0 - 6.12.31linux
Linux/Linux < 4.8
Linux/Linux 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 - 1034e3310752e8675e313f7271b348914008719a
... and 18 more
Published Jun 06, 2025
Tracked Since Feb 18, 2026