PT-2026-163834

CVE-2026-139793

·

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:
inet: frags: bound the wmem charge of the socket completing a reassembly
When a socket owned fragment completes a reassembly queue, inet frag reasm prepare() and inet frag reasm finish() charge the truesize of all other fragments to its sk wmem alloc. These fragments were orphaned when queued, and might have been sent by someone else, for instance padded TUN packets.
Commit 3ae20e4697eb ("inet: frags: limit the truesize of a reassembly queue") bounds this charge to INT MAX / 2 per queue, but a socket can complete several queues while the reassembled skbs are still alive, for instance held in a qdisc. sk wmem alloc can then go past INT MAX, refcount add() saturates it with a WARN, and the socket is leaked.
This is reachable from an unprivileged user/network namespace, by raising ipfrag high thresh.
Refuse the reassembly if the charge would push sk wmem alloc above 2 * sk sndbuf, the bound ip append data() uses, plus 4MB of slack for fragments inflated by a refragmentation with a small MTU, and never above INT MAX / 2. The cap matters for tun sockets, which use sk sndbuf = INT MAX, and whose skbs are still owned when act ct or openvswitch reassemble them at ingress.
Several queues can complete at the same time on different cpus for the same socket, so the charge is reserved with a cmpxchg() loop in inet frag reasm prepare(), before it modifies the queue, and settled in inet frag reasm finish(). Move the size checks of ip frag reasm(), ip6 frag reasm() and nf ct frag6 reasm() before inet frag reasm prepare(), using the first fragment which becomes the head, so that a successful inet frag reasm prepare() is always followed by inet frag reasm finish(). All callers already kill the queue when inet frag reasm prepare() returns NULL.
Found by code inspection (AI review), not reproduced.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾