CVE-2025-23142: sctp: detect and prevent references to a freed transport in sendmsg
Vulnerability summary
CVE-2025-23142 is a high (CVSS 7.8) Use After Free vulnerability in debian debian_linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 13.3% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 48 · Related 40Timeline
- 01-05-2025PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
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]).
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.23% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu138 products
- linuxAll versions (No fix recorded) | < 5.15.0-144.157 | < 6.8.0-100.100
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1088.95 | < 6.8.0-1046.49
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.1.135-1 | < 6.12.25-1
- debian_linuxEOL11.0
Linux2 products
- linux≥ df132eff463873e14e019a07f387b4d577d6d1f9, < 547762250220325d350d0917a7231480e0f4142b | ≥ df132eff463873e14e019a07f387b4d577d6d1f9, < 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8 | ≥ df132eff463873e14e019a07f387b4d577d6d1f9, < 0f7df4899299ce4662e5f95badb9dbc57cc37fa5 | ≥ df132eff463873e14e019a07f387b4d577d6d1f9, < 7a63f4fb0efb4e69efd990cbb740a848679ec4b0 | ≥ df132eff463873e14e019a07f387b4d577d6d1f9, < c6fefcb71d246baaf3bacdad1af7ff50ebcfe652 | ≥ df132eff463873e14e019a07f387b4d577d6d1f9, < 9e7c37fadb3be1fc33073fcf10aa96d166caa697 | ≥ df132eff463873e14e019a07f387b4d577d6d1f9, < 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2 | ≥ df132eff463873e14e019a07f387b4d577d6d1f9, < 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee | ≥ df132eff463873e14e019a07f387b4d577d6d1f9, < f1a69a940de58b16e8249dff26f74c8cc59b32be | 26e51e5287eed4d96ea66a3da95429f42940f013 | 8b97e045bd6d37f96f161e4d371ae174148e1587 | e044554e97e812eb257d073bcc130e0ea653858f | 8376fdc999be008f0e9918db52f1ed8c08f5a1c9 | cd947138e8c31e8cfcd489c12e9b97271beb6e79 | ≥ 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
- linux_kernel≥ 3.18.128, < 3.19 | ≥ 4.4.166, < 4.5 | ≥ 4.9.142, < 4.10 | ≥ 4.14.85, < 4.15 | ≥ 4.19.6, < 5.4.293 | ≥ 5.5, < 5.10.237 | ≥ 5.11, < 5.15.181 | ≥ 5.16, < 6.1.135 | ≥ 6.2, < 6.6.88 | ≥ 6.7, < 6.12.24 | ≥ 6.13, < 6.13.12 | ≥ 6.14, < 6.14.3 | 6.15:rc1
3 vendors · 142 products