CVE-2026-64572: ipv4: fib: free fib_alias with kfree_rcu() on insert error path
In the Linux kernel, the following vulnerability has been resolved:
ipv4: fib: free fibalias with kfreercu() on insert error path
fibtableinsert() publishes newfa into the leaf's falist with fibinsertalias() before calling the fib entry notifiers. When a notifier fails, the error path removes newfa with fibremovealias() (hlistdelrcu) and frees it right away with kmemcachefree().
fibtablelookup() walks that list under rcureadlock() only, so a concurrent lookup that already reached newfa keeps reading it after the free:
BUG: KASAN: slab-use-after-free in fibtablelookup (net/ipv4/fibtrie.c:1601) Read of size 1 at addr ffff88810676d4eb by task exploit/297 Call Trace: fibtablelookup (net/ipv4/fibtrie.c:1601) iprouteoutputkeyhashrcu (net/ipv4/route.c:2814) iprouteoutputkeyhash (net/ipv4/route.c:2705) ip4datagramconnect (net/ipv4/datagram.c:49) udpconnect (net/ipv4/udp.c:2144) sysconnect (net/socket.c:2167) x64sysconnect (net/socket.c:2173) dosyscall64 entrySYSCALL64afterhwframe which belongs to the cache ipfibalias of size 56
Triggering the error path needs CAPNETADMIN and a registered fib notifier that can reject a route; a netdevsim device whose IPv4 FIB resource is exhausted is enough.
Free newfa with aliasfreememrcu(), as fibtabledelete() already does for a fibalias removed from the trie.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64572?
CVE-2026-64572 has a risk score of 41.
How do I fix CVE-2026-64572?
To fix CVE-2026-64572, update to the patched version of the Linux kernel that has addressed this vulnerability.
What type of vulnerability is CVE-2026-64572?
CVE-2026-64572 is classified as a Use After Free vulnerability.
When was CVE-2026-64572 published?
CVE-2026-64572 was published on August 5, 2026.
What component of the Linux kernel does CVE-2026-64572 affect?
CVE-2026-64572 affects the IPv4 forwarding table handling in the Linux kernel.