The Linux getsockopt did not check the size of the provided buffer when
copying out the value, leading to buffer overflows (e.g., for TCP_INFO).
Fix is to use the smaller of the option value size and the provided
buffer.
Differential D55881
linux: Fix sockopt copyout Authored by chuck on Mar 16 2026, 6:34 PM. Tags None Referenced Files
Subscribers
Details
The Linux getsockopt did not check the size of the provided buffer when Fix is to use the smaller of the option value size and the provided
Diff Detail
Event Timeline
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||