sctp: fix auth_chunk_list capacity check in sctp_auth_ep_add_chunkid
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1f485649f52929d9937b346a920a522a7363e202 · < 11092d79eb2b7c0068382f72fc2416d1786bb2e0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
sctp: fix auth_chunk_list capacity check in sctp_auth_ep_add_chunkid
sctp_auth_ep_add_chunkid() uses SCTP_NUM_CHUNK_TYPES (20) as the capacity limit for ep->auth_chunk_list, allowing it to hold up to 20 chunk entries (param_hdr.length up to 24). However, the copy destination asoc->c.auth_chunks in struct sctp_cookie is only SCTP_AUTH_MAX_CHUNKS (16) entries (20 bytes). When more than 16 chunks are added, sctp_association_init() memcpy overflows the destination by up to 4 bytes.
Fix by using SCTP_AUTH_MAX_CHUNKS as the capacity limit, matching the destination capacity.
From the CVE record · Linux
The Linux kernel’s SCTP authentication chunk list can hold more entries than the destination buffer in an association cookie. When more than 16 chunks are added, a copy can overflow that buffer by up to 4 bytes. The input does not establish whether exploitation requires network or local access, authentication, or user interaction.
Engineers running Linux kernels with the affected SCTP code should check their kernel version; affected versions are not specified.