Skip to contentSkip to conversation

CVE-2024-50172: RDMA/bnxt_re: Fix a possible memory leak

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 7, 2024

lore
Share & tools
lore
#0 lore raw

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

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

RDMA/bnxt_re: Fix a possible memory leak

In bnxt_re_setup_chip_ctx() when bnxt_qplib_map_db_bar() fails driver is not freeing the memory allocated for "rdev->chip_ctx".

The Linux kernel CVE team has assigned CVE-2024-50172 to this issue.

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

	Issue introduced in 6.5 with commit 0ac20faf5d83 and fixed in 6.6.59 with commit 73e04a6114e0
	Issue introduced in 6.5 with commit 0ac20faf5d83 and fixed in 6.11.6 with commit 595fa9b17201
	Issue introduced in 6.5 with commit 0ac20faf5d83 and fixed in 6.12-rc4 with commit 3fc5410f225d

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-2024-50172

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/infiniband/hw/bnxt_re/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/73e04a6114e08b5eb10e589e12b680955accb376
	https://git.kernel.org/stable/c/595fa9b17201028d35f92d450fc0ecda873fe469
	https://git.kernel.org/stable/c/3fc5410f225d1651580a4aeb7c72f55e28673b53