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 2BFE630FC31 for ; Tue, 16 Sep 2025 13:09:09 +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=1758028150; cv=none; b=K0x6qDcUqxO0sd/niOd88Xdie4wv2iJTWHkDx4V2Elgs3obpA2q+oF6wbp4d7AOMtCvPgtC3hnyo8yT+nQPZdolfF2I/hPMX/uoz3IYbapE0laYrD+2VGeBX2a8R88HJoZyvDfOokZ+4n6GHI6zUuO01rztUzpdbD2PjtexSPEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758028150; c=relaxed/simple; bh=Jw/Z3dsvFKfDDFgqqJ5bQbLKzMUxNm5i82W+a0l39LI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p3rBIcXRg8WujF9K5es7E5lJKTPI7+iFf398dxvJAOt8Ya/2XJZxt4ZpqKwpm8q+JwE3gXvTEicGBI8u128iBdw79YGAnWImwJOf69aEKirhtrs3WetmG37/sWr3CS87ikRDBf3g0ZBgO5PKjrTh7sC4mPjFe3ZOxUZZqzxWYQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aLkm+0rS; 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="aLkm+0rS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DB78C4CEF0; Tue, 16 Sep 2025 13:09:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758028149; bh=Jw/Z3dsvFKfDDFgqqJ5bQbLKzMUxNm5i82W+a0l39LI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aLkm+0rSwi2oEIcj/1eoPvIZ3A0PMgAwFUBG6opc6WLOamSyKcUXNoWC56jaGHPyV sldssqF9dRmYs6vpvfMC1WRfffMJx09D3vxNo+l3bd6BISdSsQv3z9hlnzHIqOT3o9 PnlvDKQwzEXfKUielFJ0mB/yyWm0q7yaImtBdx8s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39832: net/mlx5: Fix lockdep assertion on sync reset unload event Date: Tue, 16 Sep 2025 15:09:00 +0200 Message-ID: <2025091657-CVE-2025-39832-6bbc@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=3168; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=32qcobU7QqRhChLqUcBjlpXVElAIXQ7ZK/7gl2adjP4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknEzN9Q2uYm28VSCRsmaNp7WltO3HisXfVvF3PbtVOY rCYLBrVEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMpsWKYn+gkbFRkk5hrGpmp tPHH+bMvc70WMCy43nYsq1jUtWF122yeK58fTuLyV0oFAA== 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: net/mlx5: Fix lockdep assertion on sync reset unload event Fix lockdep assertion triggered during sync reset unload event. When the sync reset flow is initiated using the devlink reload fw_activate option, the PF already holds the devlink lock while handling unload event. In this case, delegate sync reset unload event handling back to the devlink callback process to avoid double-locking and resolve the lockdep warning. Kernel log: WARNING: CPU: 9 PID: 1578 at devl_assert_locked+0x31/0x40 [...] Call Trace: mlx5_unload_one_devl_locked+0x2c/0xc0 [mlx5_core] mlx5_sync_reset_unload_event+0xaf/0x2f0 [mlx5_core] process_one_work+0x222/0x640 worker_thread+0x199/0x350 kthread+0x10b/0x230 ? __pfx_worker_thread+0x10/0x10 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x8e/0x100 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 The Linux kernel CVE team has assigned CVE-2025-39832 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 7a9770f1bfeaeddf5afabd3244e2c4c4966be37d and fixed in 6.6.104 with commit ddac9d0fe2493dd550cbfc75eeaf31e9b6dac959 Issue introduced in 6.5 with commit 7a9770f1bfeaeddf5afabd3244e2c4c4966be37d and fixed in 6.12.45 with commit 0c87dba9ccd3801d3b503f0b4fd41be343af4f06 Issue introduced in 6.5 with commit 7a9770f1bfeaeddf5afabd3244e2c4c4966be37d and fixed in 6.16.5 with commit 06d897148e79638651800d851a69547b56b4be2e Issue introduced in 6.5 with commit 7a9770f1bfeaeddf5afabd3244e2c4c4966be37d and fixed in 6.17-rc4 with commit 902a8bc23a24882200f57cadc270e15a2cfaf2bb 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-39832 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/mellanox/mlx5/core/devlink.c drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c drivers/net/ethernet/mellanox/mlx5/core/fw_reset.h 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/ddac9d0fe2493dd550cbfc75eeaf31e9b6dac959 https://git.kernel.org/stable/c/0c87dba9ccd3801d3b503f0b4fd41be343af4f06 https://git.kernel.org/stable/c/06d897148e79638651800d851a69547b56b4be2e https://git.kernel.org/stable/c/902a8bc23a24882200f57cadc270e15a2cfaf2bb