PT-2026-167134
CVE-2026-143276
·
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:
tcp: ipv6: do not read ireq->pktopts from tcp v6 send synack()
When IPV6 FL F REFLECT is set on a listener, or the
net.ipv6.flowlabel reflect sysctl has FLOWLABEL REFLECT ESTABLISHED,
tcp v6 send synack() reflects the flowlabel of the SYN packet,
reading it from the skb stored in ireq->pktopts.
Since commit 079096f103fa ("tcp/dccp: install syn recv requests
into ehash table"), request sockets are processed without holding
the listener lock. A cpu can then process a retransmitted SYN for a
request socket, and send a SYNACK from tcp check req(), while another
cpu receives the ACK completing the 3WHS. tcp v6 syn recv sock()
consumes ireq->pktopts when it wins the hashdance, and the first cpu
reads a freed skb:
BUG: KASAN: slab-use-after-free in tcp v6 send synack (include/linux/skbuff.h:3152 include/linux/ipv6.h:110 net/ipv6/tcp ipv6.c:582)
Read of size 8 at addr ffff88802b08b608 by task poc-ipv6-pktopt/5076
Call Trace:
tcp v6 send synack (include/linux/skbuff.h:3152 include/linux/ipv6.h:110 net/ipv6/tcp ipv6.c:582)
tcp rtx synack (net/ipv4/tcp output.c:4719)
tcp check req (net/ipv4/tcp minisocks.c:762)
tcp v6 rcv (net/ipv6/tcp ipv6.c:1826)
ip6 protocol deliver rcu (net/ipv6/ip6 input.c:479)
ip6 input finish (net/ipv6/ip6 input.c:534)
ip6 input (include/linux/netfilter.h:325 include/linux/netfilter.h:319 net/ipv6/ip6 input.c:545)
ipv6 rcv (include/net/dst.h:481 net/ipv6/ip6 input.c:119 include/linux/netfilter.h:325 include/linux/netfilter.h:319 net/ipv6/ip6 input.c:351)
Freed by task 5074 on cpu 0 at 15.412249s:
kmem cache free (include/linux/kasan.h:235 mm/slub.c:2780 mm/slub.c:6630 mm/slub.c:6757)
tcp v6 syn recv sock (net/ipv6/tcp ipv6.c:1528)
tcp check req (net/ipv4/tcp minisocks.c:934)
tcp v6 rcv (net/ipv6/tcp ipv6.c:1826)
ip6 protocol deliver rcu (net/ipv6/ip6 input.c:479)
ip6 input finish (net/ipv6/ip6 input.c:534)
Request socket migration has the same issue: reqsk migrate reset()
transfers ireq->pktopts to the clone, which can be freed while
another cpu holding a reference on the old request socket is still
sending a SYNACK.
The SYNACK timer itself is not an issue, because
inet csk reqsk queue drop() calls timer delete sync().
Save the flowlabel of the SYN in the request socket instead, so that
tcp v6 send synack() no longer needs ireq->pktopts.
As a side effect, the flowlabel is also reflected for SYN packets
reusing a TIME WAIT socket, as ireq->pktopts is not set in this case.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾