sctp: fix race between sctp_wait_for_connect and peeloff (Linux Linux)

CVE-2026-63971
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 3 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: sctp: fix race between sctp_wait_for_connect and peeloff sctp_wait_for_connect() drops and re-acquires the socket lock while waiting for the association to reach ESTABLISHED state. During this window, another thread can peeloff the association to a new socket via getsockopt(SCTP_SOCKOPT_PEELOFF), changing asoc->base.sk. After re-acquiring the old socket lock, sctp_wait_for_connect() returns success without noticing the migration — the caller then accesses the association under the wrong lock in sctp_datamsg_from_user(). Add the same sk != asoc->base.sk check that sctp_wait_for_sndbuf() already has, returning an error if the association was migrated while we slept.

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 668c9beb9020d5834ee9e43c208190a07d2b1928 < 0e0d5bc76fd4267a71334fcc8f1a5fbcf997845d ; affected 668c9beb9020d5834ee9e43c208190a07d2b1928 < bcfeac79af740735ace44008b4a11b8e5add20f5 ; affected 668c9beb9020d5834ee9e43c208190a07d2b1928 < 8e9b56051d24540cfbf39194618708c4a7633549 ; affected 668c9beb9020d5834ee9e43c208190a07d2b1928 < 634a9af8a26a84d8b0d7b3b643204b344b42d9fb ; affected 668c9beb9020d5834ee9e43c208190a07d2b1928 < 7d2038d4b80166f7bead8d07eba3b97405816c21 ; affected 668c9beb9020d5834ee9e43c208190a07d2b1928 < 68667ee4c7dadf7f63167234e2a1af09b3f7874e
Linux · Linuxaffected 4.16 ; unaffected 0 < 4.16 ; unaffected 5.10.259 ≤ 5.10.* ; unaffected 5.15.210 ≤ 5.15.* ; unaffected 6.1.176 ≤ 6.1.* ; unaffected 6.6.143 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD