PT-2026-152634
CVE-2026-99755
·
Published
2026-11-20
·
Updated
2026-11-20
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾