CVE-2025-40204
kernel: sctp: Fix MAC comparison to be constant-time
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · November 12, 2025
Updated · July 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
sctp: Fix MAC comparison to be constant-time
To prevent timing attacks, MACs need to be compared in constant time. Use the appropriate helper function for this.
Statement
SCTP compared MACs with memcmp(), leaking information via timing. A remote adversary could attempt a timing-oracle attack over the network to gradually learn MAC bytes, which is difficult in practice. The fix switches to constant-time crypto_memneq(), removing the side-channel.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE-208 · Observable Timing Discrepancy