Linux
sctp: fix race between sctp_wait_for_connect and peeloff
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 668c9beb9020d5834ee9e43c208190a07d2b1928, < 0e0d5bc76fd4267a71334fcc8f1a5fbcf997845d
- >= 668c9beb9020d5834ee9e43c208190a07d2b1928, < bcfeac79af740735ace44008b4a11b8e5add20f5
- >= 668c9beb9020d5834ee9e43c208190a07d2b1928, < 8e9b56051d24540cfbf39194618708c4a7633549
- >= 668c9beb9020d5834ee9e43c208190a07d2b1928, < 634a9af8a26a84d8b0d7b3b643204b344b42d9fb
- >= 668c9beb9020d5834ee9e43c208190a07d2b1928, < 7d2038d4b80166f7bead8d07eba3b97405816c21
- >= 668c9beb9020d5834ee9e43c208190a07d2b1928, < 68667ee4c7dadf7f63167234e2a1af09b3f7874e
- >= 668c9beb9020d5834ee9e43c208190a07d2b1928, < 6140cfa721451fa6e18e134e709703c2bf34d0fb
- >= 668c9beb9020d5834ee9e43c208190a07d2b1928, < f14fe6395a8b3d961a61e138ad7b36ba3626dd4e
Fixed in 0e0d5bc76fd4267a71334fcc8f1a5fbcf997845d, bcfeac79af740735ace44008b4a11b8e5add20f5, 8e9b56051d24540cfbf39194618708c4a7633549, 634a9af8a26a84d8b0d7b3b643204b344b42d9fb, 7d2038d4b80166f7bead8d07eba3b97405816c21, 68667ee4c7dadf7f63167234e2a1af09b3f7874e, 6140cfa721451fa6e18e134e709703c2bf34d0fb, f14fe6395a8b3d961a61e138ad7b36ba3626dd4e
- 4.16
Fixed in 0, 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12, 7.1
Mitigation
Upgrade Linux to 0e0d5bc76fd4267a71334fcc8f1a5fbcf997845d or bcfeac79af740735ace44008b4a11b8e5add20f5 or 8e9b56051d24540cfbf39194618708c4a7633549 or 634a9af8a26a84d8b0d7b3b643204b344b42d9fb or 7d2038d4b80166f7bead8d07eba3b97405816c21 or 68667ee4c7dadf7f63167234e2a1af09b3f7874e or 6140cfa721451fa6e18e134e709703c2bf34d0fb or f14fe6395a8b3d961a61e138ad7b36ba3626dd4e or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.93 or 6.18.35 or 7.0.12 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.