CVE-2026-63971

sctp: fix race between sctp_wait_for_connect and peeloff

State
Published
Severity
7.8 High
Published
Jul 19, 2026
Updated
Oct 19, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 668c9beb9020d5834ee9e43c208190a07d2b1928 to before 0e0d5bc76fd4267a71334fcc8f1a5fbcf997845dAffected
  • 668c9beb9020d5834ee9e43c208190a07d2b1928 to before bcfeac79af740735ace44008b4a11b8e5add20f5Affected
  • 668c9beb9020d5834ee9e43c208190a07d2b1928 to before 8e9b56051d24540cfbf39194618708c4a7633549Affected
  • 668c9beb9020d5834ee9e43c208190a07d2b1928 to before 634a9af8a26a84d8b0d7b3b643204b344b42d9fbAffected
  • 668c9beb9020d5834ee9e43c208190a07d2b1928 to before 7d2038d4b80166f7bead8d07eba3b97405816c21Affected
  • 668c9beb9020d5834ee9e43c208190a07d2b1928 to before 68667ee4c7dadf7f63167234e2a1af09b3f7874eAffected
  • 668c9beb9020d5834ee9e43c208190a07d2b1928 to before 6140cfa721451fa6e18e134e709703c2bf34d0fbAffected
  • 668c9beb9020d5834ee9e43c208190a07d2b1928 to before f14fe6395a8b3d961a61e138ad7b36ba3626dd4eAffected
LinuxLinux
  • 4.16Affected
  • before 4.16Not affected
  • 5.10.259 through 5.10.*Not affected
  • 5.15.210 through 5.15.*Not affected
  • 6.1.176 through 6.1.*Not affected
  • 6.6.143 through 6.6.*Not affected
  • 6.12.93 through 6.12.*Not affected
  • 6.18.35 through 6.18.*Not affected
  • 7.0.12 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.