-

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 fib_alias with kfree_rcu() on insert error path

fib_table_insert() publishes new_fa into the leaf's fa_list with
fib_insert_alias() before calling the fib entry notifiers. When a
notifier fails, the error path removes new_fa with fib_remove_alias()
(hlist_del_rcu) and frees it right away with kmem_cache_free().

fib_table_lookup() walks that list under rcu_read_lock() only, so a
concurrent lookup that already reached new_fa keeps reading it after the
free:

 BUG: KASAN: slab-use-after-free in fib_table_lookup (net/ipv4/fib_trie.c:1601)
 Read of size 1 at addr ffff88810676d4eb by task exploit/297
 Call Trace:
  fib_table_lookup (net/ipv4/fib_trie.c:1601)
  ip_route_output_key_hash_rcu (net/ipv4/route.c:2814)
  ip_route_output_key_hash (net/ipv4/route.c:2705)
  __ip4_datagram_connect (net/ipv4/datagram.c:49)
  udp_connect (net/ipv4/udp.c:2144)
  __sys_connect (net/socket.c:2167)
  __x64_sys_connect (net/socket.c:2173)
  do_syscall_64
  entry_SYSCALL_64_after_hwframe
 which belongs to the cache ip_fib_alias of size 56

Triggering the error path needs CAP_NET_ADMIN and a registered fib
notifier that can reject a route; a netdevsim device whose IPv4 FIB
resource is exhausted is enough.

Free new_fa with alias_free_mem_rcu(), as fib_table_delete() already
does for a fib_alias removed from the trie.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
Produkt Linux
Default Statusunaffected
Version a6c76c17df021b141b0d306828c9fe4ba2d2717c
Version < 9d0778571def598c31e84a38ae5a7ebc6f65e6d8
Status affected
Version a6c76c17df021b141b0d306828c9fe4ba2d2717c
Version < bb03350f974aec352b660d032a1d283eb462165a
Status affected
Version a6c76c17df021b141b0d306828c9fe4ba2d2717c
Version < 6429c9cfd941e62acd7bb0bc64d631574d4c3b2a
Status affected
Version a6c76c17df021b141b0d306828c9fe4ba2d2717c
Version < 8150b5365f026e72250cacc527ea00be30f40105
Status affected
Version a6c76c17df021b141b0d306828c9fe4ba2d2717c
Version < d007056868723de9c0cc3f5ffaad47a8d468b9a4
Status affected
Version a6c76c17df021b141b0d306828c9fe4ba2d2717c
Version < cb8be318b4432abd88d3172ec157330f27a5f7a7
Status affected
Version a6c76c17df021b141b0d306828c9fe4ba2d2717c
Version < b8d2ea75c76abcd0d72679c2f488271f573e32fb
Status affected
Version a6c76c17df021b141b0d306828c9fe4ba2d2717c
Version < f2f152e94a67bc746afaf05a1b2702c195553112
Status affected
HerstellerLinux
Produkt Linux
Default Statusaffected
Version 5.6
Status affected
Version 0
Version < 5.6
Status unaffected
Version <= 5.10.*
Version 5.10.265
Status unaffected
Version <= 5.15.*
Version 5.15.216
Status unaffected
Version <= 6.1.*
Version 6.1.183
Status unaffected
Version <= 6.6.*
Version 6.6.148
Status unaffected
Version <= 6.12.*
Version 6.12.101
Status unaffected
Version <= 6.18.*
Version 6.18.42
Status unaffected
Version <= 7.1.*
Version 7.1.6
Status unaffected
Version <= *
Version 7.2
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.2% 0.097
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/8150b5365f026e72250cacc527ea00be30f40105
https://git.kernel.org/stable/c/d007056868723de9c0cc3f5ffaad47a8d468b9a4
https://git.kernel.org/stable/c/cb8be318b4432abd88d3172ec157330f27a5f7a7
https://git.kernel.org/stable/c/b8d2ea75c76abcd0d72679c2f488271f573e32fb
https://git.kernel.org/stable/c/f2f152e94a67bc746afaf05a1b2702c195553112
https://git.kernel.org/stable/c/6429c9cfd941e62acd7bb0bc64d631574d4c3b2a
https://git.kernel.org/stable/c/9d0778571def598c31e84a38ae5a7ebc6f65e6d8
https://git.kernel.org/stable/c/bb03350f974aec352b660d032a1d283eb462165a