CVE-2025-38000

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
06/06/2025
Last modified:
16/12/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()<br /> <br /> When enqueuing the first packet to an HFSC class, hfsc_enqueue() calls the<br /> child qdisc&amp;#39;s peek() operation before incrementing sch-&gt;q.qlen and<br /> sch-&gt;qstats.backlog. If the child qdisc uses qdisc_peek_dequeued(), this may<br /> trigger an immediate dequeue and potential packet drop. In such cases,<br /> qdisc_tree_reduce_backlog() is called, but the HFSC qdisc&amp;#39;s qlen and backlog<br /> have not yet been updated, leading to inconsistent queue accounting. This<br /> can leave an empty HFSC class in the active list, causing further<br /> consequences like use-after-free.<br /> <br /> This patch fixes the bug by moving the increment of sch-&gt;q.qlen and<br /> sch-&gt;qstats.backlog before the call to the child qdisc&amp;#39;s peek() operation.<br /> This ensures that queue length and backlog are always accurate when packet<br /> drops or dequeues are triggered during the peek.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.8 (including) 5.4.294 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.238 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.185 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.141 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.93 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.31 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.13 (including) 6.14.9 (excluding)
cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc7:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*