CVE-2026-143348

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

ipv6: fix fib6 walker UAF on NLM_F_REPLACE

fib6_walker uses w->leaf to remember the next fib6_info to dump, so an RTM_GETROUTE dump can continue there on the next recvmsg(). This assumes that whoever removes a route from the tree also updates the walkers pointing at it. fib6_del_route() does: it moves w->leaf to the next route. The NLM_F_REPLACE branch of fib6_add_rt2node() does not: it removes the old route, fib6_add() frees it, and w->leaf keeps pointing at the freed object.

The fn_sernum version check in fib6_dump_table() normally protects against resuming on a stale w->leaf, but it can be bypassed: ip6_link_failure() resets fn_sernum to -1 when the default route fails, which an unprivileged user in a user+net namespace can cause:

1) link failure fn_sernum = -1 2) dump pauses on route R 3) replace R fn_sernum changed, R freed 4) link failure fn_sernum = -1 5) dump resumes -1 == -1, reads freed R <- UAF

BUG: KASAN: slab-use-after-free in rt6_fill_node+0x1c22/0x2cd0 Read of size 4 at addr ff11000011fa0064 by task poc/101 rt6_fill_node <- rt6_dump_route

Fix by adjusting walkers separately for replacement and deletion. For replacement, add fib6_walkers_replace_leaf() points w->leaf at the new route. For deletion and ECMP sibling removal, fib6_walkers_skip_rt() calls fib6_walkers_replace_leaf() with the next route. Reset w->skip_in_node when updating w->leaf, and set w->state to FWS_U when no next route remains.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143349In the Linux kernel, the following vulnerability has been resolved: net/mlx5: macsec: free struct mlx5_fs_id after an RCU grace period macCVE-2026-143357.2The Easy Digital Downloads – eCommerce Payments and Subscriptions made easy plugin for WordPress is vulnerable to Stored Cross-Site ScriptinCVE-2026-143350In the Linux kernel, the following vulnerability has been resolved: bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom WhCVE-2026-143351In the Linux kernel, the following vulnerability has been resolved: bpf: Check the offset in bpf_skb_generic_{push,pop}() To make room forCVE-2026-143352In the Linux kernel, the following vulnerability has been resolved: bpf: Move the transport header with the moved headers bpf_skb_net_hdr_CVE-2026-143353In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let lwt_in progs call into IPv6 when it is disabled With ipCVE-2026-143354In the Linux kernel, the following vulnerability has been resolved: bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol CVE-2026-143355In the Linux kernel, the following vulnerability has been resolved: bpf: Reset skb->cb after an lwt prog pushes an IP header IPCB(skb)->opCVE-2026-143356In the Linux kernel, the following vulnerability has been resolved: bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh() bpf_skb_net_hdr_CVE-2026-143357In the Linux kernel, the following vulnerability has been resolved: bpf: Don't look for the SRH again in the End.BPF helpers A packet can CVE-2026-143358In the Linux kernel, the following vulnerability has been resolved: bpf: Set a dst for test runs of lwt_in progs When an lwt prog runs on CVE-2026-143359In the Linux kernel, the following vulnerability has been resolved: bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6 The mode BPF_LWT_EN
CVE-2026-143348: Unscored | Vulnix