CVE-2025-40240

Source
https://cve.org/CVERecord?id=CVE-2025-40240
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40240.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40240
Downstream
Related
Published
2025-12-04T15:31:29.715Z
Modified
2026-03-20T12:43:14.015069Z
Summary
sctp: avoid NULL dereference when chunk data buffer is missing
Details

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->headskb is not. Check for fraglist instead and do it just before replacing chunk->skb. We're sure that otherwise chunk->skb is non-NULL because of outer if() condition.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40240.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
90017accff61ae89283ad9a51f9ac46ca01633fb
Fixed
61cda2777b07d27459f5cac5a047c3edf9c8a1a9
Fixed
08165c296597075763130919f2aae59b5822f016
Fixed
03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196f
Fixed
4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71
Fixed
cb9055ba30306ede4ad920002233d0659982f1cb
Fixed
7a832b0f99be19df608cb75c023f8027b1789bd1
Fixed
89b465b54227c245ddc7cc9ed822231af21123ef
Fixed
441f0647f7673e0e64d4910ef61a5fb8f16bfb82

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40240.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.8.0
Fixed
5.4.301
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.246
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.196
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.158
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.115
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.56
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40240.json"