CVE-2026-99979: ipv6: remove ifaddr from hash during ifdown list cleanup
In the Linux kernel, the following vulnerability has been resolved:
ipv6: remove ifaddr from hash during ifdown list cleanup
addrconfifdown() clears the address hash before snapshotting the per-device address list. A concurrent ipv6addaddr() 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, inet6ifafinishdestroy() warns, but a DEAD address continues to kfreercu(). 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 NETDEVDOWN has been delivered. hlistdelinitrcu() 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.