ipv6: remove ifaddr from hash during ifdown list cleanup
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 73a8bd74e2618990dbb218c3d82f53e60acd9af0, before 1bf8fa9aa30be0dece05a53f4a4830920520487d; from 73a8bd74e2618990dbb218c3d82f53e60acd9af0, before cbcc4e9a51b55b67e43b3b5e910e3e798d25a37b; from 73a8bd74e2618990dbb218c3d82f53e60acd9af0, before c21e4316f584691e234fe121aec5479ae27d1cdd; from 73a8bd74e2618990dbb218c3d82f53e60acd9af0, before ac01bab1bff8f08d57fdaedb624e36fb65d147c6; from 73a8bd74e2618990dbb218c3d82f53e60acd9af0, before 310a2a825a9166b58578dd2ae4e63392b068b0f3; from 73a8bd74e2618990dbb218c3d82f53e60acd9af0, before 6ace56ed7b13a9c6d4cb7ef0d82d3a3d53324a63 | 1bf8fa9aa30be0dece05a53f4a4830920520487d; cbcc4e9a51b55b67e43b3b5e910e3e798d25a37b; c21e4316f584691e234fe121aec5479ae27d1cdd; ac01bab1bff8f08d57fdaedb624e36fb65d147c6 |
| Linux Linux | Software | 2.6.38 | not recorded |
The 7.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 6 sources for this flaw, none tagged as a vendor patch.