CVE-2025-40240

sctp: avoid NULL dereference when chunk data buffer is missing

7.5 high EPSS 0.64%

Published 4 Dec 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2025-40240

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40240 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.64%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 52.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 90017accff61ae89283ad9a51f9ac46ca01633fb, before 61cda2777b07d27459f5cac5a047c3edf9c8a1a9
affected from 90017accff61ae89283ad9a51f9ac46ca01633fb, before 08165c296597075763130919f2aae59b5822f016
affected from 90017accff61ae89283ad9a51f9ac46ca01633fb, before 03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f
affected from 90017accff61ae89283ad9a51f9ac46ca01633fb, before 4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71
affected from 90017accff61ae89283ad9a51f9ac46ca01633fb, before cb9055ba30306ede4ad920002233d0659982f1cb
affected from 90017accff61ae89283ad9a51f9ac46ca01633fb, before 7a832b0f99be19df608cb75c023f8027b1789bd1
affected from 90017accff61ae89283ad9a51f9ac46ca01633fb, before 89b465b54227c245ddc7cc9ed822231af21123ef
affected from 90017accff61ae89283ad9a51f9ac46ca01633fb, before 441f0647f7673e0e64d4910ef61a5fb8f16bfb82
Other versions: unaffected
Linux
affected 4.8
unaffected before 4.8
unaffected from 5.4.301 up to and including 5.4.*
unaffected from 5.10.246 up to and including 5.10.*
unaffected from 5.15.196 up to and including 5.15.*
unaffected from 6.1.158 up to and including 6.1.*
unaffected from 6.6.115 up to and including 6.6.*
unaffected from 6.12.56 up to and including 6.12.*
unaffected from 6.17.6 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40240 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40240

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40240
trivy image --scanners vuln IMAGE | grep CVE-2025-40240

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-40240 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.