PT-2026-167253

CVE-2026-143395

·

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/9p/usbg: Fix use-after-free on usb9pfs clear tx
When p9 usbg close() is called, it invokes usb9pfs clear tx() but does not clear usb9pfs->client nor usb9pfs->in req->context afterwards. The 9p client core (p9 client destroy) calls close() and then kfree(clnt), so after p9 usbg close returns the client struct is freed.
If the USB gadget is later disabled (e.g., host disconnect), usb9pfs disable calls usb9pfs clear tx again, which passes the dangling usb9pfs->client pointer to p9 client cb. Inside p9 client cb, p9 req put(c, req) dereferences the freed client to access its reqs IDR, causing a use-after-free.
Additionally, usb9pfs clear tx does not clear usb9pfs->in req->context after calling p9 client cb, so a second invocation finds a stale request pointer and attempts double-completion, further compounding the UAF risk.
Fix by:
  1. Clearing usb9pfs->in req->context to NULL in usb9pfs clear tx() before checking usb9pfs->client, so that even if the client is gone the stale request pointer is consumed and cannot cause double-completion.
  2. Adding a NULL check on usb9pfs->client in usb9pfs clear tx() to skip p9 client cb() when the client has already been destroyed.
  3. Setting usb9pfs->client = NULL in p9 usbg close() after calling usb9pfs clear tx(), to prevent any subsequent call from dereferencing the freed client pointer.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾