PT-2026-161475
Publicado
2026-11-19
·
Atualizado
2026-11-19
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:
mptcp: hold MP JOIN msk ref when cloning reqsk
TCP request migration clones pending request sockets with
inet reqsk clone(). For MPTCP MP JOIN requests this byte-copies
subflow req->msk, but the clone does not own a reference.
The original and cloned requests can consequently drop the same msk
reference, leaving one request with a dangling pointer. This manifests as
a KASAN slab-use-after-free in subflow req destructor():
BUG: KASAN: slab-use-after-free in subflow req destructor (net/mptcp/subflow.c:45)
Write of size 4 at addr ff1100010e008d40 by task swapper/0/0
CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 7.2.0-rc5-00353-gc27e36054537 #10 PREEMPT(full)
Call Trace:
subflow req destructor (net/mptcp/subflow.c:45)
subflow v4 req destructor (net/mptcp/subflow.c:694)
reqsk free (net/ipv4/inet connection sock.c:906)
reqsk timer handler (include/net/request sock.h:137 net/ipv4/inet connection sock.c:1147)
Allocated by task 10014:
sk prot alloc (net/core/sock.c:2246)
sk clone (net/core/sock.c:2488)
mptcp sk clone init (include/net/sock.h:1848 net/mptcp/protocol.c:3564)
subflow syn recv sock (net/mptcp/subflow.c:883)
tcp check req (net/ipv4/tcp minisocks.c:934)
Freed by task 0:
slab free after rcu debug (include/linux/kasan.h:235 mm/slub.c:2677 mm/slub.c:6439)
rcu core (kernel/rcu/tree.c:2645 kernel/rcu/tree.c:2897)
Last potentially related work creation:
kmem cache free (mm/slub.c:2638 mm/slub.c:6377 mm/slub.c:6504)
sk destruct (net/core/sock.c:2289 net/core/sock.c:2391)
sk destruct (net/core/sock.c:2419)
sk free (net/core/sock.c:2430)
sk free (net/core/sock.c:2441)
mptcp close (include/net/sock.h:2020 net/mptcp/protocol.c:3399)
inet release (net/ipv4/af inet.c:442)
The buggy address belongs to the cache MPTCP of size 2968
The buggy address is 128 bytes inside a freed 2968-byte region
A non-NULL subflow req->msk means that the request owns one reference. The
third ACK can concurrently transfer the original request reference to the
child and release it, so taking an unconditional hold on the copied pointer
is unsafe.
MPTCP sockets use SLAB TYPESAFE BY RCU and all current inet reqsk clone()
callers run in an RCU read-side critical section. Document and
lockdep-check that calling-context requirement. Read the pointer from the
original request and acquire a reference only if it is still live. Use
refcount inc not zero acquire() so the subsequent ownership validation
cannot be reordered before the try-get, then re-read the original request
to verify that it still owns the same msk. If either check fails, clear the
clone pointer; otherwise its normal destructor balances the new reference.
Mark the ownership-transfer store with WRITE ONCE() to match the lockless
reads.
The following patch completes the clone fixup for MP CAPABLE token
ownership. Both patches carry the same Fixes tag and are required for
stable backports.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾