CVE-2025-38350

Updated: 2025-09-02 07:48:47.438404

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.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x NONE 0.0
CVSS Version 3.x HIGH 7.0

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

AlmaLinux 9.2 ESU kernel 5.14.0 7.0 HIGH Released CLSA-2025:1757699471 2025-09-12 19:27:44
CentOS 6 ELS kernel 2.6.32 7.0 HIGH Not Vulnerable 2025-09-09 15:27:08
CentOS 7 ELS kernel 3.10.0 7.0 HIGH Released CLSA-2025:1759431860 2025-10-15 20:43:43
CentOS 8.4 ELS kernel 4.18.0 7.0 HIGH Released CLSA-2025:1757961864 2025-09-16 00:43:20
CentOS 8.5 ELS kernel 4.18.0 7.0 HIGH Released CLSA-2025:1757962453 2025-09-16 00:43:22
CentOS Stream 8 ELS kernel 4.18.0 7.0 HIGH Released CLSA-2025:1757961506 2025-09-16 00:43:16
CloudLinux 7 ELS kernel 3.10.0 7.0 HIGH Ignored 2025-11-07 23:40:34 CL7 support is limited
Oracle Linux 6 ELS kernel 2.6.32 7.0 HIGH Not Vulnerable 2025-11-02 08:25:02
Oracle Linux 7 ELS kernel 3.10.0 7.0 HIGH Released CLSA-2025:1759431869 2025-10-02 23:23:38
Oracle Linux 7 ELS kernel-uek 5.4.17 7.0 HIGH Released CLSA-2025:1757963029 2025-09-16 11:19:40
Total: 16