# CVE-2025-40240: sctp: avoid NULL dereference when chunk data buffer is missing

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

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

## Who should check

- Anyone running Linux \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 61cda2777b07d27459f5cac5a047c3edf9c8a1a9; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 08165c296597075763130919f2aae59b5822f016; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< cb9055ba30306ede4ad920002233d0659982f1cb; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 7a832b0f99be19df608cb75c023f8027b1789bd1; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 89b465b54227c245ddc7cc9ed822231af21123ef; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 441f0647f7673e0e64d4910ef61a5fb8f16bfb82
- Anyone running Linux 4.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

sctp: avoid NULL dereference when chunk data buffer is missing

chunk-\>skb pointer is dereferenced in the if-block where it's supposed
to be NULL only.

chunk-\>skb can only be NULL if chunk-\>head\_skb is not. Check for frag\_list
instead and do it just before replacing chunk-\>skb. We're sure that
otherwise chunk-\>skb is non-NULL because of outer if() condition.

## Affected and fixed versions

- Linux: \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 61cda2777b07d27459f5cac5a047c3edf9c8a1a9; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 08165c296597075763130919f2aae59b5822f016; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< cb9055ba30306ede4ad920002233d0659982f1cb; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 7a832b0f99be19df608cb75c023f8027b1789bd1; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 89b465b54227c245ddc7cc9ed822231af21123ef; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 441f0647f7673e0e64d4910ef61a5fb8f16bfb82 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 441f0647f7673e0e64d4910ef61a5fb8f16bfb82 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40240.md
Affected: Linux >= 90017accff61ae89283ad9a51f9ac46ca01633fb, < 61cda2777b07d27459f5cac5a047c3edf9c8a1a9; >= 90017accff61ae89283ad9a51f9ac46ca01633fb, < 08165c296597075763130919f2aae59b5822f016; >= 90017accff61ae89283ad9a51f9ac46ca01633fb, < 03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f; >= 90017accff61ae89283ad9a…
Fixed in: Linux 61cda2777b07d27459f5cac5a047c3edf9c8a1a9, Linux 08165c296597075763130919f2aae59b5822f016, Linux 03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f, Linux 4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71, Linux 7a832b0f99be19df608cb75c023f8027b1789bd1, Linux 89b465b54227c245ddc7cc9ed822231af21123ef, Linux 441f0…

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-40240 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 61cda2777b07d27459f5cac5a047c3edf9c8a1a9; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 08165c296597075763130919f2aae59b5822f016; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< cb9055ba30306ede4ad920002233d0659982f1cb; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 7a832b0f99be19df608cb75c023f8027b1789bd1; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 89b465b54227c245ddc7cc9ed822231af21123ef; \>= 90017accff61ae89283ad9a51f9ac46ca01633fb, \< 441f0647f7673e0e64d4910ef61a5fb8f16bfb82; Linux 4.8.

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

Yes. Fixed in Linux 61cda2777b07d27459f5cac5a047c3edf9c8a1a9, Linux 08165c296597075763130919f2aae59b5822f016, Linux 03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f, Linux 4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71, Linux 7a832b0f99be19df608cb75c023f8027b1789bd1, Linux 89b465b54227c245ddc7cc9ed822231af21123ef, Linux 441f0647f7673e0e64d4910ef61a5fb8f16bfb82. Upgrade Linux to 441f0647f7673e0e64d4910ef61a5fb8f16bfb82 or later.

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

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/61cda2777b07d27459f5cac5a047c3edf9c8a1a9>
- other: <https://git.kernel.org/stable/c/08165c296597075763130919f2aae59b5822f016>
- other: <https://git.kernel.org/stable/c/03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f>
- other: <https://git.kernel.org/stable/c/4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71>
- other: <https://git.kernel.org/stable/c/cb9055ba30306ede4ad920002233d0659982f1cb>
- other: <https://git.kernel.org/stable/c/7a832b0f99be19df608cb75c023f8027b1789bd1>
- other: <https://git.kernel.org/stable/c/89b465b54227c245ddc7cc9ed822231af21123ef>
- other: <https://git.kernel.org/stable/c/441f0647f7673e0e64d4910ef61a5fb8f16bfb82>

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

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