CVE-2025-38350 net/sched: Always pass notifications when child class becomes empty
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
net/sched: Always pass notifications when child class becomes empty
Certain classful qdiscs may invoke their classes' dequeue handler on an
enqueue operation. This may unexpectedly empty the child qdisc and thus
make an in-flight class passive via qlen_notify(). Most qdiscs do not
expect such behaviour at this point in time and may re-activate the
class eventually anyways which will lead to a use-after-free.
The referenced fix commit attempted to fix this behavior for the HFSC
case by moving the backlog accounting around, though this turned out to
be incomplete since the parent's parent may run into the issue too.
The following reproducer demonstrates this use-after-free:
tc qdisc add dev lo root handle 1: drr
tc filter add dev lo parent 1: basic classid 1:1
tc class add dev lo parent 1: classid 1:1 drr
tc qdisc add dev lo parent 1:1 handle 2: hfsc def 1
tc class add dev lo parent 2: classid 2:1 hfsc rt m1 8 d 1 m2 0
tc qdisc add dev lo parent 2:1 handle 3: netem
tc qdisc add dev lo parent 3:1 handle 4: blackhole
echo 1 | socat -u STDIN UDP4-DATAGRAM:127.0.0.1:8888
tc class delete dev lo classid 1:1
echo 1 | socat -u STDIN UDP4-DATAGRAM:127.0.0.1:8888
Since backlog accounting issues leading to a use-after-frees on stale
class pointers is a recurring pattern at this point, this patch takes
a different approach. Instead of trying to fix the accounting, the patch
ensures that qdisc_tree_reduce_backlog always calls qlen_notify when
the child qdisc is empty. This solves the problem because deletion of
qdiscs always involves a call to qdisc_reset() and / or
qdisc_purge_queue() which ultimately resets its qlen to 0 thus causing
the following qdisc_tree_reduce_backlog() to report to the parent. Note
that this may call qlen_notify on passive classes multiple times. This
is not a problem after the recent patch series that made all the
classful qdiscs qlen_notify() handlers idempotent.
Upgrade path
30 packages: 26 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| cbl-mariner kernel(CBL-Mariner 2.0) | < 5.15.200.1-1 | 5.15.200.1-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.147-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +38 more | 6.1.147-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.37-1 | 6.12.37-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.37-1 | 6.12.37-1 | Fixed |
| Linux kernel | < 5.4.296; < 5.10.240; < 5.15.187; < 6.1.144 +26 more | 3b290923ad2b23596208c1e29520badef4356a43, 5.4.296, 5.10.240, 5.15.187, 6.1.144, 6.6.97, 6.12.37, 6.15, 6.15.6, 6.16, 7874c9c132e906a52a187d045995b115973c93fb, 103406b38c600fec1fe375a77b27d87e314aea09, a44acdd9e84a211989ff4b9b92bf3545d8456ad5, a553afd91f55ff39b1e8a1c4989a29394c9e0472, e269f29e9395527bc00c213c6b15da04ebb35070, e9921b57dca05ac5f4fa1fa8e993d4f0ee52e2b7, f680a4643c6f71e758d8fe0431a958e9a6a4f59d | Fixed |
| Siemens RUGGEDCOM RST2428P | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XCH328 | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XCM324 | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XCM328 | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XCM332 | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (230 V AC, 12xFO) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (230 V AC, 8xFO) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (230V AC, 2x10G, 24xSFP, 8xSFP+) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (24 V DC, 12xFO) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (24 V DC, 8xFO) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (24V DC, 2x10G, 24xSFP, 8xSFP+) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) | < V3.3 | V3.3 | Fixed |
| Siemens SCALANCE XRM334 (2x230V AC, 2x10G, 24xSFP, 8xSFP+) | < V3.3 | V3.3 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-153.163 | 5.15.0-153.163 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-79.79 | 6.8.0-79.79 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1087.92 | 5.15.0-1087.92 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1085.88 | 5.15.0-1085.88 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1036.40 | 6.8.0-1036.40 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner kernel(CBL-Mariner:2.0) | < 5.15.200.1-1 | 5.15.200.1-1 |
| debian/linux(Debian:12) | < 6.1.147-1 | 6.1.147-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.135-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.137-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.139-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.140-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
Show 75 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.37-1 | 6.12.37-1 |
| debian/linux(Debian:14) | < 6.12.37-1 | 6.12.37-1 |
| Linux kernel | >= 1034e3310752e8675e313f7271b348914008719a, < 3b290923ad2b23596208c1e29520badef4356a43 | 3b290923ad2b23596208c1e29520badef4356a43 |
| Linux kernel | >= f9f593e34d2fb67644372c8f7b033bdc622ad228, < e9921b57dca05ac5f4fa1fa8e993d4f0ee52e2b7 | e9921b57dca05ac5f4fa1fa8e993d4f0ee52e2b7 |
| Linux kernel | >= 89c301e929a0db14ebd94b4d97764ce1d6981653, < e269f29e9395527bc00c213c6b15da04ebb35070 | e269f29e9395527bc00c213c6b15da04ebb35070 |
| Linux kernel | >= f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4, < 7874c9c132e906a52a187d045995b115973c93fb | 7874c9c132e906a52a187d045995b115973c93fb |
| Linux kernel | >= 93c276942e75de0e5bc91576300d292e968f5a02, < f680a4643c6f71e758d8fe0431a958e9a6a4f59d | f680a4643c6f71e758d8fe0431a958e9a6a4f59d |
| Linux kernel | >= 49b21795b8e5654a7df3d910a12e1060da4c04cf, < a553afd91f55ff39b1e8a1c4989a29394c9e0472 | a553afd91f55ff39b1e8a1c4989a29394c9e0472 |
| Linux kernel | >= 3f981138109f63232a5fb7165938d4c945cc1b9d, < a44acdd9e84a211989ff4b9b92bf3545d8456ad5 | a44acdd9e84a211989ff4b9b92bf3545d8456ad5 |
| Linux kernel | >= 3f981138109f63232a5fb7165938d4c945cc1b9d, < 103406b38c600fec1fe375a77b27d87e314aea09 | 103406b38c600fec1fe375a77b27d87e314aea09 |
| Linux kernel | = 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335 | No fix listed |
| Linux kernel | >= 5.4.294, < 5.4.296 | 5.4.296 |
| Linux kernel | >= 5.10.238, < 5.10.240 | 5.10.240 |
| Linux kernel | >= 5.15.185, < 5.15.187 | 5.15.187 |
| Linux kernel | >= 6.1.141, < 6.1.144 | 6.1.144 |
| Linux kernel | >= 6.6.93, < 6.6.97 | 6.6.97 |
| Linux kernel | >= 6.12.31, < 6.12.37 | 6.12.37 |
| Linux kernel | >= 6.14.9, < 6.15 | 6.15 |
| Linux kernel | = 6.15 | No fix listed |
| Linux kernel | < 5.4.296 | 5.4.296 |
| Linux kernel | < 5.10.240 | 5.10.240 |
| Linux kernel | < 5.15.187 | 5.15.187 |
| Linux kernel | < 6.1.144 | 6.1.144 |
| Linux kernel | < 6.6.97 | 6.6.97 |
| Linux kernel | < 6.12.37 | 6.12.37 |
| Linux kernel | < 6.15.6 | 6.15.6 |
| Linux kernel | < 6.16 | 6.16 |
| Siemens RUGGEDCOM RST2428P | < V3.3 | V3.3 |
| Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | < V3.3 | V3.3 |
| Siemens SCALANCE XCH328 | < V3.3 | V3.3 |
| Siemens SCALANCE XCM324 | < V3.3 | V3.3 |
| Siemens SCALANCE XCM328 | < V3.3 | V3.3 |
| Siemens SCALANCE XCM332 | < V3.3 | V3.3 |
| Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (230 V AC, 12xFO) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (230 V AC, 8xFO) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (230V AC, 2x10G, 24xSFP, 8xSFP+) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (24 V DC, 12xFO) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (24 V DC, 8xFO) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (24V DC, 2x10G, 24xSFP, 8xSFP+) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) | < V3.3 | V3.3 |
| Siemens SCALANCE XRM334 (2x230V AC, 2x10G, 24xSFP, 8xSFP+) | < V3.3 | V3.3 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-153.163 | 5.15.0-153.163 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1087.92 | 5.15.0-1087.92 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1085.88 | 5.15.0-1085.88 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-79.79 | 6.8.0-79.79 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1036.40 | 6.8.0-1036.40 |
| Linux kernel | >= 6.15.1, < 6.15.6 | 6.15.6 |
| Linux kernel | = 6.16-rc1 | No fix listed |
| Linux kernel | = 6.16-rc2 | No fix listed |
| Linux kernel | = 6.16-rc3 | No fix listed |
| Linux kernel | = 6.16-rc4 | No fix listed |
| debian linux | = 11.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-38350 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org third-party-advisory
- lists.debian.org third-party-advisory
- cert-portal.siemens.com
- cert-portal.siemens.com
- Ubuntu CVE tracker vendor-advisory
- USN-7722-1 vendor-advisory
- USN-7724-1 vendor-advisory
- USN-7725-1 vendor-advisory
- USN-7725-2 vendor-advisory
- USN-7726-1 vendor-advisory
- USN-7726-2 vendor-advisory
- USN-7726-3 vendor-advisory
- USN-7726-4 vendor-advisory
- USN-7725-3 vendor-advisory
- USN-7754-1 vendor-advisory
- USN-7754-2 vendor-advisory
- USN-7755-1 vendor-advisory
- USN-7755-2 vendor-advisory
- USN-7722-2 vendor-advisory
- USN-7726-5 vendor-advisory
- USN-7755-3 vendor-advisory
- USN-7770-1 vendor-advisory
- USN-7776-1 vendor-advisory
- USN-7779-1 vendor-advisory
- USN-7802-1 vendor-advisory
- USN-7809-1 vendor-advisory
- USN-7819-1 vendor-advisory
- USN-7820-1 vendor-advisory
- USN-7832-1 vendor-advisory
- USN-7819-2 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-21953 third-party-advisory