PT-2026-167200

CVE-2026-143342

·

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:
net: stmmac: fix VLAN tag stripping on short and non-linear RX frames
stmmac rx vlan() reads the VLAN header straight from skb->data and removes it with skb pull(), assuming the header is fully present in the linear part of the skb. XDP can change the frame length and head layout before the tag is stripped.
An XDP program can use bpf xdp adjust tail() to shrink a frame to as little as ETH HLEN while bytes 12-13 still contain a VLAN ethertype. The driver then reads h vlan TCI past skb->len and pops the tag, leaving less than ETH HLEN in the skb. eth type trans() cannot pull the MAC header, so a malformed skb is passed up. The TCI is also read from the wrong place when the tag is not fully in the linear head, e.g. when it spans into a frag.
Read h vlan proto after pulling ETH HLEN into the linear part, and check it together with the device features. Only if the tag is actually going to be popped, pull VLAN ETH HLEN and re-derive the header pointer afterwards, as pskb may pull() may reallocate the skb head. Return an error so the callers can drop a frame that claims a VLAN tag but cannot provide the full header. This also drops and counts frames shorter than ETH HLEN in rx dropped, even when VLAN RX offload is disabled; bpf xdp adjust head() and bpf xdp adjust tail() cannot produce such a frame, so it only affects a runt that reaches the driver, and dropping it is safer than handing it to eth type trans().
Also move the XDP metadata written with bpf xdp adjust meta() together with the MAC header when the tag is popped, so data meta still points at the metadata after eth type trans() anchors mac header, instead of at the first bytes of the destination MAC.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾