PT-2026-163383

CVE-2026-139342

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

Pontuação
N/A
Não disponível

Nã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:
net: use the full socket in sk mc loop()
sk mc loop() is called from ip mc output() and ip6 finish output2() with skb->sk, which is not always a full socket:
  • Since commit ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener"), a SYNACK is attached to its request socket.
  • Since commit 79636038d37e ("ipv4: tcp: give socket pointer to control skbs"), an ACK or RST sent by ip send unicast reply() on behalf of a TIME WAIT socket is attached to the timewait socket.
When such a packet uses a multicast route, inet test bit(MC LOOP, sk) reads inet flags past the end of the request or timewait socket.
This happens for instance when a SYN with a multicast source address reaches a listener, after being looped back with its dst attached, so that ip rcv finish core() skips the martian source check. A raw IP HDRINCL socket sending to a local address does this, as does re-injection by nft dup or the iptables TEE target. The destination can also come from a source route option, or from a route of type multicast covering a unicast prefix.
BUG: KASAN: slab-out-of-bounds in sk mc loop+0x111/0x170 Read of size 8 at addr ffff88800f2b7f10 by task repro-raw/470 Call Trace: sk mc loop+0x111/0x170 ip mc output+0x355/0x930 ip build and send pkt+0xb87/0xc50 tcp v4 send synack+0x500/0x6f0 tcp conn request+0x2135/0x2d90 tcp v4 conn request+0xa5/0x210 tcp rcv state process+0x136e/0x6920 tcp v4 do rcv+0x339/0xb10 tcp v4 rcv+0x34ab/0x3ab0 ip protocol deliver rcu+0x6e/0x3e0 ip local deliver finish+0x34d/0x510 ip local deliver+0x1bc/0x310 ip rcv+0x390/0x410 netif receive skb one core+0x199/0x1e0 process backlog+0x239/0x680 napi poll+0xb5/0x650 net rx action+0x980/0xd60 handle softirqs+0x17f/0x590 do softirq+0x3f/0x60
The buggy address belongs to the object at ffff88800f2b7d60 which belongs to the cache request sock TCP of size 312 The buggy address is located 120 bytes to the right of allocated 312-byte region [ffff88800f2b7d60, ffff88800f2b7e98)
Use sk const to full sk(), which restores the behavior from before the two commits above: a request socket uses the setting of its listener, and a timewait socket gets the default (loop back), as the per-cpu control socket used before had.
[edumazet: rewrote the changelog, added the TIME WAIT case]
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾