PT-2026-166839
CVE-2026-142984
·
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: u serial: pin ports while TTYs are installed
A slab-use-after-free can occur when gserial free line() frees struct
gs port while it is still reachable through an installed TTY. The
port->port.count value tracks successful opens, but it is zero before
gs open() and again after gs close(), before TTY cleanup has finished.
Teardown can therefore free gs port while tty init dev() or release tty()
still accesses its tty port.
Manage gs port lifetime with tty port references. Take a reference in
gs install(), drop it in gs cleanup(), and move the final free to
gs port destruct(). Unregister the TTY device before dropping the owner
reference.
Keep each minor reserved until the old port is destroyed so an installed
TTY for one generation cannot overlap a replacement at the same minor.
Publish the new port before device registration so the cdev and add uevent
never expose a TTY before gs install() can pin it. Since commit
8df07fe93573 ("tty: fix saved termios reset race"), u serial registration
no longer frees saved termios. On registration failure, unpublish the port
before dropping its owner reference.
Check in gs open() that the installed port is still the published
generation. Track failures after a successful install so close callbacks
issued by the TTY core do not decrement port->port.count for opens that
never incremented it.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾