Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 124EE313548 for ; Fri, 19 Sep 2025 15:28:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758295725; cv=none; b=UHvQ5PxZliIKxiHktp5WxwHx2BsaBKR3yYfuwnyBgQvgAWmGAxCsLGjLG6iv+6cnD/UDcuJpcX1RAhgMrYzGOr9Orp+aEORWj2booE7iMDFAmr7ieca3O4knOfKiQBK4FEVPY0s1ywGhDg3MA4lM435eXa2fAaFb1BhqBAl4BZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758295725; c=relaxed/simple; bh=+cP1Y58AoWrsBKT6xT/Jte/hK4qAsF5wyhMEeAk5nbk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SjByYnXKVoJfV6Its2aBejzsgEKaCXD1Gw01EpeU6FjaFcfJ3ehjxC50N3x4CoiPFU/kx5Gc1kRuRRyKQfZRrd15QxI3BOrP9NOJeJRD0esXoLm9qL0N4d8HqK6lZ6uZqYhnlTZJ6MRQhEWbWevWsoNisgW4YC8EV1LVyv4modw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CvDUCLnU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CvDUCLnU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ED6FC4CEF0; Fri, 19 Sep 2025 15:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758295724; bh=+cP1Y58AoWrsBKT6xT/Jte/hK4qAsF5wyhMEeAk5nbk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CvDUCLnU6KMctU75093HIXyvnJQ1ChfbLySI2Xqq6pPzZB9FKLEA82ZoVHaSFOBwO PVMi+saXr40POIzDdeFtDQDWosThIB9GhP6/9SgzQ4hsIxhm/Qw67RWHjYDEAdLY0e gJMchjB4SWu4tX2sO2M2Fk31TA7SjpY8K8fzvN6c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39855: ice: fix NULL access of tx->in_use in ice_ptp_ts_irq Date: Fri, 19 Sep 2025 17:28:19 +0200 Message-ID: <2025091905-CVE-2025-39855-fd73@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2945; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8QNP1xgHuYtN4CCBdZUCyCKxyrzhcsx8evaR9NJVoGk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlny1rXeqSba69crbFIctW7mtXKnFzBK5ztzOVv7HOVf pSSeiuoI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay6RHD/LKp9S6uBlqLanwm Zp/pb+pK1NfazjDfxyr3i3780ZOBzy028RaocvbLe28EAA== 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: ice: fix NULL access of tx->in_use in ice_ptp_ts_irq The E810 device has support for a "low latency" firmware interface to access and read the Tx timestamps. This interface does not use the standard Tx timestamp logic, due to the latency overhead of proxying sideband command requests over the firmware AdminQ. The logic still makes use of the Tx timestamp tracking structure, ice_ptp_tx, as it uses the same "ready" bitmap to track which Tx timestamps complete. Unfortunately, the ice_ptp_ts_irq() function does not check if the tracker is initialized before its first access. This results in NULL dereference or use-after-free bugs similar to the following: [245977.278756] BUG: kernel NULL pointer dereference, address: 0000000000000000 [245977.278774] RIP: 0010:_find_first_bit+0x19/0x40 [245977.278796] Call Trace: [245977.278809] ? ice_misc_intr+0x364/0x380 [ice] This can occur if a Tx timestamp interrupt races with the driver reset logic. Fix this by only checking the in_use bitmap (and other fields) if the tracker is marked as initialized. The reset flow will clear the init field under lock before it tears the tracker down, thus preventing any use-after-free or NULL access. The Linux kernel CVE team has assigned CVE-2025-39855 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit f9472aaabd1f38954938838a1146db4855ad88e8 and fixed in 6.16.6 with commit 1467a873b20110263cc9c93de99335d139c11e16 Issue introduced in 6.15 with commit f9472aaabd1f38954938838a1146db4855ad88e8 and fixed in 6.17-rc5 with commit 403bf043d9340196e06769065169df7444b91f7a 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-2025-39855 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/net/ethernet/intel/ice/ice_ptp.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/1467a873b20110263cc9c93de99335d139c11e16 https://git.kernel.org/stable/c/403bf043d9340196e06769065169df7444b91f7a