HomeDefectsLIN1022-16401
Acknowledged

LIN1022-16401 : Security Advisory - linux - CVE-2025-38192

Created: Jul 6, 2025    Updated: Jun 9, 2026
Found In Version: 10.22.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:[EOL][EOL]net: clear the dst when changing skb protocol[EOL][EOL]A not-so-careful NAT46 BPF program can crash the kernel[EOL]if it indiscriminately flips ingress packets from v4 to v6:[EOL][EOL]  BUG: kernel NULL pointer dereference, address: 0000000000000000[EOL]    ip6_rcv_core (net/ipv6/ip6_input.c:190:20)[EOL]    ipv6_rcv (net/ipv6/ip6_input.c:306:8)[EOL]    process_backlog (net/core/dev.c:6186:4)[EOL]    napi_poll (net/core/dev.c:6906:9)[EOL]    net_rx_action (net/core/dev.c:7028:13)[EOL]    do_softirq (kernel/softirq.c:462:3)[EOL]    netif_rx (net/core/dev.c:5326:3)[EOL]    dev_loopback_xmit (net/core/dev.c:4015:2)[EOL]    ip_mc_finish_output (net/ipv4/ip_output.c:363:8)[EOL]    NF_HOOK (./include/linux/netfilter.h:314:9)[EOL]    ip_mc_output (net/ipv4/ip_output.c:400:5)[EOL]    dst_output (./include/net/dst.h:459:9)[EOL]    ip_local_out (net/ipv4/ip_output.c:130:9)[EOL]    ip_send_skb (net/ipv4/ip_output.c:1496:8)[EOL]    udp_send_skb (net/ipv4/udp.c:1040:8)[EOL]    udp_sendmsg (net/ipv4/udp.c:1328:10)[EOL][EOL]The output interface has a 4->6 program attached at ingress.[EOL]We try to loop the multicast skb back to the sending socket.[EOL]Ingress BPF runs as part of netif_rx(), pushes a valid v6 hdr[EOL]and changes skb->protocol to v6. We enter ip6_rcv_core which[EOL]tries to use skb_dst(). But the dst is still an IPv4 one left[EOL]after IPv4 mcast output.[EOL][EOL]Clear the dst in all BPF helpers which change the protocol.[EOL]Try to preserve metadata dsts, those may carry non-routing[EOL]metadata.