PT-2026-152634

CVE-2026-99755

·

Publicado

2026-11-20

·

Atualizado

2026-11-20

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:
ptp: fix use-after-free in extts fifo show() reading tsevqs unlocked
extts fifo show() walks ptp->tsevqs with list count nodes() and then list first entry() without holding ptp->tsevqs lock, the spinlock that "protects tsevqs from concurrent access". Every other accessor of the list honours it: ptp open() (list add tail), ptp release() (list del followed by kfree of the per-fd queue), ptp clock release() and ptp clock event() all take tsevqs lock. extts fifo show() is the only one that does not.
A per-fd timestamp queue is appended to tsevqs on open("/dev/ptpN") and removed and freed on close(), both under tsevqs lock:
scoped guard(spinlock irq, &ptp->tsevqs lock)
	list del(&queue->qlist);
bitmap free(queue->mask);
kfree(queue);
So a read of /sys/class/ptp/ptpN/fifo running concurrently with a close() of a /dev/ptpN fd can have list count nodes() walk into the queue that close() is removing and freeing, dereferencing freed memory (use-after-free) or a poisoned list pointer.
Take tsevqs lock around the list walk. The fifo only ever draws from the first queue, which is the registration-time queue created in ptp clock register() and freed only in ptp clock release(); that cannot run while the sysfs attribute is being read, so the dequeue from queue->buf under queue->lock may stay outside tsevqs lock and the lock order is unchanged.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾