cbcvebase.
CVE-2025-23142
published 2025-05-01

CVE-2025-23142: 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…

PriorityP339high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.20%
9.6th percentile
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

54 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.135-1 (bookworm)linux 6.1.135-1 (bookworm)
debianlinux-6.1< linux 6.1.135-1 (bookworm)linux 6.1.135-1 (bookworm)
linuxlinux
linuxlinux
linuxlinux
linuxlinux
linuxlinux
linuxlinux
linuxlinux>= 3.18.128 < 3.193.19
linuxlinux>= 4.14.85 < 4.154.15
linuxlinux>= 4.19.6 < 4.204.20
linuxlinux>= 4.4.166 < 4.54.5
linuxlinux>= 4.9.142 < 4.104.10
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < 547762250220325d350d0917a7231480e0f4142b547762250220325d350d0917a7231480e0f4142b
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e83257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < 0f7df4899299ce4662e5f95badb9dbc57cc37fa50f7df4899299ce4662e5f95badb9dbc57cc37fa5
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < 7a63f4fb0efb4e69efd990cbb740a848679ec4b07a63f4fb0efb4e69efd990cbb740a848679ec4b0
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < c6fefcb71d246baaf3bacdad1af7ff50ebcfe652c6fefcb71d246baaf3bacdad1af7ff50ebcfe652
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < 9e7c37fadb3be1fc33073fcf10aa96d166caa6979e7c37fadb3be1fc33073fcf10aa96d166caa697
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e25bc83bdf5f5b8010d1ca5a4555537e62413ab4e2
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee
linuxlinux>= df132eff463873e14e019a07f387b4d577d6d1f9 < f1a69a940de58b16e8249dff26f74c8cc59b32bef1a69a940de58b16e8249dff26f74c8cc59b32be
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.237-15.10.237-1

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_ubuntu8.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
vendor_msrc5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.