CVE-2025-38477
net/sched: sch_qfq: Fix race condition on qfq_aggregate
Reported by linux · Published July 28, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| linux_kernel | linux | 6.15.8, 6.12.40, 6.6.100, 6.1.147, 5.15.190, 5.10.241, 5.4.297 |
| Linux | Linux | fbe48f06e64134dfeafa89ad23387f66ebca3527, d841aa5518508ab195b6781ad0d73ee378d713dd, c6df794000147a3a02f79984aada4ce83f8d0a1e, c000a3a330d97f6c073ace5aa5faf94b9adb4b79, aa7a22c4d678bf649fd3a1d27debec583563414d, a6d735100f602c830c16d69fb6d780eebd8c9ae1, 5e28d5a3f774f118896aec17a3a20a9c5c9dfc64, 466e10194ab81caa2ee6a332d33ba16bcceeeba6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 462dbc9101acd38e92eda93c0726857517a24bbd, 462dbc9101acd38e92eda93c0726857517a24bbd, 462dbc9101acd38e92eda93c0726857517a24bbd |
| Linux | Linux | 3.8, 0, 5.4.297 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| Linux | Linux | 6.15.8, 6.12.40, 6.6.100 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | perf | 0 |
| amazon:2 | perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.12.40-63.114 | 0 |
| amazon:2 | kernel | 0 |
…and 24 more
Timeline
- Jul 28, 2025 EPSS Score (30 in total, the first dated here)
- Jul 28, 2025 CVE Published
- Oct 12, 2025 PoC Published (11 in total, the first dated here)
- Apr 20, 2026 Distribution Patch (161 in total, the first dated here)
- Apr 20, 2026 Security Advisory (208 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38477
vulnetix vdb fixes CVE-2025-38477
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38477/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart