CVE-2025-38477: net/sched: sch_qfq: Fix race condition on qfq_aggregate
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.
Security readout for executives and security teams
Plain-English summary
A flaw in Linux’s QFQ network scheduler can mishandle shared kernel data when operations occur concurrently. The resulting NULL dereference or use-after-free could crash a system or potentially compromise confidentiality, integrity, and availability. Exploitation requires local access with low privileges according to the supplied CVSS vector.
Executive priority
Treat this as a high-priority kernel update for exposed multi-user or untrusted-workload Linux systems. Schedule remediation through normal emergency patch governance, with reboot coordination and verification. Systems without local untrusted users and without reachable QFQ functionality may receive lower operational priority after documented validation.
Technical view
qfq_change_agg can modify qfq_aggregate during qfq_enqueue while class-dump or deletion paths access it concurrently. This can cause a NULL dereference in qfq_dump_class or use-after-free in qfq_delete_class. The cited fix expands critical-section coverage and adds scheduler-tree locking to class and statistics dumps.
Likely exposure
Exposure is limited to Linux systems running an affected kernel where the QFQ scheduler code path can be reached. The CVSS vector indicates local, low-privileged access rather than direct remote exploitation. The supplied affected-version data is irregular, so organizations should map their exact distribution kernel packages against vendor advisories and cited fixes.
Exploitation context
The source bundle does not identify public exploitation, a proof of concept, or inclusion in CISA KEV. Active exploitation should therefore not be assumed. The vulnerability nevertheless has high potential impact because it involves unsafe kernel memory access and requires low attack complexity once prerequisite local access exists.
Researcher notes
The record describes a concurrency flaw but assigns no CWE. Observable failure modes are a NULL dereference and use-after-free involving qfq_aggregate lifecycle and concurrent class operations. Multiple stable-tree commits are supplied, indicating backports across kernel branches. Exact affected and fixed package boundaries require distribution-specific confirmation.
Mitigation direction
Inventory running Linux kernels and identify systems using the QFQ scheduler.
Apply vendor-supported kernel updates containing the cited stable fix, then reboot into the updated kernel.
Prioritize multi-user and untrusted-workload hosts because the CVSS vector requires local low-privileged access.
Check distribution advisories for exact fixed package versions; the supplied affected-version list is ambiguous.
Validation and detection
Confirm the running kernel, not only installed packages, matches a vendor-fixed release.
Verify the applicable vendor package includes one of the cited upstream stable commits.
Review traffic-control configuration and workload requirements for QFQ use.
Monitor for kernel NULL-dereference, use-after-free, or QFQ-related crash reports after remediation.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-38477 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.