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 CB1BD3191BB for ; Fri, 19 Sep 2025 15:28:41 +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=1758295721; cv=none; b=WRDal3H6Jb1PwjMF+1L+HLFrjrl55XgVJTilK4BDfsd9WjL/xSDfS8/vAV+45d59EQm6Tlu7oA09ZzOZKjBVP9x6dZwx9fI+kAqq19SMAQTiIDLE+7kbtVZNkCQ32bm41E6elFdPjUswlcysxxxJBVfNS8flMT5DyGL06X5wdEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758295721; c=relaxed/simple; bh=/9xeyGJm11q5f1Yn1m9yzAmhRYZ/wJJfyHb1uUQqXps=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jJ6DXg2SfewS5eVG7Lm+BLvlheMIkSxQVHNDObhqmvhJlTeIpp7vPQtMdY1nv9Ga7UoDDoMm1zzb5hySsxb3+p97LfuLSrvgMESpdBIcNoA6CDsqCRHhmummXINH6VGr3mzd4yY64vq3L2bvH2s0/msxeJPjJOMYvSeCD7+9uFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uuBs0Ylw; 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="uuBs0Ylw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E839CC4CEF0; Fri, 19 Sep 2025 15:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758295721; bh=/9xeyGJm11q5f1Yn1m9yzAmhRYZ/wJJfyHb1uUQqXps=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uuBs0Ylwdp/6HRWoR9NZ4AChU7ifxbfcyvnme3gNEq0Cxyz3jZUi2i4fCYR6gfzsQ Hr00xvTnm5/zkJccnNGe52VZo/ctNfxCmh8lbaxre4thr6O4xCZ3rmoIvRF0BF8O7E pK29CZeDO2emi0rFKvNFaIcFPVfETkz0sn1uD2ZQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39854: ice: fix NULL access of tx->in_use in ice_ll_ts_intr Date: Fri, 19 Sep 2025 17:28:18 +0200 Message-ID: <2025091905-CVE-2025-39854-8ede@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=2925; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3MvO+RTO9lFEmELMbos7BAtpF+N/WZZ7rMz7kByMekk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlny1on2N4PuvZgeVaM2Wth4VKpJ2IXfgt+nHCJj7P4w 2qO0y2hHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR2zSGBdOONsrovp9/S09m W6zkpMdsfzmKWhjmRz//Metr9c9Z/qxflW+JxP1zcI1dCwA= 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_ll_ts_intr Recent versions of the E810 firmware have support for an extra interrupt to handle report of the "low latency" Tx timestamps coming from the specialized low latency firmware interface. Instead of polling the registers, software can wait until the low latency interrupt is fired. This logic 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_ll_ts_intr() 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 issues fixed in the ice_ptp_ts_irq() function. 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-39854 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 82e71b226e0ef770d7bc143701c8b4960b4eb3d5 and fixed in 6.12.46 with commit 2cde98a02da958357fe240a6ba269b69d913b6ba Issue introduced in 6.8 with commit 82e71b226e0ef770d7bc143701c8b4960b4eb3d5 and fixed in 6.16.6 with commit 923c267bdbb64f65bc1149d184efcf8b047d7d64 Issue introduced in 6.8 with commit 82e71b226e0ef770d7bc143701c8b4960b4eb3d5 and fixed in 6.17-rc5 with commit f6486338fde3f04ed0ec59fe67a69a208c32734f 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-39854 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_main.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/2cde98a02da958357fe240a6ba269b69d913b6ba https://git.kernel.org/stable/c/923c267bdbb64f65bc1149d184efcf8b047d7d64 https://git.kernel.org/stable/c/f6486338fde3f04ed0ec59fe67a69a208c32734f