Description
In the Linux kernel, the following vulnerability has been resolved: mptcp: pm: ADD_ADDR rtx: always decrease sk refcount When an ADD_ADDR is retransmitted, the sk is held in sk_reset_timer(). It should then be released in all cases at the end. Some (unlikely) checks were returning directly instead of calling sock_put() to decrease the refcount. Jump to a new 'exit' label to call __sock_put() (which will become sock_put() in the next commit) to fix this potential leak. While at it, drop the '!msk' check which cannot happen because it is never reset, and explicitly mark the remaining one as "unlikely".
Product status
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before 9426265e157dd77ec237c795901ed4dea6d69b5c
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before b41dd76f3b9735096c21d3e799a2b9fe36498d57
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before acd3d3562315c99f3c0db16f0fcc5f0306638982
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before 25e37407442b8766ec2cf52fb4e31b5c3d3aeeae
00cfd77b9063dcdf3628a7087faba60de85a9cc8 (git) before 9634cb35af17019baec21ca648516ce376fa10e6
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/9426265e157dd77ec237c795901ed4dea6d69b5c
git.kernel.org/...c/b41dd76f3b9735096c21d3e799a2b9fe36498d57
git.kernel.org/...c/acd3d3562315c99f3c0db16f0fcc5f0306638982
git.kernel.org/...c/25e37407442b8766ec2cf52fb4e31b5c3d3aeeae
git.kernel.org/...c/9634cb35af17019baec21ca648516ce376fa10e6