CVE-2025-38477

Source
https://cve.org/CVERecord?id=CVE-2025-38477
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38477.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38477
Downstream
Related
Published
2025-07-28T11:21:38.319Z
Modified
2026-03-20T12:42:53.075944Z
Summary
net/sched: sch_qfq: Fix race condition on qfq_aggregate
Details

In the Linux kernel, the following vulnerability has been resolved:

net/sched: schqfq: Fix race condition on qfqaggregate

A race condition can occur when 'agg' is modified in qfqchangeagg (called during qfqenqueue) while other threads access it concurrently. For example, qfqdumpclass may trigger a NULL dereference, and qfqdelete_class may cause a use-after-free.

This patch addresses the issue by:

  1. Moved qfqdestroyclass into the critical section.

  2. Added schtreelock protection to qfqdumpclass and qfqdumpclass_stats.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38477.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
462dbc9101acd38e92eda93c0726857517a24bbd
Fixed
aa7a22c4d678bf649fd3a1d27debec583563414d
Fixed
d841aa5518508ab195b6781ad0d73ee378d713dd
Fixed
c6df794000147a3a02f79984aada4ce83f8d0a1e
Fixed
466e10194ab81caa2ee6a332d33ba16bcceeeba6
Fixed
fbe48f06e64134dfeafa89ad23387f66ebca3527
Fixed
a6d735100f602c830c16d69fb6d780eebd8c9ae1
Fixed
c000a3a330d97f6c073ace5aa5faf94b9adb4b79
Fixed
5e28d5a3f774f118896aec17a3a20a9c5c9dfc64

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38477.json"