Bug 2374012 (CVE-2025-38083) - CVE-2025-38083 kernel: net_sched: prio: fix a race in prio_tune()
Summary: CVE-2025-38083 kernel: net_sched: prio: fix a race in prio_tune()
Keywords:
Status: NEW
Alias: CVE-2025-38083
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-06-20 12:01 UTC by OSIDB Bzimport
Modified: 2025-06-21 06:20 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-20 12:01:08 UTC
In the Linux kernel, the following vulnerability has been resolved:

net_sched: prio: fix a race in prio_tune()

Gerrard Tai reported a race condition in PRIO, whenever SFQ perturb timer
fires at the wrong time.

The race is as follows:

CPU 0                                 CPU 1
[1]: lock root
[2]: qdisc_tree_flush_backlog()
[3]: unlock root
 |
 |                                    [5]: lock root
 |                                    [6]: rehash
 |                                    [7]: qdisc_tree_reduce_backlog()
 |
[4]: qdisc_put()

This can be abused to underflow a parent's qlen.

Calling qdisc_purge_queue() instead of qdisc_tree_flush_backlog()
should fix the race, because all packets will be purged from the qdisc
before releasing the lock.

Comment 1 Avinash Hanwate 2025-06-21 06:11:49 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025062055-CVE-2025-38083-b226@gregkh/T


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