In the Linux kernel, the following vulnerability has been resolved: tcp: Fix potential UAF in reqsk_timer_handler(). When TCP socket migration fails at inet_ehash_insert() in reqsk_timer_handler(), we jump to the no_ownership: label and free the new reqsk immediately with __reqsk_free(). Thus, we must stop the new reqsk's timer before jumping to the label, but the timer might be missed since the cited commit, resulting in UAF. As we are in the original reqsk's timer context, we can safely call timer_delete_sync() for the new reqsk. Let's pass false to __inet_csk_reqsk_queue_drop() to stop the new reqsk's timer.
https://git.kernel.org/stable/c/f7fba81b00699360f96ed7d9a47b8c801e74c6f9
https://git.kernel.org/stable/c/d7f28a027af63a9d47784fd89d72ae15d87b7d5f
https://git.kernel.org/stable/c/c130cc5f70b1f8f1f8f18432dfdc90ac59673f31
https://git.kernel.org/stable/c/bd3a72a14b1040f0e7ea827bd31322e26e2a9fae
https://git.kernel.org/stable/c/b3b56e95f6fad7fa7281450b443e861d82616fdb
https://git.kernel.org/stable/c/97c8a3c1f73d828de43a5a88e8a9a143efb2b661