Skip to contentSkip to conversation

CVE-2025-40204: sctp: Fix MAC comparison to be constant-time

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 12, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2025-40204 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.4.301 with commit b93fa8dc521d00d2d44bf034fb90e0d79b036617
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.246 with commit 0e8b8c326c2a6de4d837b1bb034ea704f4690d77
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.195 with commit 1cd60e0d0fb8f0e62ec4499138afce6342dc9d4c
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.157 with commit 9c05d44ec24126fc283835b68f82dba3ae985209
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.113 with commit ed3044b9c810c5c24eb2830053fbfe5fd134c5d4
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.54 with commit 8019b3699289fce3f10b63f98601db97b8d105b0
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.17.4 with commit 0b32ff285ff6f6f1ac1d9495787ccce8837d6405
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18-rc1 with commit dd91c79e4f58fbe2898dac84858033700e0e99fb

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2025-40204

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/sctp/sm_make_chunk.c
net/sctp/sm_statefuns.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/b93fa8dc521d00d2d44bf034fb90e0d79b036617
	https://git.kernel.org/stable/c/0e8b8c326c2a6de4d837b1bb034ea704f4690d77
	https://git.kernel.org/stable/c/1cd60e0d0fb8f0e62ec4499138afce6342dc9d4c
	https://git.kernel.org/stable/c/9c05d44ec24126fc283835b68f82dba3ae985209
	https://git.kernel.org/stable/c/ed3044b9c810c5c24eb2830053fbfe5fd134c5d4
	https://git.kernel.org/stable/c/8019b3699289fce3f10b63f98601db97b8d105b0
	https://git.kernel.org/stable/c/0b32ff285ff6f6f1ac1d9495787ccce8837d6405
	https://git.kernel.org/stable/c/dd91c79e4f58fbe2898dac84858033700e0e99fb