{"api_version":"1","generated_at":"2026-11-20T07:30:03+00:00","cve":"CVE-2026-99755","urls":{"html":"https://cve.report/CVE-2026-99755","api":"https://cve.report/api/cve/CVE-2026-99755.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99755","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99755"},"summary":{"title":"ptp: fix use-after-free in extts_fifo_show() reading tsevqs unlocked","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:13","updated_at":"2026-11-20 06:18:13"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/6a236983e79b92d989d7179cf74927330f6606a4","name":"https://git.kernel.org/stable/c/6a236983e79b92d989d7179cf74927330f6606a4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e","name":"https://git.kernel.org/stable/c/3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3e83be2d6473118ef6625c00ec9bc6bf99002847","name":"https://git.kernel.org/stable/c/3e83be2d6473118ef6625c00ec9bc6bf99002847","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/603a0c40d414ea12509fc45f2b930449a8d4aad2","name":"https://git.kernel.org/stable/c/603a0c40d414ea12509fc45f2b930449a8d4aad2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99755","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99755","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d26ab5a35ad9920940a9e07665130d501b2ae1a3 3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d26ab5a35ad9920940a9e07665130d501b2ae1a3 3e83be2d6473118ef6625c00ec9bc6bf99002847 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d26ab5a35ad9920940a9e07665130d501b2ae1a3 6a236983e79b92d989d7179cf74927330f6606a4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d26ab5a35ad9920940a9e07665130d501b2ae1a3 603a0c40d414ea12509fc45f2b930449a8d4aad2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.7","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/ptp/ptp_sysfs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e","status":"affected","version":"d26ab5a35ad9920940a9e07665130d501b2ae1a3","versionType":"git"},{"lessThan":"3e83be2d6473118ef6625c00ec9bc6bf99002847","status":"affected","version":"d26ab5a35ad9920940a9e07665130d501b2ae1a3","versionType":"git"},{"lessThan":"6a236983e79b92d989d7179cf74927330f6606a4","status":"affected","version":"d26ab5a35ad9920940a9e07665130d501b2ae1a3","versionType":"git"},{"lessThan":"603a0c40d414ea12509fc45f2b930449a8d4aad2","status":"affected","version":"d26ab5a35ad9920940a9e07665130d501b2ae1a3","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/ptp/ptp_sysfs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.7"},{"lessThan":"6.7","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.7","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-20T05:51:24.494Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e"},{"url":"https://git.kernel.org/stable/c/3e83be2d6473118ef6625c00ec9bc6bf99002847"},{"url":"https://git.kernel.org/stable/c/6a236983e79b92d989d7179cf74927330f6606a4"},{"url":"https://git.kernel.org/stable/c/603a0c40d414ea12509fc45f2b930449a8d4aad2"}],"title":"ptp: fix use-after-free in extts_fifo_show() reading tsevqs unlocked","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99755","datePublished":"2026-11-20T05:51:24.494Z","dateReserved":"2026-09-25T10:25:14.432Z","dateUpdated":"2026-11-20T05:51:24.494Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:13","lastModifiedDate":"2026-11-20 06:18:13","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99755","Ordinal":"1","Title":"ptp: fix use-after-free in extts_fifo_show() reading tsevqs unlo","CVE":"CVE-2026-99755","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99755","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ptp: fix use-after-free in extts_fifo_show() reading tsevqs unlo"}]}}}