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 004FA3A1E92 for ; Tue, 16 Dec 2025 13:58:29 +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=1765893510; cv=none; b=RTc9bqxNx5mSAMQhYCvRRd3fo6/gCu/UVRVkM0hCXl2hFMtYoN8IX+OUlQ1Kw1t+Bwm43gyZR+HS6MLkqr2CJH1PiFUy941dG24XKyCfUzY3EGt0SosdJRKcaDsz0TwygnDpUqYiI6UyUR0iTSZR3Wy5SPr/WxJaO21u7S4jX3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765893510; c=relaxed/simple; bh=N6qTF7T7V5XWGV4a6H8FOxScEiOEaa44fFwBXhL1Cag=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GRi9wmj37EaIJHlGXUzAkcSrGbEgIBflgdpCFd1QHbta1f77pAqIR47ZcMGdGzQK3vDeAPyhEmGwYHmiKoG9/BRFHCVppMb6NuXgG2Cyhl2LtgGFHBvI7g8TIJsQW6fMmNntJPdP6dx5YAJskpxZfsDcgES4i56+0tenz7KUOm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DbStIj47; 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="DbStIj47" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18772C4CEF1; Tue, 16 Dec 2025 13:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765893509; bh=N6qTF7T7V5XWGV4a6H8FOxScEiOEaa44fFwBXhL1Cag=; h=From:To:Cc:Subject:Date:Reply-To:From; b=DbStIj474hA0XB0sV4twwXdFT2fa1nzfyHCq6ZYQ82nG3FfF7hGuAyj2k+zPe3/F3 qhU0JKZ2hHWw1gOtwKhQD2ok5SrMWxFGe24e1DLBYENBp5kfDZuYNpDtC2Fv+4uZur MV/daDmZFIyIOmmXQITtnOCpoYsuDUuA0/rTwZ74= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68215: ice: fix PTP cleanup on driver removal in error path Date: Tue, 16 Dec 2025 14:57:34 +0100 Message-ID: <2025121631-CVE-2025-68215-ee77@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3855; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TlKs/YNjMhnQem72GFjaNIRIapj8A+l7YCr3I1wy29M=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOqd6bHnkmq/nd+vR5cUCtddWyLK7Sp89clFlm75LmS 3V7r72qI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSlcMwvyxG+JuUtK/tZVOl RPYTfEwPpWZfY5jvWJx79tYe+X+bl0y4ub9FuSfu2gs1AA== 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 PTP cleanup on driver removal in error path Improve the cleanup on releasing PTP resources in error path. The error case might happen either at the driver probe and PTP feature initialization or on PTP restart (errors in reset handling, NVM update etc). In both cases, calls to PF PTP cleanup (ice_ptp_cleanup_pf function) and 'ps_lock' mutex deinitialization were missed. Additionally, ptp clock was not unregistered in the latter case. Keep PTP state as 'uninitialized' on init to distinguish between error scenarios and to avoid resource release duplication at driver removal. The consequence of missing ice_ptp_cleanup_pf call is the following call trace dumped when ice_adapter object is freed (port list is not empty, as it is required at this stage): [ T93022] ------------[ cut here ]------------ [ T93022] WARNING: CPU: 10 PID: 93022 at ice/ice_adapter.c:67 ice_adapter_put+0xef/0x100 [ice] ... [ T93022] RIP: 0010:ice_adapter_put+0xef/0x100 [ice] ... [ T93022] Call Trace: [ T93022] [ T93022] ? ice_adapter_put+0xef/0x100 [ice 33d2647ad4f6d866d41eefff1806df37c68aef0c] [ T93022] ? __warn.cold+0xb0/0x10e [ T93022] ? ice_adapter_put+0xef/0x100 [ice 33d2647ad4f6d866d41eefff1806df37c68aef0c] [ T93022] ? report_bug+0xd8/0x150 [ T93022] ? handle_bug+0xe9/0x110 [ T93022] ? exc_invalid_op+0x17/0x70 [ T93022] ? asm_exc_invalid_op+0x1a/0x20 [ T93022] ? ice_adapter_put+0xef/0x100 [ice 33d2647ad4f6d866d41eefff1806df37c68aef0c] [ T93022] pci_device_remove+0x42/0xb0 [ T93022] device_release_driver_internal+0x19f/0x200 [ T93022] driver_detach+0x48/0x90 [ T93022] bus_remove_driver+0x70/0xf0 [ T93022] pci_unregister_driver+0x42/0xb0 [ T93022] ice_module_exit+0x10/0xdb0 [ice 33d2647ad4f6d866d41eefff1806df37c68aef0c] ... [ T93022] ---[ end trace 0000000000000000 ]--- [ T93022] ice: module unloaded The Linux kernel CVE team has assigned CVE-2025-68215 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.11 with commit 2f59743be4d9568cad2d9cf697d1b897975421ed and fixed in 6.12.60 with commit f5eb91f876ebecbcd90f9edcaea98dcb354603b3 Issue introduced in 6.13 with commit e800654e85b5b27966fc6493201f5f8cf658beb6 and fixed in 6.17.10 with commit 765236f2c4fbba7650436b71a0e350500e9ec15f Issue introduced in 6.13 with commit e800654e85b5b27966fc6493201f5f8cf658beb6 and fixed in 6.18 with commit 23a5b9b12de9dcd15ebae4f1abc8814ec1c51ab0 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-68215 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/f5eb91f876ebecbcd90f9edcaea98dcb354603b3 https://git.kernel.org/stable/c/765236f2c4fbba7650436b71a0e350500e9ec15f https://git.kernel.org/stable/c/23a5b9b12de9dcd15ebae4f1abc8814ec1c51ab0