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 C965E28C2BF for ; Tue, 30 Dec 2025 12:10:26 +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=1767096626; cv=none; b=BKhkawIwCyHydrJnpoY9sP6I6u0eSq4pNiRzoh4ZLQyzeGgwOfy49ucSHy/WfCQ+Ezp0Vlusg4tuF8vbpi6s1anUKWzMDB7bp7zIMddaEmufirjefJxu9MomScFiWKUp+cKviicxX9Y/YzxE9YYhlqHHQZkbyZQPwNQc/J+9Fao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096626; c=relaxed/simple; bh=VxdRVkPO3Mh7ZrTaacBv51u133sjR02z8LMixTjNAIw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gaBHpS7McLRASrUHJuPMZFlKp1yVR3WfDMy1h6qr4AJyR/ZpPBtzUmJq+rAKN/pM/sKG6q7UtktU4YX7uwb+HbAmsPL9yCdOjL0KQfYqkzEHC/a5L/KXe1mfwPmhpycorStDQ2EXklhukaxQjDBbd6YAt5UAn+xMbpkyJygCJ2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yS5TPQC0; 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="yS5TPQC0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05BDDC4CEFB; Tue, 30 Dec 2025 12:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096626; bh=VxdRVkPO3Mh7ZrTaacBv51u133sjR02z8LMixTjNAIw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=yS5TPQC0rAsGVMJk95M7/trUHHtK/LcN0CQpR5QzhHPqo7iBpTg3YZg3NtV+Xjyds g8LVtTsuzgafoffRfkckNvdBMWy4quHkTpepW79ZI+V0gCpwX1F48dg6pHEKQjLSyk mX3FIorsCYs+XmB3hW6nPyjnwgDENaauqtrMWgkI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54169: net/mlx5e: fix memory leak in mlx5e_ptp_open Date: Tue, 30 Dec 2025 13:09:37 +0100 Message-ID: <2025123020-CVE-2023-54169-21bb@gregkh> X-Mailer: git-send-email 2.52.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=2420; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iSYO/tQKR8mUYBX9UO6N7wnGKtAqiqq2CLNfOqxg0t8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBBz5c+M1xycc84pHZtD7dZz5awcvTOb0Dp7Vz75Cb9 McoOl+/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbiX8ywoIl9m9S1k/M9TuYt 57uSsONT1tRjvQzzc7Zvy43OMeZLT0x9U3vyyvkrUeefAgA= 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 memory leak in mlx5e_ptp_open When kvzalloc_node or kvzalloc failed in mlx5e_ptp_open, the memory pointed by "c" or "cparams" is not freed, which can lead to a memory leak. Fix by freeing the array in the error path. The Linux kernel CVE team has assigned CVE-2023-54169 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 145e5637d941daec2e8d1ff21676cbf1aa62cf4d and fixed in 5.15.121 with commit 4892e1e548b5bd6524c1c89df06e4849df26fc20 Issue introduced in 5.11 with commit 145e5637d941daec2e8d1ff21676cbf1aa62cf4d and fixed in 6.1.40 with commit 83a8f7337a14cdb215c76a8f4cf3f3be8b59177d Issue introduced in 5.11 with commit 145e5637d941daec2e8d1ff21676cbf1aa62cf4d and fixed in 6.4.5 with commit 7035e3ae600c4e9cb3dc220c24dd77112ddff8b1 Issue introduced in 5.11 with commit 145e5637d941daec2e8d1ff21676cbf1aa62cf4d and fixed in 6.5 with commit d543b649ffe58a0cb4b6948b3305069c5980a1fa 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-54169 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/ptp.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/4892e1e548b5bd6524c1c89df06e4849df26fc20 https://git.kernel.org/stable/c/83a8f7337a14cdb215c76a8f4cf3f3be8b59177d https://git.kernel.org/stable/c/7035e3ae600c4e9cb3dc220c24dd77112ddff8b1 https://git.kernel.org/stable/c/d543b649ffe58a0cb4b6948b3305069c5980a1fa