1. Accueil
  2. Vulnérabilités
  3. CVE-2025-23142

CVE-2025-23142

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

Publiée le 1 mai 2025 · modifiée le 15 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 35/100

Résumé

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

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (19 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux de 3.18.128 (inclus) à 3.19 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.4.166 (inclus) à 4.5 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.9.142 (inclus) à 4.10 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.14.85 (inclus) à 4.15 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.19.6 (inclus) à 4.20 (exclu) — CNA (éditeur ou attributeur)
Linux 4.20 — CNA (éditeur ou attributeur)
Linux kernel de 3.18.128 (inclus) à 3.19 (exclu) — NVD
Linux kernel de 4.4.166 (inclus) à 4.5 (exclu) — NVD
Linux kernel de 4.9.142 (inclus) à 4.10 (exclu) — NVD
Linux kernel de 4.14.85 (inclus) à 4.15 (exclu) — NVD
Linux kernel de 4.19.6 (inclus) à 5.4.293 (exclu) — NVD
Linux kernel de 5.5 (inclus) à 5.10.237 (exclu) — NVD
Linux kernel de 5.11 (inclus) à 5.15.181 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 6.1.135 (exclu) — NVD
Linux kernel de 6.2 (inclus) à 6.6.88 (exclu) — NVD
Linux kernel de 6.7 (inclus) à 6.12.24 (exclu) — NVD
Linux kernel de 6.13 (inclus) à 6.13.12 (exclu) — NVD
Linux kernel de 6.14 (inclus) à 6.14.3 (exclu) — NVD
Linux kernel 6.15 — NVD
Debian (1 ligne(s))
Debian
ProduitVersionsCorrigé dansSource
Debian linux 11.0 — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-416 · Corruption mémoire

Comment sont obtenues et calculées ces données