PT-2026-166641

CVE-2026-142904

·

Publicado

2026-12-03

·

Atualizado

2026-12-03

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:
veth: clear rx queue hint in veth xmit
With more tx queues on one end of a veth pair than rx queues on the other, and RPS or generic XDP enabled on the receiving end, we get:
veth1 received packet on queue 2, but number of RX queues is 2 WARNING: net/core/dev.c:5212 at get rps cpu+0x560/0x1360 Call Trace: netif rx internal+0x1af/0x4c0 netif rx+0x99/0x350 veth xmit+0x713/0xca0 dev hard start xmit+0x166/0x5f0 dev queue xmit+0x1797/0x42d0 ip finish output2+0xa34/0x1f40 ip finish output+0x510/0x7e0 ip finish output+0x2f/0x320 ip output+0x17a/0x3f0 ip send skb+0x1bc/0x220 ......
Easy to hit with "ethtool -L veth0 tx 4", "ethtool -L veth1 rx 2", rps cpus set on veth1 and a few flows sent over the pair 1.
veth xmit() uses skb->queue mapping to pick the peer rq, but never clears it before veth forward skb(), so the rx side still sees the tx queue index. Everything on the rx side that goes through skb get rx queue(), like get rps cpu() and netif get rxqueue() for generic XDP, takes it as a recorded rx queue and warns once it is out of range.
Clear it before handing the skb to the peer:
  • It is the tx queue index of this device, it says nothing about the rx queue of the peer.
  • The two sides don't even agree on the encoding. The tx side stores the index as is, the rx side stores index + 1 so that 0 can mean "not recorded". So tx queue k is read back as rx queue k - 1, and tx queue 0 as "not recorded".
  • Commit 710ad98c363a ("veth: Do not record rx queue hint in veth xmit") already decided that veth should not pass any queue hint to the peer. There is no tx->rx queue mapping to preserve, so nothing is lost by clearing it.
On NETDEV TX BUSY the skb goes back to the qdisc, which looks up the txq from skb->queue mapping to decide when to retry, so restore it there, next to the existing skb push().
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾