Bug 2383922 (CVE-2025-38477) - CVE-2025-38477 kernel: net/sched: sch_qfq: Fix race condition on qfq_aggregate
Summary: CVE-2025-38477 kernel: net/sched: sch_qfq: Fix race condition on qfq_aggregate
Keywords:
Status: NEW
Alias: CVE-2025-38477
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-28 12:03 UTC by OSIDB Bzimport
Modified: 2025-10-01 17:40 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:15008 0 None None None 2025-09-02 04:19:40 UTC
Red Hat Product Errata RHSA-2025:17009 0 None None None 2025-09-30 00:32:41 UTC
Red Hat Product Errata RHSA-2025:17109 0 None None None 2025-09-30 17:21:29 UTC
Red Hat Product Errata RHSA-2025:17124 0 None None None 2025-10-01 00:24:48 UTC
Red Hat Product Errata RHSA-2025:17161 0 None None None 2025-10-01 17:40:42 UTC

Description OSIDB Bzimport 2025-07-28 12:03:25 UTC
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.

Comment 1 Avinash Hanwate 2025-07-28 17:26:36 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025072813-CVE-2025-38477-8b42@gregkh/T

Comment 5 errata-xmlrpc 2025-09-02 04:19:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:15008 https://access.redhat.com/errata/RHSA-2025:15008

Comment 6 errata-xmlrpc 2025-09-30 00:32:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2025:17009 https://access.redhat.com/errata/RHSA-2025:17009

Comment 7 errata-xmlrpc 2025-09-30 17:21:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:17109 https://access.redhat.com/errata/RHSA-2025:17109

Comment 8 errata-xmlrpc 2025-10-01 00:24:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:17124 https://access.redhat.com/errata/RHSA-2025:17124

Comment 9 errata-xmlrpc 2025-10-01 17:40:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:17161 https://access.redhat.com/errata/RHSA-2025:17161


Note You need to log in before you can comment on or make changes to this bug.