A use-after-free vulnerability in the Linux kernel's bridge multicast code was resolved by correcting how port groups are walked and deleted during teardown. The flaw involved improper handling of linked list pointers during multicast port group deletion, which could lead to a kernel slab-use-after-free bug detected by KASAN.