blob: 99d1e814715072e0e2caf84fc08666a4b282f443 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2024-50172: RDMA/bnxt_re: Fix a possible memory leak
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 0ac20faf5d837b59fb4c041ea320932ed47fd67f and fixed in 6.6.59 with commit 73e04a6114e08b5eb10e589e12b680955accb376
Issue introduced in 6.5 with commit 0ac20faf5d837b59fb4c041ea320932ed47fd67f and fixed in 6.11.6 with commit 595fa9b17201028d35f92d450fc0ecda873fe469
Issue introduced in 6.5 with commit 0ac20faf5d837b59fb4c041ea320932ed47fd67f and fixed in 6.12 with commit 3fc5410f225d1651580a4aeb7c72f55e28673b53
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