ipv6: remove ifaddr from hash during ifdown list cleanup
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
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.
| Product | Versions |
|---|---|
| Linux Linux | 73a8bd74e2618990dbb218c3d82f53e60acd9af0 to before 1bf8fa9aa30be0dece05a53f4a4830920520487d Affected73a8bd74e2618990dbb218c3d82f53e60acd9af0 to before cbcc4e9a51b55b67e43b3b5e910e3e798d25a37b Affected73a8bd74e2618990dbb218c3d82f53e60acd9af0 to before c21e4316f584691e234fe121aec5479ae27d1cdd Affected73a8bd74e2618990dbb218c3d82f53e60acd9af0 to before ac01bab1bff8f08d57fdaedb624e36fb65d147c6 Affected73a8bd74e2618990dbb218c3d82f53e60acd9af0 to before 310a2a825a9166b58578dd2ae4e63392b068b0f3 Affected73a8bd74e2618990dbb218c3d82f53e60acd9af0 to before 6ace56ed7b13a9c6d4cb7ef0d82d3a3d53324a63 Affected |
| Linux Linux | 2.6.38 Affectedbefore 2.6.38 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/1bf8fa9aa30be0dece05a53f4a4830920520487d
- 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/310a2a825a9166b58578dd2ae4e63392b068b0f3
- https://git.kernel.org/stable/c/6ace56ed7b13a9c6d4cb7ef0d82d3a3d53324a63
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.