PT-2026-161468

Publicado

2026-11-19

·

Atualizado

2026-11-19

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:
usb: gadget: fix refcount underflow in gadgetfs bind() error path
gadgetfs bind() calls get dev() only on the success path, but gadgetfs unbind() called from the enomem error label unconditionally calls put dev(). When bind fails (e.g. ENOMEM), put dev() fires without a matching get dev(), leaving the refcount unbalanced.
A subsequent close of the ep0 file descriptor calls dev release() -> put dev() which hits zero and frees the object; then gadgetfs kill sb() calls put dev(the device) again on the already-freed pointer, triggering a refcount underflow and use-after-free.
Fix by calling get dev() at the start of gadgetfs bind(), before any error path that invokes gadgetfs unbind(), so the reference is always balanced regardless of whether bind succeeds or fails.
Fornecedores
Produtos afetados
Identificadores relacionados
AZL-114893
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾