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 D25D83FF89B for ; Thu, 3 Sep 2026 08:22:22 +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=1788423744; cv=none; b=gvtn9FR3lfBVJX1lcF99FYmf29nW0cL03W0fylHG6wHUog+7qAuy0EBVxtRPD7pqqxSexCmQxbQZoxV3O2SwOIYl8WRAUzwn+DSbZyzFW3WO2QjgTl4xInwA/Bv9eBePu4UJxRcUUnTOLIBY27rlG7b6JpzfUInAi7nJTYmG9W8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788423744; c=relaxed/simple; bh=h79V4rxklJgiTHV89wBFWBHZs/+nEYSycri2B0OeGtE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WLMmOvpUJtwqzJxJ125/q+zdt+Wtm5luMo6gOJgN0/eWCI7ExgOqGAGmx+3q+QJCyaQDY002wSBhbHSHSlV8eWlONI9rYHajL5FEAhyYzxdIskDIkoiJv4u6TTvXnbMIO75BKHiLKskprBdtq1l67yJhh0Q+BfRYDlNrpp3x5Iw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WUIEbcsd; 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="WUIEbcsd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C37021F000E9; Thu, 3 Sep 2026 08:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788423742; bh=ZIFoqvxPcG9OkufT8Jz0VhU4tAdX0uiqG6vbPf+pvAM=; h=From:To:Cc:Subject:Date:Reply-To; b=WUIEbcsdX9eb6QI5boouNuImVnwrsU5z7yrYTsAtoeroacMtwFpU1xOh+zFPE+1jn Ba5nQskmR8aGTVvPF4lDOIwfRoNIggi8rM3aPTuIwFesIMfJg0oDb09xSzLkbxAFA/ I9qG5blNaXqSZz7Z1oNUZu78HLbRqgCxBxYYQJok= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80739: net/mlx5e: TC, Check if flow is PEER before acquiring devcom lock Date: Thu, 3 Sep 2026 10:22:08 +0200 Message-ID: <2026090300-CVE-2026-80739-fce8@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=4050; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HcomjfadnApNlPagqGyCsgn1qTRlmp2IcaFRfPQlHWg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkz9TTi94s+vHvt2/6jjrXNCvH6vruk9j7NmLBtJ1NI0 d3kdabxHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRxBCGBWdv/P1js3fD04IL EoLe56/1PJ9i+I9hnuGz/7H6vPqxi0JNfCKjBO+82XH8BwA= 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/mlx5e: TC, Check if flow is PEER before acquiring devcom lock In case __mlx5e_add_fdb_flow() fails in lower levels, the flow is deleted via mlx5e_tc_del_flow(), and mlx5e_tc_del_flow() is acquiring ESW devcom lock without condition. In addition, in case of peer_flow, __mlx5e_add_fdb_flow() is called while holding ESW devcom comp lock. This results in an AA deadlock. To fix this, introduce a new PEER flag that is set on flows created as peer flows (the duplicate flows on peer devices), and check it in mlx5e_tc_del_flow() before acquiring ESW devcom lock. Lockdep splat: ============================================ WARNING: possible recursive locking detected ============================================ Possible unsafe locking scenario: CPU0 ---- lock(&comp->lock_key#2); lock(&comp->lock_key#2); *** DEADLOCK *** Call Trace: dump_stack_lvl+0x69/0xa0 print_deadlock_bug.cold+0xbd/0xca __lock_acquire+0x1671/0x2ec0 lock_acquire+0x10e/0x2e0 down_read+0x95/0x430 mlx5_devcom_for_each_peer_begin+0x4e/0xe0 [mlx5_core] mlx5e_tc_del_flow+0x11d/0xa70 [mlx5_core] mlx5e_flow_put+0x99/0x100 [mlx5_core] __mlx5e_add_fdb_flow+0x409/0xf00 [mlx5_core] mlx5e_configure_flower+0x2a86/0x4100 [mlx5_core] mlx5e_rep_setup_tc_cls_flower+0x12f/0x1b0 [mlx5_core] mlx5e_rep_setup_tc_cb+0x153/0x750 [mlx5_core] tc_setup_cb_add+0x1dc/0x470 fl_change+0x2f4d/0x626d [cls_flower] tc_new_tfilter+0x79b/0x2310 rtnetlink_rcv_msg+0x778/0xad0 do_syscall_64+0x70/0x960 entry_SYSCALL_64_after_hwframe+0x4b/0x53 The Linux kernel CVE team has assigned CVE-2026-80739 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d and fixed in 6.6.152 with commit 607adbda01053abf5f93e322fe39325da8828cb8 Issue introduced in 5.0 with commit 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d and fixed in 6.12.104 with commit 585df8643081e6f616579bc52cd49ac823a57c82 Issue introduced in 5.0 with commit 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d and fixed in 6.18.45 with commit ff9e7d5e3500be389ce7a0e46db3a77149830bc9 Issue introduced in 5.0 with commit 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d and fixed in 7.1.9 with commit 7165fe321c61ec138850c02f030f274797761f5f Issue introduced in 5.0 with commit 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d and fixed in 7.2 with commit 6ddfba2ea98db21b001e0e5c472499156224650c 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-80739 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/en/tc_priv.h drivers/net/ethernet/mellanox/mlx5/core/en_tc.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/607adbda01053abf5f93e322fe39325da8828cb8 https://git.kernel.org/stable/c/585df8643081e6f616579bc52cd49ac823a57c82 https://git.kernel.org/stable/c/ff9e7d5e3500be389ce7a0e46db3a77149830bc9 https://git.kernel.org/stable/c/7165fe321c61ec138850c02f030f274797761f5f https://git.kernel.org/stable/c/6ddfba2ea98db21b001e0e5c472499156224650c