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 516B31E0E19 for ; Thu, 7 Nov 2024 09:36:42 +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=1730972203; cv=none; b=gibSfzY8tdcLaaYCyhJX6VGXWqhff3AveOKSNHqBr9W/5yTxTES52teedppD9sBiZu/GmzRscQ66LCFJOx1sx+mbbyc5Dvp+JWBlcsjxlrtyQu5msBarDY9+pnzbvLTeyOWUl5l9jxTcbHr1aGaeOVNy2n8tWtkYyHQzRXE7Ayo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730972203; c=relaxed/simple; bh=+nkDL9PLJR/rbCtul/PgyHFdV+WDKRD/jiSDQc20+6w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Th/OLCexefpBOl+nXb42RaZayp63dkBuY9itjDJtsY7TfbZAIQ6quLcB2sIqp7uXIEEPVaRFtHsugCf2gDmATIiyMs8FYi7VGKtB3XIH3qpqz8v+w+xlGZVBwpy1CY302JPDeR2+vV9peEvjzPGodKwN1eq+FsRArB3NJ3WVSf8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P9f4t8bT; 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="P9f4t8bT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71844C4CECC; Thu, 7 Nov 2024 09:36:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730972202; bh=+nkDL9PLJR/rbCtul/PgyHFdV+WDKRD/jiSDQc20+6w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P9f4t8bT4ManrB/Q9MljhqinmN4EF1dGWcINNKnBcVN5LFlHE4ZsfXCjlMyWsfpHT R/ZQ0UGp43ciZhIPVug19PB+NM7yOFetAJZ9f7joqXBWbCAtEJPVR3+HZUzQAOmv0j HuCX0r7/IzeOkT8byILEw5XqfDzRGo+lfW2QeR6Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50172: RDMA/bnxt_re: Fix a possible memory leak Date: Thu, 7 Nov 2024 10:35:12 +0100 Message-ID: <2024110749-CVE-2024-50172-6cd4@gregkh> X-Mailer: git-send-email 2.47.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=1949; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+nkDL9PLJR/rbCtul/PgyHFdV+WDKRD/jiSDQc20+6w=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk6nTv9Tdx9/ZYd+nF33mtZG1Weo3f3Teao27H1pUuAx evmlLNVHTEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR75cYFrR/nTpvxwwFJuVP ESKqJ43i3zbtncYwVb5/1aXMnrrHjkf9bzpNehUY/zMZAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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