# CVE-2025-23142: sctp: detect and prevent references to a freed transport in sendmsg

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-05-01T12:55:32.614Z
- Modified: 2026-10-15T22:18:16.243Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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]).

(As written by CVE List.)

## Affected

- Linux Linux: from df132eff463873e14e019a07f387b4d577d6d1f9 before 547762250220325d350d0917a7231480e0f4142b; from df132eff463873e14e019a07f387b4d577d6d1f9 before 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8; from df132eff463873e14e019a07f387b4d577d6d1f9 before 0f7df4899299ce4662e5f95badb9dbc57cc37fa5; from df132eff463873e14e019a07f387b4d577d6d1f9 before 7a63f4fb0efb4e69efd990cbb740a848679ec4b0; from df132eff463873e14e019a07f387b4d577d6d1f9 before c6fefcb71d246baaf3bacdad1af7ff50ebcfe652; from df132eff463873e14e019a07f387b4d577d6d1f9 before 9e7c37fadb3be1fc33073fcf10aa96d166caa697; from df132eff463873e14e019a07f387b4d577d6d1f9 before 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2; from df132eff463873e14e019a07f387b4d577d6d1f9 before 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee; from df132eff463873e14e019a07f387b4d577d6d1f9 before f1a69a940de58b16e8249dff26f74c8cc59b32be; 26e51e5287eed4d96ea66a3da95429f42940f013; 8b97e045bd6d37f96f161e4d371ae174148e1587; e044554e97e812eb257d073bcc130e0ea653858f; and 8 more (not affected: before 4.20; from 5.4.293 up to 5.4.*; from 5.10.237 up to 5.10.*; from 5.15.181 up to 5.15.*; from 6.1.135 up to 6.1.*; from 6.6.88 up to 6.6.*; from 6.12.24 up to 6.12.*; from 6.13.12 up to 6.13.*; from 6.14.3 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 3.18.128 before 3.19; from 4.4.166 before 4.5; from 4.9.142 before 4.10; from 4.14.85 before 4.15; from 4.19.6 before 5.4.293; from 5.5 before 5.10.237; from 5.11 before 5.15.181; from 5.16 before 6.1.135; from 6.2 before 6.6.88; from 6.7 before 6.12.24; from 6.13 before 6.13.12; from 6.14 before 6.14.3; and 1 more
- debian debian_linux: 11.0

## Every score

- Linux: 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`
- NVD: 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`

## References

- <https://git.kernel.org/stable/c/547762250220325d350d0917a7231480e0f4142b> (patch)
- <https://git.kernel.org/stable/c/3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8> (patch)
- <https://git.kernel.org/stable/c/0f7df4899299ce4662e5f95badb9dbc57cc37fa5> (patch)
- <https://git.kernel.org/stable/c/7a63f4fb0efb4e69efd990cbb740a848679ec4b0> (patch)
- <https://git.kernel.org/stable/c/c6fefcb71d246baaf3bacdad1af7ff50ebcfe652> (patch)
- <https://git.kernel.org/stable/c/9e7c37fadb3be1fc33073fcf10aa96d166caa697> (patch)
- <https://git.kernel.org/stable/c/5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2> (patch)
- <https://git.kernel.org/stable/c/2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee> (patch)
- <https://git.kernel.org/stable/c/f1a69a940de58b16e8249dff26f74c8cc59b32be> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-23142](https://www.cve.org/CVERecord?id=CVE-2025-23142), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-23142](https://nvd.nist.gov/vuln/detail/CVE-2025-23142), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-23142 · Whole record: https://cve.day/CVE-2025-23142.json · Rebuilt by cve.day 2026-11-25T22:58:57.258Z
