yjq91115 opened a new pull request, #18263: URL: https://github.com/apache/nuttx/pull/18263
## Summary After `tcp_conn_list_unlock`, `conn` might be released, so `conn->timeout = true` is moved to the lock protection scope. At the same time, a temporary variable is used to store `dev` to prevent `conn` from being released. ## Impact Severity: High Type: Race condition / Use-After-Free Affected scenario: High-concurrency TCP connection timeout handling, especially on multi-core systems where the timing window between unlock and access can be exploited by other CPU cores ## Testing none -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
