Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154491; b=gCR84Lc8r6he/UOxCA1rAtYubLr1b/tp/+0vA2R5dIgav036TIzrYcxslzQfqA7jNozQ yQ0+Jkj2tPe+YZK2yxnXCuKCb/8cuzZYyfY0GD6p7YI+m+buDuOHZdZA3bKpEsHV5QDzQ hjJxgLG3hIqyHCA3xzfpWZK14Xq7NObfbPEtqeCrdzm9TUOJApzMDoU4fewi8Buf3aAMd YCN1hjBD1DYSCCsFoimdeVuoe2tl/3lHxSaAxngPzOyEahQY1vB0Nvn9Trv4hRjvrHnny YTHIE3AFPHE4AmawIbvjXzy5oQqRTghNql8BwhP+nJaHbE4xPpUxepJxjMDusNXowRA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154491; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=JMl+2HQbKfETnvnhDizCnIku8z+6VrvXJ0UPOgKqFtc=; b=eRMb1XDgdGJLuZ+UIpJDu99BcjfClvM2I7S5uPSL2n5QTL7iqipAHp6/RGmaIlrqMZL7 ALmU/0HmP0VnKtRrUM4UJ708XM8akW2LM6zfkoSh+yCHpaBwnCC+hxWxJHS57KHDHIVTf O+/ZUmV2OgYzLkAYz0YTaab46rNQIVW8m00Fjec1zLGBX23xcXjoGWuqHNKnTY1D2688U uUElnx7WlnpvkZXa59Y3zQEOue2ROFdhbPg+PxjGlQVc7tdpz8GMYkn8Nd56fdp9Z+gMl 4BoqdDD9P68iZf2DE9ii9E99eGQkqaRLrPe4pDhJ5nGpucbK5LBA7UgPx9RmDGzieWQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=1KM9cFSm; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1E4D606A330 for ; Fri, 20 Nov 2026 06:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=1KM9cFSm Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2A371F000CF; Fri, 20 Nov 2026 06:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154491; bh=JMl+2HQbKfETnvnhDizCnIku8z+6VrvXJ0UPOgKqFtc=; h=From:To:Cc:Subject:Date:Reply-To; b=1KM9cFSm9UH8dudtvv48A+uNTKa4s4ouFJSSGJ6345p1mcy+kF1NBDJVwXivWS0mP 9K/qGb/g//8jSsqWLHqEIboz2Z9fvkpBtHeM0WblaNrqqeKTv2uEjsm5c76yh3qCou I8ISyajtjM1Ovw/5jDXc3zLnBLcTMaGow4lSWZMU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99755: ptp: fix use-after-free in extts_fifo_show() reading tsevqs unlocked Date: Fri, 20 Nov 2026 06:52:21 +0100 Message-ID: <2026112022-CVE-2026-99755-c0a1@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3547; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+bDtwOIB3lcafyNphmKvnrn76vYTgnurjqlPjcj8vFg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/789b8jE88Eb5lLI7u+ZNbFho/WxWX8+ZjUnMJ/Yyz nN4v+OKTkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMRN2TYcGiyztDFE/vOHk7 ySkg/1bXm75JN74xLLjG7rmkpHvZootnVH53LPSq3HdcmgkA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-99755 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit d26ab5a35ad9920940a9e07665130d501b2ae1a3 and fixed in 6.12.118 with commit 3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e Issue introduced in 6.7 with commit d26ab5a35ad9920940a9e07665130d501b2ae1a3 and fixed in 6.18.64 with commit 3e83be2d6473118ef6625c00ec9bc6bf99002847 Issue introduced in 6.7 with commit d26ab5a35ad9920940a9e07665130d501b2ae1a3 and fixed in 7.3.5 with commit 6a236983e79b92d989d7179cf74927330f6606a4 Issue introduced in 6.7 with commit d26ab5a35ad9920940a9e07665130d501b2ae1a3 and fixed in 7.4-rc2 with commit 603a0c40d414ea12509fc45f2b930449a8d4aad2 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99755 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/ptp/ptp_sysfs.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3d5d16b797a5a7131bb1a1fb81e2dfbe67aa916e https://git.kernel.org/stable/c/3e83be2d6473118ef6625c00ec9bc6bf99002847 https://git.kernel.org/stable/c/6a236983e79b92d989d7179cf74927330f6606a4 https://git.kernel.org/stable/c/603a0c40d414ea12509fc45f2b930449a8d4aad2