PT-2026-167060
CVE-2026-143202
·
Publicado
2026-12-03
·
Atualizado
2026-12-03
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
In the Linux kernel, the following vulnerability has been resolved:
udp: do not use a cross-family sk rx dst 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:
ip6 rcv core() no longer rejects a v4-mapped source since commit
dcc32f4f183a ("ipv6: weaken the v4mapped source check"), which kept
that check only in tcp v6 conn request(). ipv6 portaddr hash() hashes
v4-mapped addresses like IPv4 ones, so both early demux handlers find
the socket, and both udp4 lib rcv() and udp6 lib rcv() store their
input dst in the same sk->sk rx dst.
udp v6 early demux() validates the cached dst with dst check(), but
ipv4 dst check() ignores the cookie, so an IPv4 dst gets attached to
an IPv6 skb. ip6 rcv finish core() then skips the route lookup and
ip local deliver() 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 ip6 dst check() then
ignores the cookie, so udp v4 early demux() 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: sk ehashfn() hashes a v4-mapped
socket with inet ehashfn(), while IPv6 lookups use inet6 ehashfn(),
so IPv6 packets do not normally find a v4-mapped TCP socket.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾