Description
In the Linux kernel, the following vulnerability has been resolved: mptcp: pm: ADD_ADDR rtx: free sk if last When an ADD_ADDR is retransmitted, the sk is held in sk_reset_timer(), and released at the end. If at that moment, it was the last reference being held, the sk would not be freed. sock_put() should then be called instead of __sock_put(). But that's not enough: if it is the last reference, sock_put() will call sk_free(), which will end up calling sk_stop_timer_sync() on the same timer, and waiting indefinitely to finish. So it is needed to mark that the timer is done at the end of the timer handler when it has not been rescheduled, not to call sk_stop_timer_sync() on "itself".
Product status
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before 6a3af482188f6db4186d1605f64d911d7330abb3
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before 531c537b8fb620beabccfb1594e8d43cbebbb87a
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before b74ad20198652b6b39a761c277ba65ae82b1e107
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before 8143a224785ceaf2b0856e08d4498916f38228fb
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before b7b9a461569734d33d3259d58d2507adfac107ed
5.10
Any version before 5.10
6.6.142 (semver)
6.12.92 (semver)
6.18.30 (semver)
7.0.7 (semver)
7.1-rc3 (original_commit_for_fix)
References
git.kernel.org/...c/6a3af482188f6db4186d1605f64d911d7330abb3
git.kernel.org/...c/531c537b8fb620beabccfb1594e8d43cbebbb87a
git.kernel.org/...c/b74ad20198652b6b39a761c277ba65ae82b1e107
git.kernel.org/...c/8143a224785ceaf2b0856e08d4498916f38228fb
git.kernel.org/...c/b7b9a461569734d33d3259d58d2507adfac107ed