CVE-2026-99979
published high CVSS 3.1 · 7.8ipv6: remove ifaddr from hash during ifdown list cleanup
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < 1bf8fa9aa30be0dece05a53f4a4830920520487d · 73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < cbcc4e9a51b55b67e43b3b5e910e3e798d25a37b · 73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < c21e4316f584691e234fe121aec5479ae27d1cdd · 73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < ac01bab1bff8f08d57fdaedb624e36fb65d147c6 · 73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < 310a2a825a9166b58578dd2ae4e63392b068b0f3 · 73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < 6ace56ed7b13a9c6d4cb7ef0d82d3a3d53324a63 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.38 (affected) · 0 to < 2.6.38 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The racing teardown, addrconf_ifdown(), only runs from addrconf_notify() on NETDEV_DOWN/UNREGISTER, CHANGEMTU below 1280, VRF CHANGEUPPER or the disable_ipv6 sysctl, all local rtnetlink/ioctl/sysctl operations. A LAN RA sender alone cannot cause that ifdown: the RA MTU option only sets cnf.mtu6 and is clamped to at least 1280. AC:L - The attacker controls both sides. They flood RAs carrying PIO prefixes into one end of a veth pair they own, which drives ipv6_add_addr() in softirq without RTNL, while toggling MTU or VRF enslavement on another CPU. A lost race just removes or keeps the address, so it can be retried indefinitely. PR:L - Setting the MTU, enslaving to a VRF, and creating veth/vrf devices need only CAP_NET_ADMIN over the netns, and sending RAs from the peer needs CAP_NET_RAW. An unprivileged user gets both via unshare -Urn. A new netns defaults to accept_ra=1 and autoconf=1, so SLAAC runs on the attacker's veth. UI:N - No victim action is involved. The attacker builds the netns, veth pair, RA flood and ifdown toggles entirely through their own syscalls. S:U - The freed inet6_ifaddr and the stale per-netns hash bucket are kernel memory under the same kernel authority. This is a standard kernel memory-corruption privilege escalation with no VM or IOMMU boundary crossed. C:H - After kfree_rcu() the freed inet6_ifaddr stays linked in net->ipv6.inet6_addr_lst. /proc/net/if_inet6 (0444) walks it in if6_seq_show() and prints through ifp->idev->dev->name. Reclaiming the kmalloc-cg slot with controlled data therefore gives a pointer-following kernel read. I:H - Later hash updates in the same bucket, hlist_add_head_rcu() in ipv6_add_addr_hash() and hlist_del_init_rcu(), write pprev pointers into the freed object. A reclaimed object with a forged addr_lst.next lets hash walkers and unlinks operate on fake nodes, which is a kernel write primitive. A:H - inet6_ifa_finish_destroy() hits WARN_ON(!hlist_unhashed), which panics with panic_on_warn. After that, any ipv6_chk_addr()/ipv6_get_ifaddr() or /proc walk of the stale bucket dereferences freed memory and can oops the kernel.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < 1bf8fa9aa30be0dece05a53f4a4830920520487d (affected · git)73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < cbcc4e9a51b55b67e43b3b5e910e3e798d25a37b (affected · git)73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < c21e4316f584691e234fe121aec5479ae27d1cdd (affected · git)73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < ac01bab1bff8f08d57fdaedb624e36fb65d147c6 (affected · git)73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < 310a2a825a9166b58578dd2ae4e63392b068b0f3 (affected · git)73a8bd74e2618990dbb218c3d82f53e60acd9af0 to < 6ace56ed7b13a9c6d4cb7ef0d82d3a3d53324a63 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.38 (affected)0 to < 2.6.38 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/1bf8fa9aa30be0dece05a53f4a4830920520487d
- https://git.kernel.org/stable/c/310a2a825a9166b58578dd2ae4e63392b068b0f3
- https://git.kernel.org/stable/c/6ace56ed7b13a9c6d4cb7ef0d82d3a3d53324a63
- https://git.kernel.org/stable/c/ac01bab1bff8f08d57fdaedb624e36fb65d147c6
- https://git.kernel.org/stable/c/c21e4316f584691e234fe121aec5479ae27d1cdd
- https://git.kernel.org/stable/c/cbcc4e9a51b55b67e43b3b5e910e3e798d25a37b
Provider assertions
1Linux · cna
ipv6: remove ifaddr from hash during ifdown list cleanup
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 82121e59434b3bceb520152fdd36b509092d1e1d5481e090b097d2588a201948
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record