PT-2026-166841
CVE-2026-142986
·
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:
usb: gadget: f midi: fix UAF race during IN request handling
f midi disable() drains and frees pre-allocated IN requests from
in req fifo without holding midi->transmit lock. If f midi transmit()
runs concurrently on the workqueue, f midi do transmit() can peek a
request from in req fifo and write into its buffer while
f midi disable() frees it, leading to a use-after-free.
Additionally, when usb ep queue() fails in f midi do transmit() (such
as with -ESHUTDOWN when the endpoint is disabled concurrently), it
resets req->length = 0 and returns active instead of the error code,
causing the do-while loop in f midi transmit() to keep spinning under
midi->transmit lock until the substream is drained.
Fix this by acquiring midi->transmit lock in f midi disable() while
releasing IN requests from in req fifo, and returning the error code
from f midi do transmit() when usb ep queue() fails so f midi transmit()
aborts immediately and drops active substreams.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾