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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.85% (percentile 56, 2026-11-26)
- **Published:** 2025-11-12T21:56:35.110Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b93fa8dc521d00d2d44bf034fb90e0d79b036617; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0e8b8c326c2a6de4d837b1bb034ea704f4690d77; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1cd60e0d0fb8f0e62ec4499138afce6342dc9d4c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c05d44ec24126fc283835b68f82dba3ae985209; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ed3044b9c810c5c24eb2830053fbfe5fd134c5d4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8019b3699289fce3f10b63f98601db97b8d105b0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0b32ff285ff6f6f1ac1d9495787ccce8837d6405; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dd91c79e4f58fbe2898dac84858033700e0e99fb
- Anyone running Linux 2.6.12

## 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.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b93fa8dc521d00d2d44bf034fb90e0d79b036617; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0e8b8c326c2a6de4d837b1bb034ea704f4690d77; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1cd60e0d0fb8f0e62ec4499138afce6342dc9d4c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c05d44ec24126fc283835b68f82dba3ae985209; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ed3044b9c810c5c24eb2830053fbfe5fd134c5d4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8019b3699289fce3f10b63f98601db97b8d105b0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0b32ff285ff6f6f1ac1d9495787ccce8837d6405; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dd91c79e4f58fbe2898dac84858033700e0e99fb (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40204. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40204.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b93fa8dc521d00d2d44bf034fb90e0d79b036617; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0e8b8c326c2a6de4d837b1bb034ea704f4690d77; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1cd60e0d0fb8f0e62ec4499138afce6342dc9d4c; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 0e8b8c326c2a6de4d837b1bb034ea704f4690d77, Linux 1cd60e0d0fb8f0e62ec4499138afce6342dc9d4c, Linux 9c05d44ec24126fc283835b68f82dba3ae985209, Linux 8019b3699289fce3f10b63f98601db97b8d105b0, Linux 0b32ff285ff6f6f1ac1d9495787ccce8837d6405

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40204 being exploited?

There is no confirmed exploitation: CVE-2025-40204 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.85% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40204?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-40204?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b93fa8dc521d00d2d44bf034fb90e0d79b036617; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0e8b8c326c2a6de4d837b1bb034ea704f4690d77; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1cd60e0d0fb8f0e62ec4499138afce6342dc9d4c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9c05d44ec24126fc283835b68f82dba3ae985209; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ed3044b9c810c5c24eb2830053fbfe5fd134c5d4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8019b3699289fce3f10b63f98601db97b8d105b0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0b32ff285ff6f6f1ac1d9495787ccce8837d6405; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dd91c79e4f58fbe2898dac84858033700e0e99fb; Linux 2.6.12.

### Is there a fix for CVE-2025-40204?

Yes. Fixed in Linux 0e8b8c326c2a6de4d837b1bb034ea704f4690d77, Linux 1cd60e0d0fb8f0e62ec4499138afce6342dc9d4c, Linux 9c05d44ec24126fc283835b68f82dba3ae985209, Linux 8019b3699289fce3f10b63f98601db97b8d105b0, Linux 0b32ff285ff6f6f1ac1d9495787ccce8837d6405. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40204?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40204>

HTML: <https://flawdb.com/CVE-2025-40204> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40204>
