sctp: Prevent TOCTOU out-of-bounds write
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8f840e47f190cbe61a96945c13e9551048d42cef · < 2fe08fcaacb7eb019fa9c81db39b2214de216677| No fix yet |
| Linux Linux |
|
|
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).
From the CVE record · Linux
The Linux kernel’s SCTP diagnostic dump can write beyond an allocated buffer if an address list grows between buffer allocation and writing. The affected path does not hold the socket lock. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running Linux kernels with SCTP support should check their versions; affected versions are not specified.