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 B52E61DFD81 for ; Mon, 21 Oct 2024 20:10:52 +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=1729541452; cv=none; b=Yqz0nOBM1L8EQbdm1hAwVrrSF0KkeIwGYH8heuB3gDiW4CiwPjZDzuPju8pYImldLDoZtsVglOCW1Jxiv7URP15Mkv60tnoL8p/op1b5cLyIBDsAbYv3b9WH0xwAcENL/uIAHIa9TP+Im9LKkj04V4eZBE5anFS14r7GM/pnATc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541452; c=relaxed/simple; bh=0sxtr+OntwnEAlzDnoZOiJ/ATkUAAm3oVr1T9M0XomA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DBF6Q2roZGlNeCEhi7+ph5h4EcVkuL7GNYbanEC5paLbxtKiQbO/OEQilCPoPIHV1g2p/SDtlZ2woFUXCva7EKnV6nSFsjuWX/B270PJvk0m5jJk2irzRupgv0Jh5Xj6Apm0bm6/fzg5qHI5v1MMCEdCKMyCsKpNm/NW5mnmAok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ap7wMDRK; 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="Ap7wMDRK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AA68C4CEC3; Mon, 21 Oct 2024 20:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541452; bh=0sxtr+OntwnEAlzDnoZOiJ/ATkUAAm3oVr1T9M0XomA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ap7wMDRKPSmiItPr3yXz+cZSvYPY5eIC5e7IluZqpjazCQw7Ek3cMAhX614UqnO3d pIN6KzhItlryHuFXi4xr3weRsge7JqXYbFgCEWmwJ9YElnzGaSfdTQRA7QMWvGLesx XUnG8dduKe0ezfZMyMa4vJNwUof/AOYqO8wadRFQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48968: octeontx2-pf: Fix potential memory leak in otx2_init_tc() Date: Mon, 21 Oct 2024 22:06:00 +0200 Message-ID: <2024102144-CVE-2022-48968-9b4a@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=1990; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0sxtr+OntwnEAlzDnoZOiJ/ATkUAAm3oVr1T9M0XomA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliWyT+eG80UDpYu9Z4zlv5SYEXM69MkQr/sryF3aS2e sKv1VpPO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiCs4M8/Oui7Suj9hzP/R5 sye3l2nPj8/CdxnmypVEXGL+eJVlPv+jPbFKW3Z63VA5DwA= 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: octeontx2-pf: Fix potential memory leak in otx2_init_tc() In otx2_init_tc(), if rhashtable_init() failed, it does not free tc->tc_entries_bitmap which is allocated in otx2_tc_alloc_ent_bitmap(). The Linux kernel CVE team has assigned CVE-2022-48968 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 2e2a8126ffac and fixed in 5.15.83 with commit eefd8953a748 Issue introduced in 5.15 with commit 2e2a8126ffac and fixed in 6.0.13 with commit db5ec358cf4e Issue introduced in 5.15 with commit 2e2a8126ffac and fixed in 6.1 with commit fbf33f5ac76f 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-2022-48968 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/marvell/octeontx2/nic/otx2_tc.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/eefd8953a74822cb72006632b9ee9dd95f92c146 https://git.kernel.org/stable/c/db5ec358cf4ef0ab382ee733d05f018e8bef9462 https://git.kernel.org/stable/c/fbf33f5ac76f2cdb47ad9763f620026d5cfa57ce