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 41D302E7166 for ; Wed, 1 Oct 2025 11:57:08 +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=1759319829; cv=none; b=Lq2+l2+F3NEjfHBY0sl0tRMFb2qnZmxjGDbrG9JCdfc51nJ4p3N/v41AU7bcWmco1GqFd31dsDDNlEXhtfYRYJsRBfgLX4U1+aZnHoimxEvVCM4y3h5aABi8jJVJiw1xvVoelaun6H/8tqRAlnAj9hbHFe5QjcMBxVS81ta1y3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319829; c=relaxed/simple; bh=2i3eOXYHBDDdygBnUnAwyr1lUiALuphIuVtLQyF97tY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kXLYoWhdiiQcKu5b+zJc82FB7Cg2aR1zzl/gXue98hlG7J3/DvVRiDRa9Kyy3zARY6Hb42KAtyKo0ZDeYBVNGdhH8335OLCbtMNZeRGSGkrmuE0lieI69YLw7XeqDyjmGj62uqkisbvUiGGnmy/3xR42lGQKr4dGYTffUlwCZ3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ry3zu1rd; 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="ry3zu1rd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56CB0C4CEF4; Wed, 1 Oct 2025 11:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319828; bh=2i3eOXYHBDDdygBnUnAwyr1lUiALuphIuVtLQyF97tY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ry3zu1rd+YQ9sNzYaJvlMl1x6ml8ekv3NlZvb36FNa2vKal9G/Woo8/7c6SOFvZE6 ie2HF5cBZ42+BvOGsDRohLaPxf2/Ax7O4Jjk/LmY1gzyHdgCnntCCfIgiGnSglzLXP 0+M3P8BPOCMOTXNkbYko1Y664H4krplKB4w3xpKQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53507: net/mlx5: Unregister devlink params in case interface is down Date: Wed, 1 Oct 2025 13:45:59 +0200 Message-ID: <2025100129-CVE-2023-53507-1165@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=3675; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XP9t/GUOlHm5RaaPaYOv0YijzNVYdB6GdjBooQXqmIg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RSIVstcuUBATr7baUrl7Q9UTTsb93zlkXzCsjNk6Z XrtabWAjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI2QyGuVLBPdIdN51D4tYF eh9IqdQTz/RKZZgrtuB/6oSSUgbeCQ1Zqa+PX/nhYbsCAA== 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: Unregister devlink params in case interface is down Currently, in case an interface is down, mlx5 driver doesn't unregister its devlink params, which leads to this WARN[1]. Fix it by unregistering devlink params in that case as well. [1] [ 295.244769 ] WARNING: CPU: 15 PID: 1 at net/core/devlink.c:9042 devlink_free+0x174/0x1fc [ 295.488379 ] CPU: 15 PID: 1 Comm: shutdown Tainted: G S OE 5.15.0-1017.19.3.g0677e61-bluefield #g0677e61 [ 295.509330 ] Hardware name: https://www.mellanox.com BlueField SoC/BlueField SoC, BIOS 4.2.0.12761 Jun 6 2023 [ 295.543096 ] pc : devlink_free+0x174/0x1fc [ 295.551104 ] lr : mlx5_devlink_free+0x18/0x2c [mlx5_core] [ 295.561816 ] sp : ffff80000809b850 [ 295.711155 ] Call trace: [ 295.716030 ] devlink_free+0x174/0x1fc [ 295.723346 ] mlx5_devlink_free+0x18/0x2c [mlx5_core] [ 295.733351 ] mlx5_sf_dev_remove+0x98/0xb0 [mlx5_core] [ 295.743534 ] auxiliary_bus_remove+0x2c/0x50 [ 295.751893 ] __device_release_driver+0x19c/0x280 [ 295.761120 ] device_release_driver+0x34/0x50 [ 295.769649 ] bus_remove_device+0xdc/0x170 [ 295.777656 ] device_del+0x17c/0x3a4 [ 295.784620 ] mlx5_sf_dev_remove+0x28/0xf0 [mlx5_core] [ 295.794800 ] mlx5_sf_dev_table_destroy+0x98/0x110 [mlx5_core] [ 295.806375 ] mlx5_unload+0x34/0xd0 [mlx5_core] [ 295.815339 ] mlx5_unload_one+0x70/0xe4 [mlx5_core] [ 295.824998 ] shutdown+0xb0/0xd8 [mlx5_core] [ 295.833439 ] pci_device_shutdown+0x3c/0xa0 [ 295.841651 ] device_shutdown+0x170/0x340 [ 295.849486 ] __do_sys_reboot+0x1f4/0x2a0 [ 295.857322 ] __arm64_sys_reboot+0x2c/0x40 [ 295.865329 ] invoke_syscall+0x78/0x100 [ 295.872817 ] el0_svc_common.constprop.0+0x54/0x184 [ 295.882392 ] do_el0_svc+0x30/0xac [ 295.889008 ] el0_svc+0x48/0x160 [ 295.895278 ] el0t_64_sync_handler+0xa4/0x130 [ 295.903807 ] el0t_64_sync+0x1a4/0x1a8 [ 295.911120 ] ---[ end trace 4f1d2381d00d9dce ]--- The Linux kernel CVE team has assigned CVE-2023-53507 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit fe578cbb2f053f465e19d2671a523dcd01953888 and fixed in 6.4.10 with commit 471f59b3455314f0cafacf3096453727876355a9 Issue introduced in 6.4 with commit fe578cbb2f053f465e19d2671a523dcd01953888 and fixed in 6.5 with commit 53d737dfd3d7b023fa9fa445ea3f3db0ac9da402 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-2023-53507 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/main.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/471f59b3455314f0cafacf3096453727876355a9 https://git.kernel.org/stable/c/53d737dfd3d7b023fa9fa445ea3f3db0ac9da402