CVE-2025-23142

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

7.8 high EPSS 0.23%

Published 1 May 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2025-23142

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-23142 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.8% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before 547762250220325d350d0917a7231480e0f4142b
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before 3257386be6a7eb8a8bfc9cbfb746df4eb4fc70e8
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before 0f7df4899299ce4662e5f95badb9dbc57cc37fa5
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before 7a63f4fb0efb4e69efd990cbb740a848679ec4b0
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before c6fefcb71d246baaf3bacdad1af7ff50ebcfe652
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before 9e7c37fadb3be1fc33073fcf10aa96d166caa697
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before 5bc83bdf5f5b8010d1ca5a4555537e62413ab4e2
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before 2e5068b7e0ae0a54f6cfd03a2f80977da657f1ee
affected from df132eff463873e14e019a07f387b4d577d6d1f9, before f1a69a940de58b16e8249dff26f74c8cc59b32be
affected 26e51e5287eed4d96ea66a3da95429f42940f013
affected 8b97e045bd6d37f96f161e4d371ae174148e1587
affected e044554e97e812eb257d073bcc130e0ea653858f
affected 8376fdc999be008f0e9918db52f1ed8c08f5a1c9
affected cd947138e8c31e8cfcd489c12e9b97271beb6e79
affected from 3.18.128, before 3.19
affected from 4.4.166, before 4.5
affected from 4.9.142, before 4.10
affected from 4.14.85, before 4.15
affected from 4.19.6, before 4.20
Other versions: unaffected
Linux
affected 4.20
unaffected before 4.20
unaffected from 5.4.293 up to and including 5.4.*
unaffected from 5.10.237 up to and including 5.10.*
unaffected from 5.15.181 up to and including 5.15.*
unaffected from 6.1.135 up to and including 6.1.*
unaffected from 6.6.88 up to and including 6.6.*
unaffected from 6.12.24 up to and including 6.12.*
unaffected from 6.13.12 up to and including 6.13.*
unaffected from 6.14.3 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-23142 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-23142

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-23142
trivy image --scanners vuln IMAGE | grep CVE-2025-23142

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-23142 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.