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 CD0BD26E6F6 for ; Sat, 4 Oct 2025 15:18: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=1759591088; cv=none; b=FWAO4NCzZdtuKuXjR9aWmFVIK6QQPQMNhxpFv3S6bxH4hU7R0OGO57D3WRB2GCDVnWs3QMRzKni+/Yv9GCVTy59mprSCeSQGokK22qtfUU/Z39kFb14OeXXzOafJe6Nh6X+cHDTRB+Qvc2XA1XPfrqX9/8KaQKsTN3fwhy0LP/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591088; c=relaxed/simple; bh=BsnXHRRtOpsBPBVOKO71qKmJzttC5fwaz9zSi+6oLwo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G51yuIaLt24WzeT9g3yBfbg1c7Bq2u/fgf5REkvR7U+kYLUMXQMYuEZcmerf907NBT7kJSxSPm4Dna/sI2PniFqOdFkmMwOSbLXYt/jMj1zYWdtsZXzOXvdzma06AEarDd+NvAmFLM6E3UUTDX01JqeFCv5Tlp6UAGAlaDExjRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PUD3+6dD; 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="PUD3+6dD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54C43C4CEF1; Sat, 4 Oct 2025 15:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591088; bh=BsnXHRRtOpsBPBVOKO71qKmJzttC5fwaz9zSi+6oLwo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PUD3+6dDIYrDcZzTUkW1w5UNQn5AAglTOm9zOmtizjZP+llhHgQgKuvLrqNypthHX 4lzkuIpLy7NFsZjjNM3pwsvADDuPECY2V69VcSrXJEWf7ttz2nH+BAmKZ2/xiELm5F xce7D4GOdkCHVA1vsO7/VG4R07+zxi3S5tchzNPc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53546: net/mlx5: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx Date: Sat, 4 Oct 2025 17:17:00 +0200 Message-ID: <2025100445-CVE-2023-53546-a432@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=2891; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yZkrPeLZX73Ln4UHs+DT1i18CyOFuZwEB7aOqXCeF54=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPreI0Lpvx5sXYHDvu8mzKF1OhRT7cbzrVcmwdQ5nLJ wgEV7B1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERUdjHMd/1qlPI9Yk2IwP6F S3Vj5Y/Kfe80ZZgrVNd7darty7ATuQfDs+5818h7vtkTAA== 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: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx when mlx5_cmd_exec failed in mlx5dr_cmd_create_reformat_ctx, the memory pointed by 'in' is not released, which will cause memory leak. Move memory release after mlx5_cmd_exec. The Linux kernel CVE team has assigned CVE-2023-53546 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 1d9186476e12c85dc81a0f01f5c614a9683af7f2 and fixed in 5.4.253 with commit 800d8c96bf997da5eb76ccf8d88795c4231c83fb Issue introduced in 5.4 with commit 1d9186476e12c85dc81a0f01f5c614a9683af7f2 and fixed in 5.10.190 with commit 165159854757dbae0dfd1812b27051da35aa6223 Issue introduced in 5.4 with commit 1d9186476e12c85dc81a0f01f5c614a9683af7f2 and fixed in 5.15.126 with commit 00cecb0a8f9e7a21754d5ad85813ab6b47b3308f Issue introduced in 5.4 with commit 1d9186476e12c85dc81a0f01f5c614a9683af7f2 and fixed in 6.1.45 with commit 3169c3854397f3070a63b1b772db16dcb8cba7b4 Issue introduced in 5.4 with commit 1d9186476e12c85dc81a0f01f5c614a9683af7f2 and fixed in 6.4.10 with commit 622d71d99124e69f7bf2e2b7a89f5f444a24d235 Issue introduced in 5.4 with commit 1d9186476e12c85dc81a0f01f5c614a9683af7f2 and fixed in 6.5 with commit 5dd77585dd9d0e03dd1bceb95f0269a7eaf6b936 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-53546 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/steering/dr_cmd.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/800d8c96bf997da5eb76ccf8d88795c4231c83fb https://git.kernel.org/stable/c/165159854757dbae0dfd1812b27051da35aa6223 https://git.kernel.org/stable/c/00cecb0a8f9e7a21754d5ad85813ab6b47b3308f https://git.kernel.org/stable/c/3169c3854397f3070a63b1b772db16dcb8cba7b4 https://git.kernel.org/stable/c/622d71d99124e69f7bf2e2b7a89f5f444a24d235 https://git.kernel.org/stable/c/5dd77585dd9d0e03dd1bceb95f0269a7eaf6b936