sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 24 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.8 and later | 5.4.294, 5.10.238, 5.15.185, 6.1.141, 6.6.93, 6.12.31, 6.14.9, 6.15 | Patch available | CNA |
- Linux VendorLinux Affected 4.8 and later Fixed in 5.4.294, 5.10.238, 5.15.185, 6.1.141, 6.6.93, 6.12.31, 6.14.9, 6.15 Patch available CNA
CPE configurations NVD · 9
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.8 to before 5.4.294; 5.5 to before 5.10.238; 5.11 to before 5.15.185; 5.16 to before 6.1.141; 6.2 to before 6.6.93; 6.7 to before 6.12.31; 6.13 to before 6.14.9 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:* | 6.15 rc1 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:* | 6.15 rc2 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:* | 6.15 rc3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:* | 6.15 rc4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:* | 6.15 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.15:rc6:*:*:*:*:*:* | 6.15 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.15:rc7:*:*:*:*:*:* | 6.15 rc7 | Vulnerable | Linux |
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 11.0 | Vulnerable | Debian |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.8 to before 5.4.294; 5.5 to before 5.10.238; 5.11 to before 5.15.185; 5.16 to before 6.1.141; 6.2 to before 6.6.93; 6.7 to before 6.12.31; 6.13 to before 6.14.9 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:* Versions 6.15 rc1 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:* Versions 6.15 rc2 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:* Versions 6.15 rc3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:* Versions 6.15 rc4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:* Versions 6.15 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.15:rc6:*:*:*:*:*:* Versions 6.15 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.15:rc7:*:*:*:*:*:* Versions 6.15 rc7 Vulnerable ·Linux
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.4.294, 5.10.238, 5.15.185, 6.1.141, 6.6.93, 6.12.31, 6.14.9, 6.15
Red Hat 17 advisories
- RHSA-2025:20518 Released 2025-11-11 · Red Hat rating Moderatekernel security update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-611.5.1.el9_7, kernel-64k-debug-devel-matched-5.14.0-611.5.1.el9_7, kernel-64k-devel-5.14.0-611.5.1.el9_7 +12
- Red Hat Enterprise Linux BaseOS (v. 9) kernel-5.14.0-611.5.1.el9_7, kernel-64k-5.14.0-611.5.1.el9_7, kernel-64k-core-5.14.0-611.5.1.el9_7 +28
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) kernel-tools-libs-devel-5.14.0-611.5.1.el9_7, libperf-5.14.0-611.5.1.el9_7
- Red Hat Enterprise Linux Real Time (v. 9) kernel-rt-5.14.0-611.5.1.el9_7, kernel-rt-64k-5.14.0-611.5.1.el9_7, kernel-rt-64k-core-5.14.0-611.5.1.el9_7 +21
- Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt-5.14.0-611.5.1.el9_7, kernel-rt-core-5.14.0-611.5.1.el9_7, kernel-rt-debug-5.14.0-611.5.1.el9_7 +9
- RHSA-2025:16583 Released 2025-09-24 · Red Hat rating Importantkpatch-patch-4_18_0-477_67_1, kpatch-patch-4_18_0-477_81_1, kpatch-patch-4_18_0-477_89_1, and kpatch-patch-4_18_0-477_97_1 security update
- Red Hat Enterprise Linux BaseOS E4S (v.8.8) kpatch-patch-4_18_0-477_67_1-1-11.el8_8, kpatch-patch-4_18_0-477_81_1-1-9.el8_8, kpatch-patch-4_18_0-477_89_1-1-7.el8_8 +1
- RHSA-2025:16582 Released 2025-09-24 · Red Hat rating Importantkpatch-patch-4_18_0-553_16_1, kpatch-patch-4_18_0-553_30_1, kpatch-patch-4_18_0-553_40_1, kpatch-patch-4_18_0-553_53_1, and kpatch-patch-4_18_0-553_72_1 security update
- Red Hat Enterprise Linux BaseOS (v. 8) kpatch-patch-4_18_0-553_16_1-1-10.el8_10, kpatch-patch-4_18_0-553_30_1-1-9.el8_10, kpatch-patch-4_18_0-553_40_1-1-7.el8_10 +2
Show 14 more Red Hat advisories
- RHSA-2025:16580 Released 2025-09-24 · Red Hat rating Importantkpatch-patch-4_18_0-372_118_1, kpatch-patch-4_18_0-372_131_1, kpatch-patch-4_18_0-372_137_1, and kpatch-patch-4_18_0-372_145_1 security update
- Red Hat Enterprise Linux BaseOS E4S (v.8.6) kpatch-patch-4_18_0-372_118_1-1-11.el8_6, kpatch-patch-4_18_0-372_131_1-1-10.el8_6, kpatch-patch-4_18_0-372_137_1-1-7.el8_6 +1
- RHSA-2025:16538 Released 2025-09-24 · Red Hat rating Importantkpatch-patch-5_14_0-570_17_1 security update
- Red Hat Enterprise Linux BaseOS (v. 9) kpatch-patch-5_14_0-570_17_1-1-10.el9_6
- RHSA-2025:16540 Released 2025-09-24 · Red Hat rating Importantkpatch-patch-5_14_0-427_31_1, kpatch-patch-5_14_0-427_44_1, kpatch-patch-5_14_0-427_55_1, kpatch-patch-5_14_0-427_68_2, and kpatch-patch-5_14_0-427_84_1 security update
- Red Hat Enterprise Linux BaseOS EUS (v.9.4) kpatch-patch-5_14_0-427_31_1-1-14.el9_4, kpatch-patch-5_14_0-427_44_1-1-12.el9_4, kpatch-patch-5_14_0-427_55_1-1-10.el9_4 +2
- RHSA-2025:16541 Released 2025-09-24 · Red Hat rating Importantkpatch-patch-5_14_0-70_112_1, kpatch-patch-5_14_0-70_121_1, kpatch-patch-5_14_0-70_124_1, and kpatch-patch-5_14_0-70_132_1 security update
- Red Hat Enterprise Linux BaseOS E4S (v.9.0) kpatch-patch-5_14_0-70_112_1-1-12.el9_0, kpatch-patch-5_14_0-70_121_1-1-11.el9_0, kpatch-patch-5_14_0-70_124_1-1-9.el9_0 +1
- RHSA-2025:16539 Released 2025-09-24 · Red Hat rating Importantkpatch-patch-5_14_0-284_104_1, kpatch-patch-5_14_0-284_117_1, kpatch-patch-5_14_0-284_79_1, and kpatch-patch-5_14_0-284_92_1 security update
- Red Hat Enterprise Linux BaseOS E4S (v.9.2) kpatch-patch-5_14_0-284_104_1-1-10.el9_2, kpatch-patch-5_14_0-284_117_1-1-7.el9_2, kpatch-patch-5_14_0-284_79_1-1-14.el9_2 +1
- RHSA-2025:15035 Released 2025-09-02 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux BaseOS AUS (v.8.4) bpftool-4.18.0-305.170.1.el8_4, kernel-4.18.0-305.170.1.el8_4, kernel-abi-stablelists-4.18.0-305.170.1.el8_4 +14
- Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) bpftool-4.18.0-305.170.1.el8_4, kernel-4.18.0-305.170.1.el8_4, kernel-abi-stablelists-4.18.0-305.170.1.el8_4 +14
- RHSA-2025:14748 Released 2025-08-27 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux Server (v. 7 ELS) bpftool-3.10.0-1160.137.1.el7, kernel-3.10.0-1160.137.1.el7, kernel-abi-whitelists-3.10.0-1160.137.1.el7 +11
- Red Hat Enterprise Linux Server Optional (v. 7 ELS) kernel-debug-devel-3.10.0-1160.137.1.el7, kernel-tools-libs-devel-3.10.0-1160.137.1.el7
- RHSA-2025:14744 Released 2025-08-27 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux AppStream E4S (v.9.0) kernel-debug-devel-5.14.0-70.144.1.el9_0, kernel-debug-devel-matched-5.14.0-70.144.1.el9_0, kernel-devel-5.14.0-70.144.1.el9_0 +5
- Red Hat Enterprise Linux BaseOS E4S (v.9.0) bpftool-5.14.0-70.144.1.el9_0, kernel-5.14.0-70.144.1.el9_0, kernel-abi-stablelists-5.14.0-70.144.1.el9_0 +14
- RHSA-2025:14746 Released 2025-08-27 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux for Real Time (v. 7 ELS) kernel-rt-3.10.0-1160.137.1.rt56.1289.el7, kernel-rt-debug-3.10.0-1160.137.1.rt56.1289.el7, kernel-rt-debug-devel-3.10.0-1160.137.1.rt56.1289.el7 +4
- RHSA-2025:14742 Released 2025-08-27 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux BaseOS AUS (v. 8.2) bpftool-4.18.0-193.165.1.el8_2, kernel-4.18.0-193.165.1.el8_2, kernel-abi-whitelists-4.18.0-193.165.1.el8_2 +14
- RHSA-2025:14692 Released 2025-08-27 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux BaseOS AUS (v.8.6) bpftool-4.18.0-372.158.1.el8_6, kernel-4.18.0-372.158.1.el8_6, kernel-abi-stablelists-4.18.0-372.158.1.el8_6 +14
- Red Hat Enterprise Linux BaseOS E4S (v.8.6) bpftool-4.18.0-372.158.1.el8_6, kernel-4.18.0-372.158.1.el8_6, kernel-abi-stablelists-4.18.0-372.158.1.el8_6 +19
- Red Hat Enterprise Linux BaseOS TUS (v.8.6) bpftool-4.18.0-372.158.1.el8_6, kernel-4.18.0-372.158.1.el8_6, kernel-abi-stablelists-4.18.0-372.158.1.el8_6 +14
- RHSA-2025:14511 Released 2025-08-25 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux BaseOS E4S (v.8.8) bpftool-4.18.0-477.107.1.el8_8, kernel-4.18.0-477.107.1.el8_8, kernel-abi-stablelists-4.18.0-477.107.1.el8_8 +14
- Red Hat Enterprise Linux BaseOS TUS (v.8.8) bpftool-4.18.0-477.107.1.el8_8, kernel-4.18.0-477.107.1.el8_8, kernel-abi-stablelists-4.18.0-477.107.1.el8_8 +14
- RHSA-2025:14413 Released 2025-08-25 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux Server AUS (v. 7.7) bpftool-3.10.0-1062.99.1.el7, kernel-3.10.0-1062.99.1.el7, kernel-abi-whitelists-3.10.0-1062.99.1.el7 +8
- Red Hat Enterprise Linux Server Optional AUS (v. 7.7) kernel-tools-libs-devel-3.10.0-1062.99.1.el7
- RHSA-2025:12209 Released 2025-07-29 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux AppStream E4S (v.9.2) kernel-64k-debug-devel-5.14.0-284.128.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.128.1.el9_2, kernel-64k-devel-5.14.0-284.128.1.el9_2 +10
- Red Hat Enterprise Linux BaseOS E4S (v.9.2) bpftool-7.0.0-284.128.1.el9_2, kernel-5.14.0-284.128.1.el9_2, kernel-64k-5.14.0-284.128.1.el9_2 +29
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix yet |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:20518 |
| Red Hat Enterprise Linux AppStream E4S (v.9.0) | Fixed | RHSA-2025:14744 |
| Red Hat Enterprise Linux AppStream E4S (v.9.2) | Fixed | RHSA-2025:12209 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2025:16582 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2025:16538, RHSA-2025:20518 |
| Red Hat Enterprise Linux BaseOS AUS (v. 8.2) | Fixed | RHSA-2025:14742 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.4) | Fixed | RHSA-2025:15035 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.6) | Fixed | RHSA-2025:14692 |
| Red Hat Enterprise Linux BaseOS E4S (v.8.6) | Fixed | RHSA-2025:14692, RHSA-2025:16580 |
| Red Hat Enterprise Linux BaseOS E4S (v.8.8) | Fixed | RHSA-2025:14511, RHSA-2025:16583 |
| Red Hat Enterprise Linux BaseOS E4S (v.9.0) | Fixed | RHSA-2025:14744, RHSA-2025:16541 |
| Red Hat Enterprise Linux BaseOS E4S (v.9.2) | Fixed | RHSA-2025:12209, RHSA-2025:16539 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.4) | Fixed | RHSA-2025:16540 |
| Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) | Fixed | RHSA-2025:15035 |
| Red Hat Enterprise Linux BaseOS TUS (v.8.6) | Fixed | RHSA-2025:14692 |
| Red Hat Enterprise Linux BaseOS TUS (v.8.8) | Fixed | RHSA-2025:14511 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) | Fixed | RHSA-2025:20518 |
| Red Hat Enterprise Linux Real Time (v. 9) | Fixed | RHSA-2025:20518 |
| Red Hat Enterprise Linux Real Time for NFV (v. 9) | Fixed | RHSA-2025:20518 |
| Red Hat Enterprise Linux Server (v. 7 ELS) | Fixed | RHSA-2025:14748 |
| Red Hat Enterprise Linux Server AUS (v. 7.7) | Fixed | RHSA-2025:14413 |
| Red Hat Enterprise Linux Server Optional (v. 7 ELS) | Fixed | RHSA-2025:14748 |
| Red Hat Enterprise Linux Server Optional AUS (v. 7.7) | Fixed | RHSA-2025:14413 |
| Red Hat Enterprise Linux for Real Time (v. 7 ELS) | Fixed | RHSA-2025:14746 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-38000
- 2026-10-03 Alias added: GHSA-5fqh-wrrw-3qc9
- 2026-10-16 CISA SSVC decision points changed
- 2026-10-29 Affected versions changed · Red Hat
References
Patch 8
- https://git.kernel.org/stable/c/1034e3310752e8675e313f7271b348914008719a
- https://git.kernel.org/stable/c/f9f593e34d2fb67644372c8f7b033bdc622ad228
- https://git.kernel.org/stable/c/89c301e929a0db14ebd94b4d97764ce1d6981653
- https://git.kernel.org/stable/c/f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4
- https://git.kernel.org/stable/c/93c276942e75de0e5bc91576300d292e968f5a02
- https://git.kernel.org/stable/c/49b21795b8e5654a7df3d910a12e1060da4c04cf
- https://git.kernel.org/stable/c/3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335
- https://git.kernel.org/stable/c/3f981138109f63232a5fb7165938d4c945cc1b9d
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2025-38000 · CVE Program
- CVE-2025-38000 · NVD
- FIRST EPSS
- GHSA-5fqh-wrrw-3qc9 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-38000 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences