cve.bz

CVE-2025-38350 Use After Free

7.8 highEPSS 0.3%Fix available

High (7.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 24th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-06-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-38350 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-38350?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-38350?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-38350 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 5.4.294 before 5.4.296
Linuxfrom 5.10.238 before 5.10.240
Linuxfrom 5.15.185 before 5.15.187
Linuxfrom 6.1.141 before 6.1.144
Linuxfrom 6.6.93 before 6.6.97
Linuxfrom 6.12.31 before 6.12.37
Linuxfrom 6.14.9 before 6.15
Linux6.15 and later

Fixed in

ProductRelease lineFixed in
Linux5.45.4.296
Linux5.105.10.240
Linux5.155.15.187
Linux6.16.1.144
Linux6.66.6.97
Linux6.126.12.37
Linux6.156.15.6
Linuxlater releases6.16

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.244-1DLA-4327-1
Debian11linux-6.16.1.153-1~deb11u1DLA-4328-1
Debian12linux6.1.147-1DEBIAN-CVE-2025-38350 DSA-5973-1
Debian13, 14linux6.12.37-1DEBIAN-CVE-2025-38350
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-38350
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-38350
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-38350
Ubuntu22.04:LTSlinux, linux-lowlatency5.15.0-153.163UBUNTU-CVE-2025-38350 USN-7726-1
Ubuntu22.04:LTSlinux-aws5.15.0-1091.98UBUNTU-CVE-2025-38350 USN-7726-1
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1036.38~22.04.1UBUNTU-CVE-2025-38350 USN-7725-1
Ubuntu22.04:LTSlinux-azure5.15.0-1095.104UBUNTU-CVE-2025-38350 USN-7726-5
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1036.42~22.04.1UBUNTU-CVE-2025-38350 USN-7802-1
Ubuntu22.04:LTSlinux-azure-fde5.15.0-1095.104.1UBUNTU-CVE-2025-38350
Ubuntu22.04:LTSlinux-gcp5.15.0-1091.100UBUNTU-CVE-2025-38350 USN-7726-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1037.39~22.04.1UBUNTU-CVE-2025-38350 USN-7725-3
Ubuntu22.04:LTSlinux-gke5.15.0-1088.94UBUNTU-CVE-2025-38350 USN-7726-4
100 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_16_1, kpatch-patch-4_18_0-553_16_1-debuginfo, kpatch-patch-4_18_0-553_16_1-debugsource0:1-10.el8_10RHSA-2025:16582
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_30_1, kpatch-patch-4_18_0-553_30_1-debuginfo, kpatch-patch-4_18_0-553_30_1-debugsource0:1-9.el8_10RHSA-2025:16582
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_40_1, kpatch-patch-4_18_0-553_40_1-debuginfo, kpatch-patch-4_18_0-553_40_1-debugsource0:1-7.el8_10RHSA-2025:16582
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_53_1, kpatch-patch-4_18_0-553_53_1-debuginfo, kpatch-patch-4_18_0-553_53_1-debugsource0:1-5.el8_10RHSA-2025:16582
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_72_1, kpatch-patch-4_18_0-553_72_1-debuginfo, kpatch-patch-4_18_0-553_72_1-debugsource0:1-2.el8_10RHSA-2025:16582
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.75.1.el8_10RHSA-2025:15785
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.75.1.el8_10RHSA-2025:15785
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.75.1.rt7.416.el8_10RHSA-2025:15786
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.75.1.rt7.416.el8_10RHSA-2025:15786
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-570.39.1.el9_6RHSA-2025:15011
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.39.1.el9_6RHSA-2025:15011
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-570_17_1, kpatch-patch-5_14_0-570_17_1-debuginfo, kpatch-patch-5_14_0-570_17_1-debugsource0:1-10.el9_6RHSA-2025:16538
51 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.218.1SUSE-SU-2025:03310-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.218.1.150300.18.130.1SUSE-SU-2025:03310-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.218.1SUSE-SU-2025:03310-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.173.1SUSE-SU-2025:02849-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.65.1SUSE-SU-2025:02996-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.11.1SUSE-SU-2025:02997-1
SUSELinux Enterprise High Availability Extension 16.0kernel-default6.12.0-160000.6.1SUSE-SU-2025:21179-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.173.1SUSE-SU-2025:02849-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.173.1.150400.24.88.1SUSE-SU-2025:02849-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-source, kernel-default5.14.21-150500.55.121.2SUSE-SU-2025:03344-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.121.2.150500.6.57.2SUSE-SU-2025:03344-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morekernel-docs, kernel-syms, kernel-obs-build5.14.21-150500.55.121.1SUSE-SU-2025:03344-1
45 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.65.1SUSE-SU-2025:02996-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.48.1SUSE-SU-2025:02969-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.65.1.150600.12.28.4SUSE-SU-2025:02996-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.49.1SUSE-SU-2025:03023-1
openSUSELeap 16.0kernel-default-base6.12.0-160000.6.1.160000.2.4openSUSE-SU-2025:20081-1
openSUSELeap 16.0kernel-rt, dtb-aarch64, kernel-64kb and 8 more6.12.0-160000.6.1openSUSE-SU-2025:20081-1
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.75.1.rt7.416.el8_10ALSA-2025:15786
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.75.1.el8_10ALSA-2025:15785
AlmaLinux9rv, perf, rtla and 73 more5.14.0-570.39.1.el9_6ALSA-2025:15011
AlmaLinux10kernel-doc, kernel-abi-stablelists6.12.0-55.31.1.el10_0ALSA-2025:15447
Rocky Linux9kernel0:5.14.0-570.39.1.el9_6RLSA-2025:15011
Azure Linux2kernel5.15.200.1-1AZL-72593
Alpaquita23linux-lts6.1.147-r0BELL-CVE-2025-38350
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-38350
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-38350

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

On Red Hat Enterprise Linux 8 and later releases, regular (non-root) users can exploit this issue by abusing unprivileged user namespaces. On Red Hat Enterprise Linux 7, unprivileged user namespaces are disabled by default. Red Hat Enterprise Linux 6 did not include support for them at all, meaning that root privileges are necessary to trigger this flaw.

Red Hat's mitigation

To mitigate this issue, prevent the sch_cbs module from being loaded. Please see https://access.redhat.com/solutions/41278 for how information on how to blacklist a kernel module to prevent it from loading automatically.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-55.31.1.el10_0Fixed 2025-09-08RHSA-2025:15447
Red Hat Enterprise Linux 7.7 Advanced Update Supportkernel-0:3.10.0-1062.99.1.el7Fixed 2025-08-25RHSA-2025:14413
Red Hat Enterprise Linux 7 Extended Lifecycle Supportkernel-rt-0:3.10.0-1160.137.1.rt56.1289.el7Fixed 2025-08-27RHSA-2025:14746
Red Hat Enterprise Linux 7 Extended Lifecycle Supportkernel-0:3.10.0-1160.137.1.el7Fixed 2025-08-27RHSA-2025:14748
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.75.1.rt7.416.el8_10Fixed 2025-09-15RHSA-2025:15786
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.75.1.el8_10Fixed 2025-09-15RHSA-2025:15785
Red Hat Enterprise Linux 8kpatch-patchFixed 2025-09-24RHSA-2025:16582
Red Hat Enterprise Linux 8.2 Advanced Update Supportkernel-0:4.18.0-193.165.1.el8_2Fixed 2025-08-27RHSA-2025:14742
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.170.1.el8_4Fixed 2025-09-02RHSA-2025:15035
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onkernel-0:4.18.0-305.170.1.el8_4Fixed 2025-09-02RHSA-2025:15035
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportkernel-0:4.18.0-372.158.1.el8_6Fixed 2025-08-27RHSA-2025:14692
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicekernel-0:4.18.0-372.158.1.el8_6Fixed 2025-08-27RHSA-2025:14692
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskernel-0:4.18.0-372.158.1.el8_6Fixed 2025-08-27RHSA-2025:14692
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskpatch-patchFixed 2025-09-24RHSA-2025:16580
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicekernel-0:4.18.0-477.107.1.el8_8Fixed 2025-08-25RHSA-2025:14511
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskernel-0:4.18.0-477.107.1.el8_8Fixed 2025-08-25RHSA-2025:14511
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskpatch-patchFixed 2025-09-24RHSA-2025:16583
Red Hat Enterprise Linux 9kernel-0:5.14.0-570.39.1.el9_6Fixed 2025-09-02RHSA-2025:15011
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 9kernel-rtAffected
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-38350.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-043-06Siemens SINEC OS2026-01-28Energy, Critical Manufacturing, Transportation Systems, Water and WastewaterRUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family, SCALANCE XCH328 (6GK5328-4TS01-2EC2) and 13 morenone listed
ICSA-25-162-05Siemens SIMATIC S7-1500 CPU family2025-06-10EnergySIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON