7.8high
sctp: fix race between sctp_wait_for_connect and peeloff
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 668c9beb9020d5834ee9e43c208190a07d2b1928 before 0e0d5bc76fd4267a71334fcc8f1a5fbcf997845d, from 668c9beb9020d5834ee9e43c208190a07d2b1928 before bcfeac79af740735ace44008b4a11b8e5add20f5, from 668c9beb9020d5834ee9e43c208190a07d2b1928 before 8e9b56051d24540cfbf39194618708c4a7633549, from 668c9beb9020d5834ee9e43c208190a07d2b1928 before 634a9af8a26a84d8b0d7b3b643204b344b42d9fb, from 668c9beb9020d5834ee9e43c208190a07d2b1928 before 7d2038d4b80166f7bead8d07eba3b97405816c21, from 668c9beb9020d5834ee9e43c208190a07d2b1928 before 68667ee4c7dadf7f63167234e2a1af09b3f7874e, from 668c9beb9020d5834ee9e43c208190a07d2b1928 before 6140cfa721451fa6e18e134e709703c2bf34d0fb, from 668c9beb9020d5834ee9e43c208190a07d2b1928 before f14fe6395a8b3d961a61e138ad7b36ba3626dd4e and 1 more Not affected: before 4.16, from 5.10.259 up to 5.10.*, from 5.15.210 up to 5.15.*, from 6.1.176 up to 6.1.*, from 6.6.143 up to 6.6.*, from 6.12.93 up to 6.12.* | CVE List |
| linux linux_kernel | from 4.16 before 5.10.259, from 5.11 before 5.15.210, from 5.16 before 6.1.176, from 6.2 before 6.6.143, from 6.7 before 6.12.93, from 6.13 before 6.18.35, from 6.19 before 7.0.12, 7.1 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-63971 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-63971 changed 2026-10-19 | Public domain |