KernelScan.io

CRITICAL Introduced in 2.6.24

sctp AuthHmacs Overflow

CVE-2026-68376

CVSS 9.8 / 10.0 KernelScan AI

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: sctp: fix auth_hmacs array size in struct sctp_cookie The auth_hmacs array in struct sctp_cookie is supposed to store a complete SCTP_AUTH_HMAC_ALGO parameter, which consists of a struct sctp_paramhdr followed by N HMAC identifiers. However, the array size was calculated using an extra 2 bytes instead of sizeof(struct sctp_paramhdr), which is 4 bytes. When four HMAC identifiers are configured, the HMAC-ALGO parameter stored in the endpoint is larger than the auth_hmacs buffer in the cookie. As a result, sctp_association_init() copies beyond the end of auth_hmacs when initializing the association, corrupting the adjacent auth_chunks field. This can lead to an invalid HMAC identifier being accepted and later cause an out-of-bounds read in sctp_auth_get_hmac(). Fix the array size calculation by including the full SCTP parameter header size.

02

Engine v0.6.0

Risk summary

A network attacker can trigger a buffer overflow in the SCTP cookie's HMAC algorithm storage by sending SCTP association setup packets to a peer configured with four HMAC identifiers. The overflow corrupts adjacent authentication data, which can lead to acceptance of invalid HMAC identifiers and an out-of-bounds read in the kernel. Any system running an SCTP service with multiple HMAC algorithms configured is at risk.

Affectedinclude/net/sctp/structs.h (sctp)

Vulnerability analysis

A buffer inside the SCTP cookie that stores HMAC algorithm parameters was sized two bytes too small. When an endpoint is configured with four HMAC identifiers, the parameter being copied overflows that buffer and corrupts the next field in the structure. This corruption can cause the system to accept an invalid HMAC identifier, which later triggers an out-of-bounds read during HMAC processing. The fix enlarges the buffer to fit the complete parameter header. Any network peer can reach the bug by sending SCTP setup traffic to a listening endpoint that has four HMAC algorithms configured; no attacker privileges are needed.

03

BranchIntroducedFixed inPatch commit
6.122.6.246.12.101d0a59ba58578
6.182.6.246.18.42a8d20ba0ab51
6.62.6.246.6.1480b4414e43e08
7.12.6.247.1.63aa40c3bccac
mainline2.6.247.2-rc4e0b5252a5938