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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2025-05-01T12:55:32.614Z
- **Modified:** 2026-10-15T22:18:16.243Z

## Who should check

- Anyone running Linux \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 547762250220325d350d0917a7231480e0f4142b; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 0f7df4899299ce4662e5f95badb9dbc57cc37fa5; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 7a63f4fb0efb4e69efd990cbb740a848679ec4b0; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< c6fefcb71d246baaf3bacdad1af7ff50ebcfe652; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 9e7c37fadb3be1fc33073fcf10aa96d166caa697; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< f1a69a940de58b16e8249dff26f74c8cc59b32be; 26e51e5287eed4d96ea66a3da95429f42940f013; …
- Anyone running Linux 4.20

## 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 and fixed versions

- Linux: \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 547762250220325d350d0917a7231480e0f4142b; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 0f7df4899299ce4662e5f95badb9dbc57cc37fa5; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 7a63f4fb0efb4e69efd990cbb740a848679ec4b0; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< c6fefcb71d246baaf3bacdad1af7ff50ebcfe652; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 9e7c37fadb3be1fc33073fcf10aa96d166caa697; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< f1a69a940de58b16e8249dff26f74c8cc59b32be; 26e51e5287eed4d96ea66a3da95429f42940f013; … (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-23142. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-23142.md
Affected: Linux >= df132eff463873e14e019a07f387b4d577d6d1f9, < 547762250220325d350d0917a7231480e0f4142b; >= df132eff463873e14e019a07f387b4d577d6d1f9, < 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8; >= df132eff463873e14e019a07f387b4d577d6d1f9, < 0f7df4899299ce4662e5f95badb9dbc57cc37fa5; >= df132eff463873e14e019a0…
Fixed in: Linux 547762250220325d350d0917a7231480e0f4142b, Linux 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8, Linux 0f7df4899299ce4662e5f95badb9dbc57cc37fa5, Linux 7a63f4fb0efb4e69efd990cbb740a848679ec4b0, Linux 9e7c37fadb3be1fc33073fcf10aa96d166caa697, Linux 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2, Linux 2e506…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-23142 being exploited?

There is no confirmed exploitation: CVE-2025-23142 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-23142?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-23142?

Linux \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 547762250220325d350d0917a7231480e0f4142b; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 0f7df4899299ce4662e5f95badb9dbc57cc37fa5; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 7a63f4fb0efb4e69efd990cbb740a848679ec4b0; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< c6fefcb71d246baaf3bacdad1af7ff50ebcfe652; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 9e7c37fadb3be1fc33073fcf10aa96d166caa697; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee; \>= df132eff463873e14e019a07f387b4d577d6d1f9, \< f1a69a940de58b16e8249dff26f74c8cc59b32be; 26e51e5287eed4d96ea66a3da95429f42940f013; …; Linux 4.20.

### Is there a fix for CVE-2025-23142?

Yes. Fixed in Linux 547762250220325d350d0917a7231480e0f4142b, Linux 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8, Linux 0f7df4899299ce4662e5f95badb9dbc57cc37fa5, Linux 7a63f4fb0efb4e69efd990cbb740a848679ec4b0, Linux 9e7c37fadb3be1fc33073fcf10aa96d166caa697, Linux 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2, Linux 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-23142?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-23142>

HTML: <https://flawdb.com/CVE-2025-23142> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-23142>
