All reports
Medium

kernel: sctp: Prevent TOCTOU out-of-bounds write

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-40331

Probability of exploitation in the next 30 days: 0.20%

FIRST EPSS · 2026-11-19

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).

A flaw was found in the Linux kernel's Stream Control Transmission Protocol (SCTP) implementation. A local attacker can trigger a race condition during socket diagnostic dump operations where an address list expands between buffer allocation and writing data. This issue results in an out-of-bounds memory write, leading to a Denial of Service (DoS) through a system crash or potential memory corruption.