Skip to content
OpenAdvisories
High · 7.8 CVE-2025-23142 EUVD-2025-13103GHSA-q7q7-437c-qxh7

sctp: detect and prevent references to a freed transport in sendmsg

Published May 1, 2025 · Updated Oct 15, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-6.8 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-6.8 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-azure-fde-6.8 Package: linux-azure-fips Package: linux-azure-nvidia Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-6.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-6.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-ibm-5.4 Package: linux-ibm-6.8 Package: linux-intel Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lowlatency-hwe-6.8 Package: linux-lts-xenial Package: linux-nvidia Package: linux-nvidia-6.11 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-nvidia-6.8 Package: linux-nvidia-lowlatency Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.11 Package: linux-oem-6.5 Package: linux-oem-6.8 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-oracle-6.5 Package: linux-oracle-6.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-realtime-6.8 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.5 Package: linux-riscv-6.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Package: linux-xilinx Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

In the Linux kernel, the following vulnerability has been resolved:

sctp: detect and prevent references to a freed transport in sendmsg

sctp_sendmsg() re-uses associations and transports when possible by
doing a lookup based on the socket endpoint and the message destination
address, and then sctp_sendmsg_to_asoc() sets the selected transport in
all the message chunks to be sent.

There's a possible race condition if another thread triggers the removal
of that selected transport, for instance, by explicitly unbinding an
address with setsockopt(SCTP_SOCKOPT_BINDX_REM), after the chunks have
been set up and before the message is sent. This can happen if the send
buffer is full, during the period when the sender thread temporarily
releases the socket lock in sctp_wait_for_sndbuf().

This causes the access to the transport data in
sctp_outq_select_transport(), when the association outqueue is flushed,
to result in a use-after-free read.

This change avoids this scenario by having sctp_transport_free() signal
the freeing of the transport, tagging it as "dead". In order to do this,
the patch restores the "dead" bit in struct sctp_transport, which was
removed in
commit 47faa1e4c50e ("sctp: remove the dead field of sctp_transport").

Then, in the scenario where the sender thread has released the socket
lock in sctp_wait_for_sndbuf(), the bit is checked again after
re-acquiring the socket lock to detect the deletion. This is done while
holding a reference to the transport to prevent it from being freed in
the process.

If the transport was deleted while the socket lock was relinquished,
sctp_sendmsg_to_asoc() will return -EAGAIN to let userspace retry the
send.

The bug was found by a private syzbot instance (see the error report [1]
and the C reproducer that triggers it [2]).

Affected products

VendorProductAffectedFixed
Linux Linux 3.18.128 – < 3.19, 4.4.166 – < 4.5, 4.9.142 – < 4.10, 4.14.85 – < 4.15, 4.19.6 – < 4.20, 4.20 3.19

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.12.25-1 —
Debian 13 linux 6.12.25-1 —
Debian 12 linux 6.1.135-1 —
Debian 11 linux 5.10.237-1 DLA-4178-1
Debian 11 linux-6.1 6.1.137-1~deb11u1 DLA-4193-1
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 24.04 LTS linux-bluefield 6.8.0-1016.20 —
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1072.74 —
Ubuntu 25.10 linux-azure-fde No fix yet —
Ubuntu 25.04 linux 6.14.0-22.22 USN-7594-1
Ubuntu 25.04 linux-aws +3 6.14.0-1007.7 USN-7594-3, USN-7594-2, USN-7594-1
Ubuntu 25.04 linux-gcp 6.14.0-1008.8 USN-7594-1
Ubuntu 25.04 linux-realtime 6.14.0-1004.4 USN-7594-1
Ubuntu 24.04 LTS linux 6.8.0-100.100 USN-8028-1
Ubuntu 24.04 LTS linux-aws +1 6.8.0-1046.49 USN-8028-5
Ubuntu 24.04 LTS linux-azure 6.8.0-1046.52 USN-8074-1
Ubuntu 24.04 LTS linux-azure-fde 6.8.0-1046.53 —
Ubuntu 24.04 LTS linux-azure-nvidia 6.8.0-1039.42 —
Ubuntu 24.04 LTS linux-gcp 6.8.0-1047.50 USN-8031-3
Ubuntu 24.04 LTS linux-gke 6.8.0-1043.48 USN-8031-3
Ubuntu 24.04 LTS linux-gkeop 6.8.0-1030.33 USN-8028-5
Ubuntu 24.04 LTS linux-ibm 6.8.0-1044.44 USN-8028-8
Ubuntu 24.04 LTS linux-intel +10 No fix yet —
Ubuntu 24.04 LTS linux-lowlatency 6.8.0-100.100.1 USN-8052-1
Ubuntu 24.04 LTS linux-nvidia-lowlatency 6.8.0-1046.49.1 USN-8028-7
Ubuntu 24.04 LTS linux-nvidia-tegra 6.8.0-1020.20 —
Ubuntu 24.04 LTS linux-oracle 6.8.0-1043.44 USN-8028-5
Ubuntu 24.04 LTS linux-raspi 6.8.0-1047.51 USN-8028-1
Ubuntu 24.04 LTS linux-xilinx 6.8.0-1023.24 USN-8052-2
Show 19 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS linux +1 5.15.0-144.157 USN-7654-1
Ubuntu 22.04 LTS linux-aws 5.15.0-1088.95 USN-7654-1
Ubuntu 22.04 LTS linux-aws-6.8 +1 6.8.0-1046.49~22.04.1 USN-8028-5
Ubuntu 22.04 LTS linux-azure 5.15.0-1094.103 USN-7711-1
Ubuntu 22.04 LTS linux-azure-6.8 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1094.103.1 —
Ubuntu 22.04 LTS linux-azure-fde-6.8 6.8.0-1046.53~22.04.1 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1087.96 USN-7654-1
Ubuntu 22.04 LTS linux-gcp-6.8 6.8.0-1047.50~22.04.2 USN-8031-1
Ubuntu 22.04 LTS linux-gke +1 5.15.0-1085.91 USN-7654-1
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1070.78 USN-7654-1
Ubuntu 22.04 LTS linux-hwe-6.8 +1 6.8.0-100.100~22.04.1 USN-8028-6
Ubuntu 22.04 LTS linux-ibm 5.15.0-1080.83 USN-7654-1
Ubuntu 22.04 LTS linux-ibm-6.8 6.8.0-1044.44~22.04.1 USN-8028-8
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1083.89 USN-7654-1
Ubuntu 22.04 LTS linux-kvm 5.15.0-1084.89 USN-7654-4
Ubuntu 22.04 LTS linux-lowlatency-hwe-6.8 6.8.0-100.100.1~22.04.1 USN-8028-6
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1082.83 USN-7654-1
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1041.41 USN-7654-1
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1030.30 USN-7654-1
Ubuntu 22.04 LTS linux-oracle-6.8 6.8.0-1043.44~22.04.1 USN-8028-5
Ubuntu 22.04 LTS linux-raspi 5.15.0-1083.86 USN-7686-1
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1052.56 USN-7654-5
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-raspi-realtime 6.8.0-2037.38 USN-8028-3
Ubuntu Pro Realtime 24.04 LTS linux-realtime 6.8.1-1041.42 USN-8028-3
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1081.83 USN-7654-2
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1088.97 USN-7654-2
Ubuntu Pro Realtime 22.04 LTS linux-realtime-6.8 6.8.1-1041.42~22.04.1 USN-8028-2
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 24.04 LTS linux-aws-fips 6.8.0-1046.49+fips1 USN-8028-4
Ubuntu Pro FIPS-updates 24.04 LTS linux-azure-fips 6.8.0-1046.52+fips1 USN-8074-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-fips 6.8.0-100.100+fips1 USN-8028-4
Ubuntu Pro FIPS-updates 24.04 LTS linux-gcp-fips 6.8.0-1047.50+fips1 USN-8031-2
Ubuntu Pro FIPS-updates 22.04 LTS linux-aws-fips 5.15.0-1088.95+fips1 USN-7654-3
Ubuntu Pro FIPS-updates 22.04 LTS linux-azure-fips 5.15.0-1094.103+fips1 USN-7712-1
Ubuntu Pro FIPS-updates 22.04 LTS linux-fips 5.15.0-144.157+fips1 USN-7654-3
Ubuntu Pro FIPS-updates 22.04 LTS linux-gcp-fips 5.15.0-1087.96+fips1 USN-7654-3
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro 20.04 LTS linux +10 No fix yet —
Ubuntu Pro 20.04 LTS linux-aws-5.15 5.15.0-1088.95~20.04.1 USN-7654-1
Ubuntu Pro 20.04 LTS linux-azure-5.15 5.15.0-1094.103~20.04.1 USN-7712-2
Ubuntu Pro 20.04 LTS linux-gcp-5.15 5.15.0-1087.96~20.04.2 USN-7654-1
Ubuntu Pro 20.04 LTS linux-hwe-5.15 +1 5.15.0-144.157~20.04.1 USN-7654-1
Ubuntu Pro 20.04 LTS linux-ibm-5.15 5.15.0-1080.83~20.04.1 USN-7654-1
Ubuntu Pro 20.04 LTS linux-intel-iotg-5.15 5.15.0-1083.89~20.04.1 USN-7655-1
Ubuntu Pro 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1041.41~20.04.1 USN-7654-1
Ubuntu Pro 20.04 LTS linux-oracle-5.15 5.15.0-1085.91~20.04.3 USN-7654-1
Ubuntu Pro 20.04 LTS linux-riscv-5.15 5.15.0-1083.87~20.04.1 —
Ubuntu Pro 18.04 LTS linux +12 No fix yet —
Ubuntu Pro 16.04 LTS linux +7 No fix yet —
Ubuntu Pro 14.04 LTS linux-aws +2 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9.6 EUS rv +77 5.14.0-570.77.1.el9_6 RHSA-2026:0457
RHEL 9.4 EUS bpftool 7.3.0-427.106.1.el9_4 RHSA-2026:0489
RHEL 9.4 EUS rv +64 5.14.0-427.106.1.el9_4 RHSA-2026:0489
RHEL 9.2 E4S bpftool 7.0.0-284.154.1.el9_2 RHSA-2026:1441
RHEL 9.2 E4S kernel-rt +14 5.14.0-284.154.1.rt14.439.el9_2 RHSA-2026:1443
RHEL 9.2 E4S perf +47 5.14.0-284.154.1.el9_2 RHSA-2026:1441
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 E4S kernel-rt +12 5.14.0-70.161.1.rt21.233.el9_0 RHSA-2026:0537
RHEL 9.0 E4S perf +28 5.14.0-70.161.1.el9_0 RHSA-2026:0576
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +6 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SLES 15 SP7 kernel-azure +2 6.4.0-150700.20.6.1 SUSE-SU-2025:02254-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.6.1.150700.17.6.1 SUSE-SU-2025:02307-1
SLES 15 SP6 kernel-64kb +6 6.4.0-150600.23.53.1 SUSE-SU-2025:02000-1
SLES 15 SP6 kernel-azure +2 6.4.0-150600.8.40.1 SUSE-SU-2025:01965-1
SLES 15 SP6 kernel-coco +3 6.4.0-15061.28.coco15sp6.1 SUSE-SU-2025:02923-1
SLES 15 SP6 kernel-default-base 6.4.0-150600.23.53.1.150600.12.24.1 SUSE-SU-2025:02000-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 6.1 kernel-default-base 6.4.0-30.1.21.8 SUSE-SU-2025:20419-1
SLE Micro 6.1 kernel-rt +1 6.4.0-33.1 SUSE-SU-2025:20421-1
SLE Micro 6.1 kernel-source +2 6.4.0-30.1 SUSE-SU-2025:20419-1
SLE Micro 6.0 kernel-default-base 6.4.0-30.1.21.8 SUSE-SU-2025:20408-1
SLE Micro 6.0 kernel-rt +1 6.4.0-33.1 SUSE-SU-2025:20413-1
SLE Micro 6.0 kernel-source +2 6.4.0-30.1 SUSE-SU-2025:20408-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.6.1 SUSE-SU-2025:02307-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_2 1-150700.1.5.1 SUSE-SU-2025:02333-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_2 1-150700.15.3.1 SUSE-SU-2025:02307-1
SLE Live Patching 15 SP6 kernel-default 6.4.0-150600.23.53.1 SUSE-SU-2025:02000-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6-RT_Update_11 1-150600.1.3.2 SUSE-SU-2025:01964-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_12 1-150600.13.3.1 SUSE-SU-2025:02000-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.8.1 SUSE-SU-2025:02333-1
SUSE Real Time Module 15 SP6 kernel-rt +3 6.4.0-150600.10.39.1 SUSE-SU-2025:01964-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 dtb-aarch64 +10 6.4.0-150600.23.53.1 SUSE-SU-2025:02000-1
openSUSE Leap 15.6 kernel-azure +2 6.4.0-150600.8.40.1 SUSE-SU-2025:01965-1
openSUSE Leap 15.6 kernel-default-base 6.4.0-150600.23.53.1.150600.12.24.1 SUSE-SU-2025:02000-1
openSUSE Leap 15.6 kernel-rt +3 6.4.0-150600.10.39.1 SUSE-SU-2025:01964-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.12.25-32.101 +1 1.0-0.amzn2023 ALAS2023-2025-1050, ALAS2023-2025-995
Amazon Linux 2023 perf +14 6.1.140-154.222.amzn2023 ALAS2023-2025-1050, ALAS2023-2025-995
Amazon Linux 2023 perf6.12 +5 6.12.25-32.101.amzn2023 ALAS2023-2025-995

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 kernel-uek +34 6.12.0-101.33.4.3.el10uek ELSA-2025-20530, ELSA-2025-20480
Oracle Linux 8 bpftool +18 5.15.0-310.184.5.2.el9uek ELSA-2025-20470
Oracle Linux 7 kernel-uek +6 5.4.17-2136.345.5.3.el8uek ELSA-2025-20471
Oracle Linux 7 kernel-uek-tools 5.4.17-2136.345.5.3.el7uek ELSA-2025-20471

Advisories 50

References