cve.bz

CVE-2025-38471 Use After Free

7.8 highEPSS 0.5%Fix available

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

On this page
In the Linux kernel, the following vulnerability has been resolved: tls: always refresh the queue when reading sock After recent changes in net-next TCP compacts skbs much more aggressively. This unearthed a bug in TLS where we may try to operate on an old skb when checking if all skbs in the queue have matching decrypt state and geometry. BUG: KASAN: slab-use-after-free in tls_strp_check_rcv+0x898/0x9a0 [tls] (net/tls/tls_strp.c:436 net/tls/tls_strp.c:530 net/tls/tls_strp.c:544) Read of size 4 at addr ffff888013085750 by task tls/13529 CPU: 2 UID: 0 PID: 13529 Comm: tls Not tainted 6.16.0-rc5-virtme Call Trace: kasan_report+0xca/0x100 tls_strp_check_rcv+0x898/0x9a0 [tls] tls_rx_rec_wait+0x2c9/0x8d0 [tls] tls_sw_recvmsg+0x40f/0x1aa0 [tls] inet_recvmsg+0x1c3/0x1f0 Always reload the queue, fast path is to have the record in the queue when we wake, anyway (IOW the path going down "if !strp->stm.full_len").

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.5% (unchanged from 0.5% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
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-38471 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-38471?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-38471?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-38471 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 6.0.6 before 6.1
Linux6.1 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.147
Linux6.66.6.100
Linux6.126.12.40
Linux6.156.15.8
Linuxlater releases6.16

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux-6.16.1.153-1~deb11u1DLA-4328-1
Debian12linux6.1.147-1DEBIAN-CVE-2025-38471 DSA-5973-1
Debian13linux6.12.41-1DEBIAN-CVE-2025-38471 DSA-5975-1
Debian14linux6.16.3-1DEBIAN-CVE-2025-38471
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-38471
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-38471
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-38471
Ubuntu22.04:LTSlinux-aws-6.8, linux-nvidia-6.86.8.0-1046.49~22.04.1UBUNTU-CVE-2025-38471 USN-8028-5
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1051.57~22.04.1UBUNTU-CVE-2025-38471 USN-8126-1
Ubuntu22.04:LTSlinux-azure-fde-6.86.8.0-1046.53~22.04.1UBUNTU-CVE-2025-38471
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1047.50~22.04.2UBUNTU-CVE-2025-38471 USN-8031-1
Ubuntu22.04:LTSlinux-hwe-6.8, linux-riscv-6.86.8.0-100.100~22.04.1UBUNTU-CVE-2025-38471 USN-8028-6
Ubuntu22.04:LTSlinux-ibm-6.86.8.0-1044.44~22.04.1UBUNTU-CVE-2025-38471 USN-8028-8
Ubuntu22.04:LTSlinux-lowlatency-hwe-6.86.8.0-100.100.1~22.04.1UBUNTU-CVE-2025-38471 USN-8028-6
Ubuntu22.04:LTSlinux-oracle-6.86.8.0-1043.44~22.04.1UBUNTU-CVE-2025-38471 USN-8028-5
Ubuntu22.04:LTSlinux-riscv, linux-aws-6.2, linux-aws-6.5 and 30 moreno fix listedUBUNTU-CVE-2025-38471
31 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-570.35.1.el9_6RHSA-2025:13962
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.35.1.el9_6RHSA-2025:13962
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-6.el9_6RHSA-2025:14497
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.35.1.el9_6RHSA-2025:13962
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-570.35.1.el9_6RHSA-2025:13962
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-570.35.1.el9_6RHSA-2025:13962
Red Hatenterprise_linux:10.0rv, perf, rtla and 88 more0:6.12.0-55.28.1.el10_0RHSA-2025:14009
Red Hatrhel_e4s:9.2::appstreambpftool-debuginfo0:7.0.0-284.131.1.el9_2RHSA-2025:14003
Red Hatrhel_e4s:9.2::appstreamperf, rtla, kernel-doc and 22 more0:5.14.0-284.131.1.el9_2RHSA-2025:14003
Red Hatrhel_e4s:9.2::baseosbpftool, bpftool-debuginfo0:7.0.0-284.131.1.el9_2RHSA-2025:14003
Red Hatrhel_e4s:9.2::baseoskernel, kernel-64k, kernel-core and 40 more0:5.14.0-284.131.1.el9_2RHSA-2025:14003
Red Hatrhel_e4s:9.2::baseoskpatch-patch-5_14_0-284_104_1, kpatch-patch-5_14_0-284_104_1-debuginfo, kpatch-patch-5_14_0-284_104_1-debugsource0:1-6.el9_2RHSA-2025:14599
18 more for Red Hat in the JSON and on Red Hat's page.
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 Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_108-150600.2.1SUSE-SU-2025:03650-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_136-150600.2.1SUSE-SU-2025:03646-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_141-150600.1.5.1SUSE-SU-2025:03023-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_319-150600.2.1SUSE-SU-2025:03636-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_517-150600.2.1SUSE-SU-2025:03638-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_108-150600.2.1SUSE-SU-2025:3762-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_117-150600.2.1SUSE-SU-2025:3755-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_136-150600.2.1SUSE-SU-2025:3764-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_141-150600.13.3.4SUSE-SU-2025:02996-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_419-150600.2.1SUSE-SU-2025:3742-1
59 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
AlmaLinux9rv, perf, rtla and 73 more5.14.0-570.35.1.el9_6ALSA-2025:13962
AlmaLinux10kernel-doc, kernel-abi-stablelists6.12.0-55.28.1.el10_0ALSA-2025:14009
Azure Linux3kernel6.6.104.2-1AZL-65949
Alpaquita23linux-lts6.1.147-r0BELL-CVE-2025-38471
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-38471
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-38471

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; 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

This patch fixes a use-after-free bug in the kernel TLS (kTLS) implementation, where stale SKB pointers could be accessed due to aggressive TCP skb compaction.

The function tls_strp_read_sock() failed to reload the skb queue unconditionally, potentially leading to dereferencing freed memory in tls_strp_check_rcv().

This issue could be triggered remotely over a TCP+TLS connection and may result in kernel crashes or information disclosure.

While the bug requires precise timing and TCP skb compaction behavior, it may be remotely triggered through a TLS stream and can lead to kernel instability or data leakage from freed memory.

Although the underlying bug is a use-after-free read, it can lead to kernel panic on systems with KASAN, SLUB debug, panic_on_oops=1, or when the freed skb is reused and corrupted, potentially causing further memory violations or invalid state propagation in the TLS receive path.

Red Hat's mitigation

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

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-55.28.1.el10_0Fixed 2025-08-18RHSA-2025:14009
Red Hat Enterprise Linux 9kernel-0:5.14.0-570.35.1.el9_6Fixed 2025-08-18RHSA-2025:13962
Red Hat Enterprise Linux 9kpatch-patchFixed 2025-08-25RHSA-2025:14497
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionskernel-0:5.14.0-284.131.1.el9_2Fixed 2025-08-18RHSA-2025:14003
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionskernel-rt-0:5.14.0-284.131.1.rt14.416.el9_2Fixed 2025-08-18RHSA-2025:14005
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionskpatch-patchFixed 2025-08-26RHSA-2025:14599
Red Hat Enterprise Linux 9.4 Extended Update Supportkernel-0:5.14.0-427.84.1.el9_4Fixed 2025-08-19RHSA-2025:14082
Red Hat Enterprise Linux 9.4 Extended Update Supportkpatch-patchFixed 2025-08-28RHSA-2025:14811
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

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-38471.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
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