Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 CD70513A258 for ; Sun, 19 Jul 2026 15:46:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784476011; cv=none; b=DJPAh5QNchYiXGiL4Jb0fZ+XdaRrU3mp7aqk35yySqTZ2NdHoSsnqrgwAuG+kwQfWyfeqD/BmV2uojE9KlUkeiV9zQPaBrcMrRMpK1XL2EaSmtGV7vuUtXTnmWgmcpZSLyZH/AIeSaXC5JjqW0OIJC81PllMxOmPSBd3Vo+qSD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784476011; c=relaxed/simple; bh=JiOgpZVjda6sYwT1oJXqs1KYfXYSug+qci0yk8BXK/Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e9d5lC7CWsFdYEH3z8xi7wJ7QQHGb5EllukhuFIW+4WPpyJDhYqFH++VmjIf5AuhkNZyLTvk9mzddKBDZgzNs349MjyLMyXGjhPz5ZKW7UEP0DeVtuxr2Q3B93kHRO1u/9boeYu5879CNpJJH1iy341EQHnQKFxKZ4Dlhbcr8S0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I8VadInU; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="I8VadInU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AF421F000E9; Sun, 19 Jul 2026 15:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784476010; bh=LDyNtnRvk2RHXOJbb+rm2Gagx74fUyyS8LVYcXynuqU=; h=From:To:Cc:Subject:Date:Reply-To; b=I8VadInUXRifLUHH3TH9MXSYXI4qfbkeb3Gpota+VbDIjlYI7reDcgmlG+sWP6wyx FX0tdbHu/n3jpABdtF9eXBRThkEFwXBtw+co4VE97Kn0S/x2C2F0EOeaJahU+H+5eW 6hWWdPwmFXWsqBctgQ6rLLu9H0P4VAD5TQRZMs40= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64162: idpf: fix read_dev_clk_lock spinlock init in idpf_ptp_init() Date: Sun, 19 Jul 2026 17:40:24 +0200 Message-ID: <2026071934-CVE-2026-64162-9107@gregkh> X-Mailer: git-send-email 2.55.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=3981; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T1bd7sDqhTNa4vLOgjVpFnUwKrHmEy4XbFsTJwYlPkY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkx76uU/wSpvaudF3JTjmPOEY05LidXLf81N3rftsg7i 0OzUpx9O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiVQ8ZFvQXTzn2sC/U8Qv7 UePwl94LM//rijAsmFCdqbmqKFSf3+0Fw22uyOn8FtWuAA== 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: idpf: fix read_dev_clk_lock spinlock init in idpf_ptp_init() In idpf_ptp_init(), read_dev_clk_lock is initialized after ptp_schedule_worker() had already been called (and after idpf_ptp_settime64() could reach the lock). The PTP aux worker fires immediately upon scheduling and can call into idpf_ptp_read_src_clk_reg_direct(), which takes spin_lock(&ptp->read_dev_clk_lock) on an uninitialized lock, triggering the lockdep "non-static key" warning: [12973.796587] idpf 0000:83:00.0: Device HW Reset initiated [12974.094507] INFO: trying to register non-static key. ... [12974.097208] Call Trace: [12974.097213] [12974.097218] dump_stack_lvl+0x93/0xe0 [12974.097234] register_lock_class+0x4c4/0x4e0 [12974.097249] ? __lock_acquire+0x427/0x2290 [12974.097259] __lock_acquire+0x98/0x2290 [12974.097272] lock_acquire+0xc6/0x310 [12974.097281] ? idpf_ptp_read_src_clk_reg+0xb7/0x150 [idpf] [12974.097311] ? lockdep_hardirqs_on_prepare+0xde/0x190 [12974.097318] ? finish_task_switch.isra.0+0xd2/0x350 [12974.097330] ? __pfx_ptp_aux_kworker+0x10/0x10 [ptp] [12974.097343] _raw_spin_lock+0x30/0x40 [12974.097353] ? idpf_ptp_read_src_clk_reg+0xb7/0x150 [idpf] [12974.097373] idpf_ptp_read_src_clk_reg+0xb7/0x150 [idpf] [12974.097391] ? kthread_worker_fn+0x88/0x3d0 [12974.097404] ? kthread_worker_fn+0x4e/0x3d0 [12974.097411] idpf_ptp_update_cached_phctime+0x26/0x120 [idpf] [12974.097428] ? _raw_spin_unlock_irq+0x28/0x50 [12974.097436] idpf_ptp_do_aux_work+0x15/0x20 [idpf] [12974.097454] ptp_aux_kworker+0x20/0x40 [ptp] [12974.097464] kthread_worker_fn+0xd5/0x3d0 [12974.097474] ? __pfx_kthread_worker_fn+0x10/0x10 [12974.097482] kthread+0xf4/0x130 [12974.097489] ? __pfx_kthread+0x10/0x10 [12974.097498] ret_from_fork+0x32c/0x410 [12974.097512] ? __pfx_kthread+0x10/0x10 [12974.097519] ret_from_fork_asm+0x1a/0x30 [12974.097540] Move the call to spin_lock_init() up a bit to make sure read_dev_clk_lock is not touched before it's been initialized. The Linux kernel CVE team has assigned CVE-2026-64162 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 5cb8805d2366b20ee4d7afff586d8acf17649330 and fixed in 6.18.34 with commit eb5991d4c8ba2e8153dfcda3e66a9608377b7dce Issue introduced in 6.16 with commit 5cb8805d2366b20ee4d7afff586d8acf17649330 and fixed in 7.0.11 with commit 3122d70b7c0101d897fb795658a7b93f854935f2 Issue introduced in 6.16 with commit 5cb8805d2366b20ee4d7afff586d8acf17649330 and fixed in 7.1 with commit da4f76b6a84ede14a71282ef841768299ead0221 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-64162 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/idpf/idpf_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/eb5991d4c8ba2e8153dfcda3e66a9608377b7dce https://git.kernel.org/stable/c/3122d70b7c0101d897fb795658a7b93f854935f2 https://git.kernel.org/stable/c/da4f76b6a84ede14a71282ef841768299ead0221