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 6C43A3859EC for ; Fri, 1 May 2026 14:19:54 +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=1777645194; cv=none; b=cxqKiq8aBqMTR7NKKrMGLk2vs3Rz5hLbh5FDIiYhcM7+fwdxf6hxkWs2Fd18U5i+kXY4jSK4kWC7+wDN+alw/kZ4DxHuPCk75YgKNjBZW+kt+w/ekfNzKublN4DgmMkiKWmZJxUY6U4OL8AeTovwbZXWun3nw9qBG+CPn4EQoE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645194; c=relaxed/simple; bh=LYZUaONXu4f7ebX//CuwdVrERcSUUjXj67leQxeJAyI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bhQkkuZh4FncfKxjt7uV7965lKO2TdqsJM7sYfNHB4jgBrv+QIDxI/itjw63caRveIobyUIDBwCIAmvocs8Y/1T9IiQKMhASTwlDzgj8Yhs1Hbd6MrcXkcU2dMzLFFAyAQNtjJfXW24mF8KkuNakNkiA4ikYm27xyaN8IZo/tjo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TbB1DuuJ; 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="TbB1DuuJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0299C2BCB9; Fri, 1 May 2026 14:19:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645194; bh=LYZUaONXu4f7ebX//CuwdVrERcSUUjXj67leQxeJAyI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=TbB1DuuJ4xu5URJX6q3GQc3dCy6pvNjF5gjDHUCMRMrhiho43poSkUoM0NhCFoFiK 3XZyR3oSojatAfocgWRfccyjKST2xIn+M8aVWpizQZlpBUTvknlBiPRuI2L22Bxo14 oSzlJjaTAB2TMe9OT5lM9p3fon0bdH3q1ipzgqnY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43013: net/mlx5: lag: Check for LAG device before creating debugfs Date: Fri, 1 May 2026 16:15:46 +0200 Message-ID: <2026050155-CVE-2026-43013-be27@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=3304; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ISiAL+bIvpuqCGzq2vtlIxE/pQW43skEuyAnRldALnM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftsY/cHTom6Do+dfBOPEJQ6s/w9G/a8+cMC4u7Hyzp GKntdOSjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIrD8M8wwLQ21emJ5ofqTN bcVnN/HN4eyGGwwLpjEVtZo8f3Hy6pGXKSqya2x+lhgVAAA= 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: lag: Check for LAG device before creating debugfs __mlx5_lag_dev_add_mdev() may return 0 (success) even when an error occurs that is handled gracefully. Consequently, the initialization flow proceeds to call mlx5_ldev_add_debugfs() even when there is no valid LAG context. mlx5_ldev_add_debugfs() blindly created the debugfs directory and attributes. This exposed interfaces (like the members file) that rely on a valid ldev pointer, leading to potential NULL pointer dereferences if accessed when ldev is NULL. Add a check to verify that mlx5_lag_dev(dev) returns a valid pointer before attempting to create the debugfs entries. The Linux kernel CVE team has assigned CVE-2026-43013 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 7f46a0b7327ae261f9981888708dbca22c283900 and fixed in 6.1.168 with commit a3db46d5f4df92630a96f7bc77b60e75c2353e06 Issue introduced in 5.19 with commit 7f46a0b7327ae261f9981888708dbca22c283900 and fixed in 6.6.134 with commit 7129632cab3e4d23510b21930aa73b8d97a859f5 Issue introduced in 5.19 with commit 7f46a0b7327ae261f9981888708dbca22c283900 and fixed in 6.12.81 with commit cfa774e6c920c81e700327bf10db8cb50d5db456 Issue introduced in 5.19 with commit 7f46a0b7327ae261f9981888708dbca22c283900 and fixed in 6.18.22 with commit c53cf44588a93000f71817a6bb87a66353c48dee Issue introduced in 5.19 with commit 7f46a0b7327ae261f9981888708dbca22c283900 and fixed in 6.19.12 with commit 89c65f2fcd8801365b410f40a427cbcd7f4c28e9 Issue introduced in 5.19 with commit 7f46a0b7327ae261f9981888708dbca22c283900 and fixed in 7.0 with commit bf16bca6653679d8a514d6c1c5a2c67065033f14 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-43013 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/lag/debugfs.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/a3db46d5f4df92630a96f7bc77b60e75c2353e06 https://git.kernel.org/stable/c/7129632cab3e4d23510b21930aa73b8d97a859f5 https://git.kernel.org/stable/c/cfa774e6c920c81e700327bf10db8cb50d5db456 https://git.kernel.org/stable/c/c53cf44588a93000f71817a6bb87a66353c48dee https://git.kernel.org/stable/c/89c65f2fcd8801365b410f40a427cbcd7f4c28e9 https://git.kernel.org/stable/c/bf16bca6653679d8a514d6c1c5a2c67065033f14