CVE-2025-40240

sctp: avoid NULL dereference when chunk data buffer is missing

State
Published
Severity
7.5 High
Published
Dec 4, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 90017accff61ae89283ad9a51f9ac46ca01633fb to before 61cda2777b07d27459f5cac5a047c3edf9c8a1a9Affected
  • 90017accff61ae89283ad9a51f9ac46ca01633fb to before 08165c296597075763130919f2aae59b5822f016Affected
  • 90017accff61ae89283ad9a51f9ac46ca01633fb to before 03e80a4b04ef1fb2c61dd63216ab8d3a5dcb196fAffected
  • 90017accff61ae89283ad9a51f9ac46ca01633fb to before 4f6da435fb5d8a21cbf8cae5ca5a2ba0e1012b71Affected
  • 90017accff61ae89283ad9a51f9ac46ca01633fb to before cb9055ba30306ede4ad920002233d0659982f1cbAffected
  • 90017accff61ae89283ad9a51f9ac46ca01633fb to before 7a832b0f99be19df608cb75c023f8027b1789bd1Affected
  • 90017accff61ae89283ad9a51f9ac46ca01633fb to before 89b465b54227c245ddc7cc9ed822231af21123efAffected
  • 90017accff61ae89283ad9a51f9ac46ca01633fb to before 441f0647f7673e0e64d4910ef61a5fb8f16bfb82Affected
LinuxLinux
  • 4.8Affected
  • before 4.8Not affected
  • 5.4.301 through 5.4.*Not affected
  • 5.10.246 through 5.10.*Not affected
  • 5.15.196 through 5.15.*Not affected
  • 6.1.158 through 6.1.*Not affected
  • 6.6.115 through 6.6.*Not affected
  • 6.12.56 through 6.12.*Not affected
  • 6.17.6 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.