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".
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
00cfd77b9063dcdf3628a7087faba60de85a9cc8 to < f5555a6d7c472849fdf2b426e3d0a85103118793affected00cfd77b9063dcdf3628a7087faba60de85a9cc8 to < e9ba34301d2e90f63f97c76ad9eb98e5250fe961affected00cfd77b9063dcdf3628a7087faba60de85a9cc8 to < 81d8142148164176385c279c7c1e1d581867423daffected00cfd77b9063dcdf3628a7087faba60de85a9cc8 to < 9426265e157dd77ec237c795901ed4dea6d69b5caffected00cfd77b9063dcdf3628a7087faba60de85a9cc8 to < b41dd76f3b9735096c21d3e799a2b9fe36498d57affected00cfd77b9063dcdf3628a7087faba60de85a9cc8 to < acd3d3562315c99f3c0db16f0fcc5f0306638982affected00cfd77b9063dcdf3628a7087faba60de85a9cc8 to < 25e37407442b8766ec2cf52fb4e31b5c3d3aeeaeaffected00cfd77b9063dcdf3628a7087faba60de85a9cc8 to < 9634cb35af17019baec21ca648516ce376fa10e6affected
Linux Linux
Default version status: affected
5.10affected0 to < 5.10unaffected5.10.270 to ≤ 5.10.*unaffected5.15.218 to ≤ 5.15.*unaffected6.1.185 to ≤ 6.1.*unaffected6.6.142 to ≤ 6.6.*unaffected6.12.92 to ≤ 6.12.*unaffected6.18.30 to ≤ 6.18.*unaffected7.0.7 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/f5555a6d7c472849fdf2b426e3d0a85103118793 ↗
- https://git.kernel.org/stable/c/e9ba34301d2e90f63f97c76ad9eb98e5250fe961 ↗
- https://git.kernel.org/stable/c/81d8142148164176385c279c7c1e1d581867423d ↗
- https://git.kernel.org/stable/c/9426265e157dd77ec237c795901ed4dea6d69b5c ↗
- https://git.kernel.org/stable/c/b41dd76f3b9735096c21d3e799a2b9fe36498d57 ↗
- https://git.kernel.org/stable/c/acd3d3562315c99f3c0db16f0fcc5f0306638982 ↗
- https://git.kernel.org/stable/c/25e37407442b8766ec2cf52fb4e31b5c3d3aeeae ↗
- https://git.kernel.org/stable/c/9634cb35af17019baec21ca648516ce376fa10e6 ↗