PT-2026-166847

CVE-2026-142992

·

Publicado

2026-12-03

·

Atualizado

2026-12-03

Descrição por

CVSS 3.1
7.8
Alta
MétricasAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: oti6858: fix the teardown order in close
The driver passes a baton around: the completion handler of the interrupt urb either resubmits the urb, submits the read urb or schedules one of the two delayed works, and the works and the bulk completion handlers submit the interrupt urb again.
oti6858 close() cancels the works first and kills the urbs afterwards. An interrupt urb that completes in between schedules a work again:
oti6858 close()
 cancel delayed work sync(setup)
 cancel delayed work sync(write)
			oti6858 read int callback()
			 schedule delayed work(setup)
 usb kill urb(interrupt in urb)	/* not in flight */
			setup line()
			 usb submit urb(interrupt in urb)
The port is now closed with the baton still going round. The next open fails because the interrupt urb is already submitted, and if the device is unplugged, oti6858 port remove() frees the private data while a work may be pending or running.
Poison the interrupt urb first: that waits for the handler and makes all further submissions fail, so nothing schedules the works any more. Then cancel the works, after which only the bulk urbs are left, kill those, and make the interrupt urb usable again for the next open. Don't print an error for the submissions that fail with -EPERM in this window, as oti6858 read bulk callback() already does.
Explorabilidade
Correção
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾