CVE-2026-99977: ipv6: initialize temporary ifaddr before publication
In the Linux kernel, the following vulnerability has been resolved:
ipv6: initialize temporary ifaddr before publication
ipv6createtempaddr() holds a reference to the public ifaddr, publishes the new temporary address through ipv6addaddr(), and only then stores the reference and final timestamps.
addrconfifdown() can remove the temporary address before ifpub is stored, leaking the public ifaddr reference. Publishing ifpub alone is insufficient: managetempaddrs() can then find the object before cstamp and tstamp are final, update its lifetimes, and have the constructor overwrite its timestamp with an older value.
This follow-on was found by source review and was not separately triggered at runtime.
Pass the public ifaddr and both timestamps in ifa6config. Initialize all three fields before adding the temporary address to either the hash or per-device lists. On success the existing public-ifaddr reference transfers to the temporary object. On error it remains owned and released by ipv6createtempaddr().