Vulnerability · Published Jul 28, 2025 · Assigned by Linux
CVE-2025-38477net/sched: sch_qfq: Fix race condition on qfq_aggregate
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_qfq: Fix race condition on qfq_aggregate A race condition can occur when 'agg' is modified in qfq_change_agg (called during qfq_enqueue) while other threads access it concurrently. For example, qfq_dump_class may trigger a NULL dereference, and qfq_delete_class may cause a use-after-free. This patch addresses the issue by: 1. Moved qfq_destroy_class into the critical section. 2. Added sch_tree_lock protection to qfq_dump_class and qfq_dump_class_stats.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-tools | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-zfcpdump | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-zfcpdump-core | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-zfcpdump-devel | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-zfcpdump-modules | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | kernel-zfcpdump-modules-extra | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | perf | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| AlmaLinux:8 | python3-perf | 4.18.0-553.72.1.el8_10 | ALSA-2025:15008 |
| Debian:12 | linux | 6.1.147-1 | DEBIAN-CVE-2025-38477 |
| Debian:13 | linux | 6.12.41-1 | DSA-5975-1 |
| Debian:13 | linux | 6.12.41-1 | DEBIAN-CVE-2025-38477 |
| Debian:14 | linux | 6.16.3-1 | DEBIAN-CVE-2025-38477 |
| Rocky Linux:8 | kernel | 0:4.18.0-553.72.1.el8_10 | RLSA-2025:15008 |
| Ubuntu:22.04:LTS | linux | 5.15.0-157.167 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux | 5.15.0-157.167 | USN-7793-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-85.85 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-85.85 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1093.100 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1093.100 | USN-7793-1 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1040.42 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1040.42 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | 6.14.0-1014.14~24.04.1 | USN-7791-1 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | 6.14.0-1014.14~24.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1040.42~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1040.42~22.04.1 | USN-7792-3 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1097.106 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1097.106 | USN-7810-1 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1040.46 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1040.46 | USN-7808-1 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-azure-6.14 | 6.14.0-1013.13~24.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1040.46~22.04.1 | USN-7808-2 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1040.46~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1098.107.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | 6.8.0-1025.27 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-azure-nvidia-6.14 | 6.14.0-1007.7 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1093.102 | USN-7793-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1093.102 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1041.43 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1041.43 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | 6.14.0-1017.18~24.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | 6.14.0-1017.18~24.04.1 | USN-7791-3 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1041.43~22.04.1 | USN-7792-1 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1041.43~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1090.96 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1090.96 | USN-7793-5 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1037.41 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1037.41 | USN-7792-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1076.84 | USN-7793-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1076.84 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1024.26 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1024.26 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-hwe-6.14 | 6.14.0-33.33~24.04.1 | USN-7791-1 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-85.85~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1087.90 | USN-7793-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1087.90 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1038.38 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1038.38 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1038.38~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1038.38~22.04.1 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux-intel | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1088.94 | USN-7793-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1088.94 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1089.94 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1089.94 | USN-7933-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-157.167 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-157.167 | USN-7793-1 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-85.85.1 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-85.85.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-85.85.1~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-85.85.1~22.04.1 | USN-7792-1 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1088.89 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1088.89 | USN-7793-1 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1040.43 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1040.43 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1040.43~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1040.43~22.04.1 | USN-7792-1 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1040.43.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1040.43.1 | USN-7792-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1046.46 | USN-7793-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1046.46 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1012.12 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1035.35 | USN-7811-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1035.35 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | 6.14.0-1013.13 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | 6.14.0-1013.13 | USN-7791-3 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1091.97 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1091.97 | USN-7793-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1037.38 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | 6.14.0-1014.14~24.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | 6.14.0-1014.14~24.04.1 | USN-7791-4 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1037.38~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1087.90 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1087.90 | USN-7793-1 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1040.44 | USN-7792-2 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1040.44 | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-riscv-6.14 | 6.14.0-33.33.1~24.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-86.87~22.04.1 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-38477 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1018.19 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1057.61 | UBUNTU-CVE-2025-38477 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1057.61 | USN-7793-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 462dbc9101acd38e92eda93c0726857517a24bbd – before aa7a22c4d678bf649fd3a1d27debec583563414d462dbc9101acd38e92eda93c0726857517a24bbd – before d841aa5518508ab195b6781ad0d73ee378d713dd462dbc9101acd38e92eda93c0726857517a24bbd – before c6df794000147a3a02f79984aada4ce83f8d0a1e462dbc9101acd38e92eda93c0726857517a24bbd – before 466e10194ab81caa2ee6a332d33ba16bcceeeba6462dbc9101acd38e92eda93c0726857517a24bbd – before fbe48f06e64134dfeafa89ad23387f66ebca3527462dbc9101acd38e92eda93c0726857517a24bbd – before a6d735100f602c830c16d69fb6d780eebd8c9ae1462dbc9101acd38e92eda93c0726857517a24bbd – before c000a3a330d97f6c073ace5aa5faf94b9adb4b79462dbc9101acd38e92eda93c0726857517a24bbd – before 5e28d5a3f774f118896aec17a3a20a9c5c9dfc64 |
| Linux | Linux | 3.8 |
References
- https://git.kernel.org/stable/c/aa7a22c4d678bf649fd3a1d27debec583563414d
- https://git.kernel.org/stable/c/d841aa5518508ab195b6781ad0d73ee378d713dd
- https://git.kernel.org/stable/c/c6df794000147a3a02f79984aada4ce83f8d0a1e
- https://git.kernel.org/stable/c/466e10194ab81caa2ee6a332d33ba16bcceeeba6
- https://git.kernel.org/stable/c/fbe48f06e64134dfeafa89ad23387f66ebca3527
- https://git.kernel.org/stable/c/a6d735100f602c830c16d69fb6d780eebd8c9ae1
- https://git.kernel.org/stable/c/c000a3a330d97f6c073ace5aa5faf94b9adb4b79
- https://git.kernel.org/stable/c/5e28d5a3f774f118896aec17a3a20a9c5c9dfc64
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html