1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:07:34 +00:00

Kernel: Stop modifying peer address/port in sendto on a TCP socket

POSIX (rightfully so) specifies that the sendto address argument is
ignored in connection-oriented protocols.

The TCPSocket also assumed the peer address may not change post-connect
and would trigger a UAF in sockets_by_tuple() when it did.
This commit is contained in:
Idan Horowitz 2023-12-25 15:44:36 +02:00 committed by Andreas Kling
parent 8bb423daf7
commit da2f33df82
3 changed files with 87 additions and 2 deletions

View file

@ -56,6 +56,7 @@ set(LIBTEST_BASED_SOURCES
TestSigAltStack.cpp
TestSigHandler.cpp
TestSigWait.cpp
TestTCPSocket.cpp
)
if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")