CVE-2026-143202: udp: do not use a cross-family sk_rx_dst in early demux

Published Dec 3, 2026
·
Updated

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

udp: do not use a cross-family skrxdst in early demux

A dual-stack UDP socket connected to a v4-mapped address can receive both IPv4 packets and IPv6 packets using v4-mapped addresses: ip6rcvcore() no longer rejects a v4-mapped source since commit dcc32f4f183a ("ipv6: weaken the v4mapped source check"), which kept that check only in tcpv6connrequest(). ipv6portaddrhash() hashes v4-mapped addresses like IPv4 ones, so both early demux handlers find the socket, and both udp4librcv() and udp6librcv() store their input dst in the same sk->skrxdst.

udpv6earlydemux() validates the cached dst with dstcheck(), but ipv4dstcheck() ignores the cookie, so an IPv4 dst gets attached to an IPv6 skb. ip6rcvfinishcore() then skips the route lookup and iplocaldeliver() parses the IPv6 header as an IPv4 one: the IPv6 next header and hop limit are read as a fragment offset, and the IPv4 protocol is taken from a source address byte.

The reverse direction looks possible too: per-cpu dsts of IPv6 routes using nexthop objects have rt->sernum set, and ip6dstcheck() then ignores the cookie, so udpv4earlydemux() can attach an IPv6 dst to an IPv4 skb.

Kyle Zeng reported that such a packet can reach XFRM input still holding the prefetched, non refcounted, socket set by early demux, which can then outlive its RCU grace period.

Only use the cached dst if its family matches the packet. Otherwise fall back to a regular route lookup.

TCP does not have the same problem: skehashfn() hashes a v4-mapped socket with inetehashfn(), while IPv6 lookups use inet6ehashfn(), so IPv6 packets do not normally find a v4-mapped TCP socket.

Affected Software

5 affected componentsFixes available
Linux Linux kernel
linux/kernel>=4.12.0<5.15.227
5.15.227
linux/kernel>=5.16.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.227
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via OSV·09:20 AM
DescriptionAffected Software
Data Sourced
via NVD·10:17 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using dual-stack UDP sockets connected to IPv4-mapped addresses are exposed when those sockets can receive both IPv4 traffic and IPv6 traffic using IPv4-mapped addresses. Both IPv4 and IPv6 early-demultiplexing handlers can locate the same socket.

2

What traffic condition can trigger the faulty path?

The issue requires cross-family packet handling for the same dual-stack UDP socket: an IPv4 destination-route cache can be reused for an IPv6 packet, or the reverse direction may occur. This can cause the receiving stack to skip route lookup and process an IPv6 header as though it were an IPv4 header.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203