PT-2026-151654

CVE-2026-99443

·

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:
pps: generators: don't use the driver's info after unregister
A file that was opened before pps gen unregister source() keeps pps gen, and with it the pointer to the driver's pps gen source info. PPS GEN SETENABLE and PPS GEN USESYSTEMCLOCK keep using that pointer after the driver has gone:
  • pps gen tio allocates its info with devm kzalloc(), so after an unbind both ioctls read freed memory, and SETENABLE calls the driver's enable() with its freed private data.
  • pps gen-dummy does not set info->owner, so it can be unloaded while the file is open, and the ioctls then read the unloaded module's data and call its code.
TIO can't probe in a VM, as it needs ART. A test driver that registers its info in devm memory like TIO does, unbound while /dev/pps-gen0 is open, gives:
BUG: KASAN: slab-use-after-free in pps gen cdev ioctl+0x4c1/0x580 Read of size 1 at addr ffff88800e647f38 by task ppsgen64/145 ... Freed by task 146: kfree+0x25a/0x6d0 release nodes+0xd1/0x140 devres release all+0x10e/0x1a0 device unbind cleanup+0x71/0x250 device release driver internal+0x41b/0x570 unbind store+0xd9/0x100
and unloading pps gen-dummy while its file is open oopses:
BUG: unable to handle page fault for address: ffffffffa0203040 Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:pps gen cdev ioctl+0x372/0x580
Protect info in the ioctl handler with a mutex, and clear it under the mutex on unregister, so that unregister waits for the ioctls using it and later ones fail with -ENODEV. PPS KC BIND does the same for a removed PPS device since commit 3649f9a6b897 ("pps: don't allow PPS KC BIND on removed devices"). The sysfs attributes need nothing new: they are removed, and their callbacks drained, before info is cleared.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾