Linux
sctp: clear control chunk transport if it is being removed
In the Linux kernel, the following vulnerability has been resolved: sctp: clear control chunk transport if it is being removed sctp_make_heartbeat_ack() caches the destination transport in chunk->transport without taking a reference. When src_out_of_asoc_ok is enabled, the HEARTBEAT ACK may remain queued on control_chunk_list instead of being transmitted immediately. If the peer transport is removed while the chunk is still queued, sctp_assoc_rm_peer() drops the transport and schedules it for RCU freeing, but only clears cached transport pointers in out_chunk_list. The queued control chunk therefore retains a dangling transport pointer. Once an ASCONF_ACK clears the suppression and the queued control chunk is transmitted, SCTP dereferences the stale transport pointer, leading to a use-after-free. Fix this by also clearing chunk->transport for queued control chunks in control_chunk_list when removing the transport.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8a07eb0a50aebc8c95478d49c28c7f8419a26cef, < dbb3f418a8665ffb0514e1a9520ab6a1c5d4d886
- >= 8a07eb0a50aebc8c95478d49c28c7f8419a26cef, < fad4766a74220fe579c6fcaa10ba01c23529814f
- >= 8a07eb0a50aebc8c95478d49c28c7f8419a26cef, < 936658ec41c28c397ef390140e02d4c91ade92f0
- >= 8a07eb0a50aebc8c95478d49c28c7f8419a26cef, < 8de65194a04d2552cd39b6c67d942d490f22d174
- >= 8a07eb0a50aebc8c95478d49c28c7f8419a26cef, < 6160e756db81d6cb63e3e2952efcf6c5134be385
- >= 8a07eb0a50aebc8c95478d49c28c7f8419a26cef, < 18d704bdd809377dfd81a3c2f42426763b5da227
- >= 8a07eb0a50aebc8c95478d49c28c7f8419a26cef, < 4d6b9cac6df5e0cfef1a66b3edd7aebdb9e4b7e7
- >= 8a07eb0a50aebc8c95478d49c28c7f8419a26cef, < c9158ceaf27780ef64534ad72f44ffde3f8ccc49
Fixed in dbb3f418a8665ffb0514e1a9520ab6a1c5d4d886, fad4766a74220fe579c6fcaa10ba01c23529814f, 936658ec41c28c397ef390140e02d4c91ade92f0, 8de65194a04d2552cd39b6c67d942d490f22d174, 6160e756db81d6cb63e3e2952efcf6c5134be385, 18d704bdd809377dfd81a3c2f42426763b5da227, 4d6b9cac6df5e0cfef1a66b3edd7aebdb9e4b7e7, c9158ceaf27780ef64534ad72f44ffde3f8ccc49
- 3.1
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9, 7.2
Mitigation
Upgrade Linux to dbb3f418a8665ffb0514e1a9520ab6a1c5d4d886 or fad4766a74220fe579c6fcaa10ba01c23529814f or 936658ec41c28c397ef390140e02d4c91ade92f0 or 8de65194a04d2552cd39b6c67d942d490f22d174 or 6160e756db81d6cb63e3e2952efcf6c5134be385 or 18d704bdd809377dfd81a3c2f42426763b5da227 or 4d6b9cac6df5e0cfef1a66b3edd7aebdb9e4b7e7 or c9158ceaf27780ef64534ad72f44ffde3f8ccc49 or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.152 or 6.12.104 or 6.18.45 or 7.1.9 or 7.2 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.