# CVE-2025-38083: net_sched: prio: fix a race in prio_tune()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-06-20T11:21:51.554Z
- Modified: 2026-10-15T22:18:25.857Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7b8e0b6e659983154c8d7e756cdb833d89a3d4d7 before 53d11560e957d53ee87a0653d258038ce12361b7; from 7b8e0b6e659983154c8d7e756cdb833d89a3d4d7 before 4483d8b9127591c60c4eb789d6cab953bc4522a9; from 7b8e0b6e659983154c8d7e756cdb833d89a3d4d7 before 20f68e6a9e41693cb0e55e5b9ebbcb40983a4b8f; from 7b8e0b6e659983154c8d7e756cdb833d89a3d4d7 before 3aaa7c01cf19d9b9bb64b88b65c3a6fd05da2eb4; from 7b8e0b6e659983154c8d7e756cdb833d89a3d4d7 before 46c15c9d0f65c9ba857d63f53264f4b17e8a715f; from 7b8e0b6e659983154c8d7e756cdb833d89a3d4d7 before e3f6745006dc9423d2b065b90f191cfa11b1b584; from 7b8e0b6e659983154c8d7e756cdb833d89a3d4d7 before 93f9eeb678d4c9c1abf720b3615fa8299a490845; from 7b8e0b6e659983154c8d7e756cdb833d89a3d4d7 before d35acc1be3480505b5931f17e4ea9b7617fea4d3; 5.0 (not affected: before 5.0; from 5.4.295 up to 5.4.*; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.94 up to 6.6.*; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 5.0 before 5.4.295; from 5.5 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.94; from 6.7 before 6.12.34; from 6.13 before 6.15.3; 6.16
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/53d11560e957d53ee87a0653d258038ce12361b7> (patch)
- <https://git.kernel.org/stable/c/4483d8b9127591c60c4eb789d6cab953bc4522a9> (patch)
- <https://git.kernel.org/stable/c/20f68e6a9e41693cb0e55e5b9ebbcb40983a4b8f> (patch)
- <https://git.kernel.org/stable/c/3aaa7c01cf19d9b9bb64b88b65c3a6fd05da2eb4> (patch)
- <https://git.kernel.org/stable/c/46c15c9d0f65c9ba857d63f53264f4b17e8a715f> (patch)
- <https://git.kernel.org/stable/c/e3f6745006dc9423d2b065b90f191cfa11b1b584> (patch)
- <https://git.kernel.org/stable/c/93f9eeb678d4c9c1abf720b3615fa8299a490845> (patch)
- <https://git.kernel.org/stable/c/d35acc1be3480505b5931f17e4ea9b7617fea4d3> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Sources

- CVE List: [CVE-2025-38083](https://www.cve.org/CVERecord?id=CVE-2025-38083), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38083](https://nvd.nist.gov/vuln/detail/CVE-2025-38083), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38083 · Whole record: https://cve.day/CVE-2025-38083.json · Rebuilt by cve.day 2026-11-25T22:58:59.431Z
