CVE
CVE-2025-38476
CNA description
In the Linux kernel, the following vulnerability has been resolved: rpl: Fix use-after-free in rpl_do_srh_inline(). Running lwt_dst_cache_ref_loop.sh in selftest with KASAN triggers the splat below [0]. rpl_do_srh_inline() fetches ipv6_hdr(skb) and accesses it after skb_cow_head(), which is illegal as the header could be freed then. Let's fix it by making oldhdr to a local struct instead of a pointer. [0]: [root@fedora net]# ./lwt_dst_cache_ref_loop.sh ... TEST: rpl (input) [ 57.631529] ================================================================== BUG: KASAN: slab-use-after-free in rpl_do_srh_inline.isra.0 (net/ipv6/rpl_iptunnel.c:174) Read of size 40 at addr ffff888122bf96d8 by task ping6/1543 CPU: 50 UID: 0 PID: 1543 Comm: ping6 Not tainted 6.16.0-rc5-01302-gfadd1e6231b1 #23 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: <IRQ> dump_stack_lvl (lib/dump_stack.c:122) print_report (mm/kasan/report.c:409 mm/kasan/report.c:521) kasan_report (mm/kasan/report.c:221 mm/kasan/report.c:636) kasan_check_range (mm/kasan/generic.c:175 (discriminator 1) mm/kasan/generic.c:189 (discriminator 1)) __asan_memmove (mm/kasan/shadow.c:94 (discriminator 2)) rpl_do_srh_inline.isra.0 (net/ipv6/rpl_iptunnel.c:174) rpl_input (net/ipv6/rpl_iptunnel.c:201 net/ipv6/rpl_iptunnel.c:282) lwtunnel_input (net/core/lwtunnel.c:459) ipv6_rcv (./include/net/dst.h:471 (discriminator 1) ./include/net/dst.h:469 (discriminator 1) net/ipv6/ip6_input.c:79 (discriminator 1) ./include/linux/netfilter.h:317 (discriminator 1) ./include/linux/netfilter.h:311 (discriminator 1) net/ipv6/ip6_input.c:311 (discriminator 1)) __netif_receive_skb_one_core (net/core/dev.c:5967) process_backlog (./include/linux/rcupdate.h:869 net/core/dev.c:6440) __napi_poll.constprop.0 (net/core/dev.c:7452) net_rx_action (net/core/dev.c:7518 net/core/dev.c:7643) handle_softirqs (kernel/softirq.c:579) do_softirq…
Affected versions
All Linux kernel vulnerabilities →
- 6.16-rc6This version only
- 6.16-rc5This version only
- 6.16-rc4This version only
- 6.16-rc3This version only
- 6.16-rc2This version only
- 6.16-rc1This version only
- ≥ 6.13, < 6.15.8Fixed in 6.15.8
- ≥ 6.7, < 6.12.40Fixed in 6.12.40
- ≥ 6.2, < 6.6.100Fixed in 6.6.100
- ≥ 5.16, < 6.1.147Fixed in 6.1.147
- ≥ 5.11, < 5.15.190Fixed in 5.15.190
- ≥ 5.7, < 5.10.241Fixed in 5.10.241
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/034b428aa3583373a5a20b1c5931bb2b3cae1f36 · Patch
- git.kernel.org/stable/c/06ec83b6c792fde1f710c1de3e836da6e257c4c4 · Patch
- git.kernel.org/stable/c/62dcd9d6e61c39122d2f251a26829e2e55b0a11d · Patch
- git.kernel.org/stable/c/8ba6c2362b85089b8972ac5f20b24fc71a4b8ffc · Patch
- git.kernel.org/stable/c/b640daa2822a39ff76e70200cb2b7b892b896dce · Patch
- git.kernel.org/stable/c/c09e21dfc08d8afb92d9ea3bee3457adbe3ef297 · Patch
- git.kernel.org/stable/c/e8101506ab86dd78f823b7028f2036a380f3a12a · Patch
- lists.debian.org/debian-lts-announce/2025/10/msg00007.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.