PT-2026-166605
CVE-2026-142882
·
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/9p/usbg: clear stale request context after abort
usb9pfs clear tx() serializes access to the active TX request with
usb9pfs->lock, but leaves in req->context pointing at the request after
p9 client cb() drops the transport reference. A later teardown path can
therefore retrieve the same request after it has been freed:
CPU 0 (p9 usbg close) CPU 1 (usb9pfs disable)
lock(usb9pfs->lock)
req = in req->context
p9 client cb(client, req)
p9 req put(client, req)
unlock(usb9pfs->lock)
request reaches zero refs
kmem cache free(req)
lock(usb9pfs->lock)
req = in req->context
read req->t err
The lock orders the two callbacks, but cannot protect a pointer that
remains published after its reference has been released. KASAN reported:
BUG: KASAN: slab-use-after-free in usb9pfs clear tx+0x166/0x1b0
Read of size 4 at addr ffff88810e7420f4 by task poc/94
Call Trace:
usb9pfs clear tx+0x166/0x1b0
usb9pfs disable+0x1d/0x30
reset config+0x9d/0x200
composite disconnect+0xa7/0x140
Allocated by task 93:
kmem cache alloc noprof+0x141/0x370
p9 tag alloc+0x8f/0x5b0
p9 client prepare req+0xff/0x350
p9 client rpc+0x1a5/0xac0
Freed by task 0:
slab free after rcu debug+0xa6/0x1e0
rcu core+0x50a/0x1850
Last potentially related work creation:
kmem cache free+0x1db/0x3d0
p9 req put+0x164/0x1f0
usb9pfs clear tx+0x120/0x1b0
p9 usbg close+0x7e/0x150
Clear in req->context after the callback while still holding the lock.
This matches the consume-and-clear pattern in usb9pfs tx complete(), so
subsequent teardown calls return without touching the released request.
The existing callback and error ordering remain unchanged.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾