CVE-2025-23142

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

HIGH
7.8
CVSS Score
Published: May 1, 2025 at 12:55 PM UTC
Updated: October 15, 2026 at 10:18 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.18.128 ≤ v < 3.194.14.85 ≤ v < 4.154.19.6 ≤ v < 5.4.2934.4.166 ≤ v < 4.54.9.142 ≤ v < 4.105.11 ≤ v < 5.15.1815.16 ≤ v < 6.1.1355.5 ≤ v < 5.10.2376.13 ≤ v < 6.13.126.14 ≤ v < 6.14.36.2 ≤ v < 6.6.886.7 ≤ v < 6.12.2426e51e5287eed4d96ea66a3da95429f42940f0133.18.1284.14.854.19.64.4.1664.9.1426.156.15 rc18376fdc999be008f0e9918db52f1ed8c08f5a1c98b97e045bd6d37f96f161e4d371ae174148e1587cd947138e8c31e8cfcd489c12e9b97271beb6e79df132eff463873e14e019a07f387b4d577d6d1f9e044554e97e812eb257d073bcc130e0ea653858f
Vendor states this is fixed in 0f7df4899299ce4662e5f95badb9dbc57cc37fa5 (fixed)
Vendor states this is fixed in 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee (fixed)
Vendor states this is fixed in 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8 (fixed)
Vendor states this is fixed in 547762250220325d350d0917a7231480e0f4142b (fixed)
Vendor states this is fixed in 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2 (fixed)
Vendor states this is fixed in 7a63f4fb0efb4e69efd990cbb740a848679ec4b0 (fixed)
Vendor states this is fixed in 9e7c37fadb3be1fc33073fcf10aa96d166caa697 (fixed)
Vendor states this is fixed in c6fefcb71d246baaf3bacdad1af7ff50ebcfe652 (fixed)
Vendor states this is fixed in f1a69a940de58b16e8249dff26f74c8cc59b32be (fixed)
Affected range stops below 3.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.15, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.20 (unaffected)
Affected range stops below 4.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.10.237 (unaffected)
Vendor states this is fixed in 5.15.181 (unaffected)
Vendor states this is fixed in 5.4.293 (unaffected)
Vendor states this is fixed in 6.1.135 (unaffected)
Vendor states this is fixed in 6.12.24 (unaffected)
Vendor states this is fixed in 6.13.12 (unaffected)
Vendor states this is fixed in 6.14.3 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.88 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0f7df4899299ce4662e5f95badb9dbc57cc37fa5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/547762250220325d350d0917a7231480e0f4142b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7a63f4fb0efb4e69efd990cbb740a848679ec4b0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9e7c37fadb3be1fc33073fcf10aa96d166caa697
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c6fefcb71d246baaf3bacdad1af7ff50ebcfe652

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card