PT-2026-166994
CVE-2026-143136
·
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:
net: gro: invalidate frag0 after a pull
Since commit bd56a29c7a4e ("net: gro: change skb gro network header()"),
skb gro header slow() no longer invalidates NAPI GRO CB(skb)->frag0
after pskb may pull(). skb gro may pull() keeps comparing against the
frag0 len value set in skb gro reset offset(), assuming that after a
slow pull, all later accesses are beyond frag0 len.
This is not true:
-
udp4 gro receive() and udp6 gro receive() read the network header with skb gro network header() after udp gro udphdr() pulled the UDP header.
-
vxlan gro receive() calls skb gro remcsum cleanup() at a lower offset after the inner handlers pulled their headers.
-
skb gro remcsum process() can pull beyond the inner Ethernet header before eth gro receive() reads it.
-
napi frags skb() calls skb pull(skb, ETH HLEN) after a slow pull, so frag0 still points to the Ethernet header.
If the pull consumed the first page fragment, skb pull tail() released
it. If the head had to grow, pskb expand head() freed the old one.
These reads, and the 2-byte write in skb gro remcsum cleanup(), then
access memory the skb no longer holds a reference on.
esp4 gro receive(), esp6 gro receive(), skb gro receive list() and
udp gro receive segment() also pull directly and never invalidated
frag0.
Add skb gro frag0 invalidate(), which only clears frag0 len, and call
it before each of these pulls. This is a single store in the slow path,
and frag0 stays non NULL, so skb gro network header() does not need
a NULL test.
frag0 must be invalidated even if the pull fails: pskb pull tail()
can return NULL after pskb expand head() freed the old head, for
instance if a frag list member has to be cloned or pulled.
As frag0 is now invalidated before a pull that can fail,
gro try pull from frag0() can see an skb whose linear part does not
cover skb gro offset() while frag0 still points to the start of the
packet, for instance after skb gro remcsum cleanup() pulled a shorter
length. Copying from frag0 would then corrupt the headers: only use
frag0 while frag0 len is not zero, and use pskb may pull() otherwise.
If this pull fails, for instance after a failed pskb pull() in
esp4 gro receive(), do not hold the packet: later GRO lookups and
gro complete() handlers expect its headers in the linear part.
This was found by Taesoo Kim and Cen Zhang, using LLM assisted code
analysis, and confirmed with reproducers.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾