Skip to contentSkip to conversation

CVE-2023-53058: net/mlx5: E-Switch, Fix an Oops in error handling code

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 2, 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: E-Switch, Fix an Oops in error handling code

The error handling dereferences "vport". There is nothing we can do if it is an error pointer except returning the error code.

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

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

	Issue introduced in 5.8 with commit 133dcfc577eaec6538db4ebd8b9205b361f59018 and fixed in 5.10.177 with commit 5eadc80328298ef7beaaf0cd96791667d3b485ca
	Issue introduced in 5.8 with commit 133dcfc577eaec6538db4ebd8b9205b361f59018 and fixed in 5.15.105 with commit 388188fb58bef9e7f3ca4f8970f03d493b66909f
	Issue introduced in 5.8 with commit 133dcfc577eaec6538db4ebd8b9205b361f59018 and fixed in 6.1.22 with commit c4c977935b2fc60084b3735737d17a06e7ba1bd0
	Issue introduced in 5.8 with commit 133dcfc577eaec6538db4ebd8b9205b361f59018 and fixed in 6.2.9 with commit 1a9853a7437a22fd849347008fb3c85087906b56
	Issue introduced in 5.8 with commit 133dcfc577eaec6538db4ebd8b9205b361f59018 and fixed in 6.3 with commit 640fcdbcf27fc62de9223f958ceb4e897a00e791

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

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/esw/acl/ingress_ofld.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/5eadc80328298ef7beaaf0cd96791667d3b485ca
	https://git.kernel.org/stable/c/388188fb58bef9e7f3ca4f8970f03d493b66909f
	https://git.kernel.org/stable/c/c4c977935b2fc60084b3735737d17a06e7ba1bd0
	https://git.kernel.org/stable/c/1a9853a7437a22fd849347008fb3c85087906b56
	https://git.kernel.org/stable/c/640fcdbcf27fc62de9223f958ceb4e897a00e791