{"id":"CVE-2026-99755","aliases":["CVE-2026-99755"],"related":[],"kind":"vulnerability","state":"published","title":"ptp: fix use-after-free in extts_fifo_show() reading tsevqs unlocked","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: fix use-after-free in extts_fifo_show() reading tsevqs unlocked\n\nextts_fifo_show() walks ptp->tsevqs with list_count_nodes() and then\nlist_first_entry() without holding ptp->tsevqs_lock, the spinlock that\n\"protects tsevqs from concurrent access\". Every other accessor of the\nlist honours it: ptp_open() (list_add_tail), ptp_release() (list_del\nfollowed by kfree of the per-fd queue), ptp_clock_release() and\nptp_clock_event() all take tsevqs_lock. extts_fifo_show() is the only\none that does not.\n\nA per-fd timestamp queue is appended to tsevqs on open(\"/dev/ptpN\") and\nremoved and freed on close(), both under tsevqs_lock:\n\n\tscoped_guard(spinlock_irq, &ptp->tsevqs_lock)\n\t\tlist_del(&queue->qlist);\n\tbitmap_free(queue->mask);\n\tkfree(queue);\n\nSo a read of /sys/class/ptp/ptpN/fifo running concurrently with a\nclose() of a /dev/ptpN fd can have list_count_nodes() walk into the\nqueue that close() is removing and freeing, dereferencing freed memory\n(use-after-free) or a poisoned list pointer.\n\nTake tsevqs_lock around the list walk. The fifo only ever draws from the\nfirst queue, which is the registration-time queue created in\nptp_clock_register() and freed only in ptp_clock_release(); that cannot\nrun while the sysfs attribute is being read, so the dequeue from\nqueue->buf under queue->lock may stay outside tsevqs_lock and the lock\norder is unchanged.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: fix use-after-free in extts_fifo_show() reading tsevqs unlocked\n\nextts_fifo_show() walks ptp->tsevqs with list_count_nodes() and then\nlist_first_entry() without holding ptp->tsevqs_lock, the spinlock that\n\"protects tsevqs from concurrent access\". Every other accessor of the\nlist honours it: ptp_open() (list_add_tail), ptp_release() (list_del\nfollowed by kfree of the per-fd queue), ptp_clock_release() and\nptp_clock_event() all take tsevqs_lock. extts_fifo_show() is the only\none that does not.\n\nA per-fd timestamp queue is appended to tsevqs on open(\"/dev/ptpN\") and\nremoved and freed on close(), both under tsevqs_lock:\n\n\tscoped_guard(spinlock_irq, &ptp->tsevqs_lock)\n\t\tlist_del(&queue->qlist);\n\tbitmap_free(queue->mask);\n\tkfree(queue);\n\nSo a read of /sys/class/ptp/ptpN/fifo running concurrently with a\nclose() of a /dev/ptpN fd can have list_count_nodes() walk into the\nqueue that close() is removing and freeing, dereferencing freed memory\n(use-after-free) or a poisoned list pointer.\n\nTake tsevqs_lock around the list walk. The fifo only ever draws from the\nfirst queue, which is the registration-time queue created in\nptp_clock_register() and freed only in ptp_clock_release(); that cannot\nrun while the sysfs attribute is being read, so the dequeue from\nqueue->buf under queue->lock may stay outside tsevqs_lock and the lock\norder is unchanged.","source":"cvelist"}],"published":"2026-11-20T05:51:24.494Z","modified":"2026-11-20T06:18:13.690Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d26ab5a35ad9920940a9e07665130d501b2ae1a3","fixed":"3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e","status":"affected"},{"type":"git","introduced":"d26ab5a35ad9920940a9e07665130d501b2ae1a3","fixed":"3e83be2d6473118ef6625c00ec9bc6bf99002847","status":"affected"},{"type":"git","introduced":"d26ab5a35ad9920940a9e07665130d501b2ae1a3","fixed":"6a236983e79b92d989d7179cf74927330f6606a4","status":"affected"},{"type":"git","introduced":"d26ab5a35ad9920940a9e07665130d501b2ae1a3","fixed":"603a0c40d414ea12509fc45f2b930449a8d4aad2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e83be2d6473118ef6625c00ec9bc6bf99002847","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a236983e79b92d989d7179cf74927330f6606a4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/603a0c40d414ea12509fc45f2b930449a8d4aad2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99755","url":"https://www.cve.org/CVERecord?id=CVE-2026-99755","licence":"CVE Terms of Use","modified":"2026-11-20T05:51:24.494Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99755","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99755","licence":"Public domain","modified":"2026-11-20T06:18:13.690Z"}],"updatedAt":"2026-11-25T22:59:52.333Z","epss":{"score":0.00168,"percentile":0.03525,"date":"2026-11-30T12:00:22.000Z"}}