In the Linux kernel, the following vulnerability has been resolved: ipv6: remove ifaddr from hash during ifdown list cleanup addrconf_ifdown() clears the address hash before snapshotting the per-device address list. A concurrent ipv6_add_addr() can publish an address after the hash scan and before the list snapshot. The ifdown path then removes the address from the device list and drops the list-owned reference while it is still linked in the hash. Once the remaining references are released, inet6_ifa_finish_destroy() warns, but a DEAD address continues to kfree_rcu(). The hash therefore points to freed memory that later RCU walkers can dereference. This follow-on was found by source review and was not separately triggered at runtime. Remove each non-kept address from the hash immediately before removing it from the per-device list. Keeping it hashed through the delete notification blocks same-address publication until NETDEV_DOWN has been delivered. hlist_del_init_rcu() is safe when the earlier hash scan already removed the address. This handles a late publisher captured by the list snapshot. The next change serializes publication with teardown so an add cannot miss both observations. Both changes are required when backporting the complete fix.
https://git.kernel.org/stable/c/cbcc4e9a51b55b67e43b3b5e910e3e798d25a37b
https://git.kernel.org/stable/c/c21e4316f584691e234fe121aec5479ae27d1cdd
https://git.kernel.org/stable/c/ac01bab1bff8f08d57fdaedb624e36fb65d147c6
https://git.kernel.org/stable/c/6ace56ed7b13a9c6d4cb7ef0d82d3a3d53324a63
https://git.kernel.org/stable/c/310a2a825a9166b58578dd2ae4e63392b068b0f3
https://git.kernel.org/stable/c/1bf8fa9aa30be0dece05a53f4a4830920520487d