In the Linux kernel, the following vulnerability has been resolved: igmp: use the joined device when leaving a multicast group When a socket joins a multicast group, the ifindex of the device is stored in the socket's membership entry. When leaving, ip_mc_leave_group() resolves the device again from the request. If the request only specifies an interface address and that address is not assigned to any device, no device is found. The membership is still matched by address and removed from the socket, but the group is not released on the device it was joined on. The group is then leaked on the device until the device is unregistered. An unprivileged user can trigger this by joining with an ifindex and a non-local address and leaving with the address only. It can also happen when a socket joins and leaves with the address only and the address is removed in between. Fix by resolving the device from the ifindex stored in the membership, like ip_mc_drop_socket() does.
https://git.kernel.org/stable/c/da4a7cdfdcc9aae0ace97178a8a7993bdac99ee5
https://git.kernel.org/stable/c/d0fbeb0e5582642f81ef832852845201464d7c83
https://git.kernel.org/stable/c/88021ff73305c6ec0523ebc3e245ee3837f74549
https://git.kernel.org/stable/c/30bf9b05b315e1e2acae8278ae319c31f3c54c6d
https://git.kernel.org/stable/c/19ec8416a76c08326fe5f814410a1b43046e63be
https://git.kernel.org/stable/c/08279f193686cf50c0060e318a5f54e1b752e98e