Skip to contentSkip to conversation

CVE-2023-54106: net/mlx5: fix potential memory leak in mlx5e_init_rep_rx

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: fix potential memory leak in mlx5e_init_rep_rx

The memory pointed to by the priv->rx_res pointer is not freed in the error path of mlx5e_init_rep_rx, which can lead to a memory leak. Fix by freeing the memory in the error path, thereby making the error path identical to mlx5e_cleanup_rep_rx().

The Linux kernel CVE team has assigned CVE-2023-54106 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.0 with commit af8bbf7300686961f74e72e2dc10a76672603cb3 and fixed in 6.1.45 with commit 0582a3caaa3e2f7b80bcb113ad3c910eac15a63e
	Issue introduced in 6.0 with commit af8bbf7300686961f74e72e2dc10a76672603cb3 and fixed in 6.4.10 with commit c265d8c2e25546a6b7ee16d36f2bb79b6160c2c3
	Issue introduced in 6.0 with commit af8bbf7300686961f74e72e2dc10a76672603cb3 and fixed in 6.5 with commit c6cf0b6097bf1bf1b2a89b521e9ecd26b581a93a

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-54106

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_rep.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/0582a3caaa3e2f7b80bcb113ad3c910eac15a63e
	https://git.kernel.org/stable/c/c265d8c2e25546a6b7ee16d36f2bb79b6160c2c3
	https://git.kernel.org/stable/c/c6cf0b6097bf1bf1b2a89b521e9ecd26b581a93a