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 6CD912E975E for ; Wed, 6 May 2026 11:32:07 +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=1778067127; cv=none; b=biS7Q/YtYDl2/yiy4ck9pdLzVL4kbpwgkYrpe1Y7qU/Lwo/hqylyBo8uia9v78lUgWhNaQHG75q7xRPFXsPXifBR6qBV4ze+JwJ5Dem3nBNi4UwZJgLn0BgzSOeVI8W+Y3cYD7RpOTUCsEWEfOmNMGHqp8pU5E9KafzREapIddk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067127; c=relaxed/simple; bh=H4hA2dvVWc76DMSCb6g+0wDd9AgEWY1tQwpTpTwgQQM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jGGX5PjYbmAzfhrqo1FjFRNRsWyVVGJLKwAaR+oyTnVN3+vuNLHvZvRcA6tQV2gOLxfbSvm11nQWXIdUQDiJnpJ2ZpL59mnfcoilYmPE3rtPNdURGhsnXfnowEKIlTjNbqdNCjR9owuaTqnjYqN1TAMcO7p6PTdHn0sWWwvlGi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fBy+9WoT; 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="fBy+9WoT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 032C7C2BCB8; Wed, 6 May 2026 11:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067127; bh=H4hA2dvVWc76DMSCb6g+0wDd9AgEWY1tQwpTpTwgQQM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=fBy+9WoTJgrhHr4MEyAgTaJCO5xP82RV2gX6saqp7kbxWMOaKInErr2auMkURo33L vSq9vq3nGL+KNsN+w7PbDyu/n7+7GialLgdjMnOZ+gZCeu0BpnrGewsDcA3d2U2jOV ndwGrEDyCGorvI4irYOuVEDfSYv4olOlkuhJN5CU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43199: net/mlx5e: Fix "scheduling while atomic" in IPsec MAC address query Date: Wed, 6 May 2026 13:28:35 +0200 Message-ID: <2026050645-CVE-2026-43199-6376@gregkh> X-Mailer: git-send-email 2.54.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=3398; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eCnD9Gqlze3/88djOgzZeY70GRiOnO0/69LOQEm6C+g=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VTdembjAnFtUQm535gT+befqbe6JRR1NZGGvvvWz/ 7iUeMDLjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIsh7DgplSJ7fGC/E/qKkP fb21xfWP5p72CwwLdvXNUhFeE/XR7ObmW6GWR147vuUNBgA= 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: Fix "scheduling while atomic" in IPsec MAC address query Fix a "scheduling while atomic" bug in mlx5e_ipsec_init_macs() by replacing mlx5_query_mac_address() with ether_addr_copy() to get the local MAC address directly from netdev->dev_addr. The issue occurs because mlx5_query_mac_address() queries the hardware which involves mlx5_cmd_exec() that can sleep, but it is called from the mlx5e_ipsec_handle_event workqueue which runs in atomic context. The MAC address is already available in netdev->dev_addr, so no need to query hardware. This avoids the sleeping call and resolves the bug. Call trace: BUG: scheduling while atomic: kworker/u112:2/69344/0x00000200 __schedule+0x7ab/0xa20 schedule+0x1c/0xb0 schedule_timeout+0x6e/0xf0 __wait_for_common+0x91/0x1b0 cmd_exec+0xa85/0xff0 [mlx5_core] mlx5_cmd_exec+0x1f/0x50 [mlx5_core] mlx5_query_nic_vport_mac_address+0x7b/0xd0 [mlx5_core] mlx5_query_mac_address+0x19/0x30 [mlx5_core] mlx5e_ipsec_init_macs+0xc1/0x720 [mlx5_core] mlx5e_ipsec_build_accel_xfrm_attrs+0x422/0x670 [mlx5_core] mlx5e_ipsec_handle_event+0x2b9/0x460 [mlx5_core] process_one_work+0x178/0x2e0 worker_thread+0x2ea/0x430 The Linux kernel CVE team has assigned CVE-2026-43199 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit cee137a634318bfbda18ee5af45d300153b57fa5 and fixed in 6.12.75 with commit e1407fb7c337373dfaaae2445d828b0b9ae26a29 Issue introduced in 6.2 with commit cee137a634318bfbda18ee5af45d300153b57fa5 and fixed in 6.18.16 with commit 57957bc7f1865778ec9b1618e15515feb6df7eb4 Issue introduced in 6.2 with commit cee137a634318bfbda18ee5af45d300153b57fa5 and fixed in 6.19.6 with commit 546de94e41e92e1f7dc6213615fb7c794d05db98 Issue introduced in 6.2 with commit cee137a634318bfbda18ee5af45d300153b57fa5 and fixed in 7.0 with commit 859380694f434597407632c29f30fdb5e763e6cc 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-43199 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_accel/ipsec.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/e1407fb7c337373dfaaae2445d828b0b9ae26a29 https://git.kernel.org/stable/c/57957bc7f1865778ec9b1618e15515feb6df7eb4 https://git.kernel.org/stable/c/546de94e41e92e1f7dc6213615fb7c794d05db98 https://git.kernel.org/stable/c/859380694f434597407632c29f30fdb5e763e6cc