CVE-2025-40331
Awaiting Analysis Awaiting Analysis - Queue

BaseFortify

Vulnerability report for CVE-2025-40331, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-09

Last updated on: 2025-12-09

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: sctp: Prevent TOCTOU out-of-bounds write For the following path not holding the sock lock, sctp_diag_dump() -> sctp_for_each_endpoint() -> sctp_ep_dump() make sure not to exceed bounds in case the address list has grown between buffer allocation (time-of-check) and write (time-of-use).

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-09
Last Modified
2025-12-09
Generated
2026-07-06
AI Q&A
2025-12-09
EPSS Evaluated
2026-07-04
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Time-Of-Check to Time-Of-Use (TOCTOU) issue in the Linux kernel's SCTP (Stream Control Transmission Protocol) implementation. Specifically, it occurs when the address list grows between the time a buffer is allocated (time-of-check) and when data is written to it (time-of-use) in the sctp_diag_dump() -> sctp_for_each_endpoint() -> sctp_ep_dump() path without holding the socket lock. This can lead to an out-of-bounds write.

Impact Analysis

The vulnerability can lead to out-of-bounds memory writes, which may cause system instability, crashes, or potentially allow an attacker to execute arbitrary code or escalate privileges on the affected system.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40331. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart