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 2413F12D1F4 for ; Fri, 24 May 2024 15:11:44 +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=1716563504; cv=none; b=GpIkDvH8heFmGlTMM3wyIQSImxNK8f+99z5pBhHQyl1Vj49NG1YOrcR4zGLvZNp08SqZ6zoxiUbxowU8SVUrN0eD+nw2PRLcXhd+51g5nWIEjM7sl0DvYUpI7GiXVxmQKXjZojUVEuLyIOU1qt7S0kdfdwoIKE/IjOndf3R/B70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563504; c=relaxed/simple; bh=mekGH9xXa4lSmCzrceooGgtbKGzQh06KWw3Nq7vfUKA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jn0e5PSbx1XzAP6iO1/f6aV0ctyMWwgkhuROv3PNsI7Roto0Cl1KoVUJ6DFURhkZZKioFfSNwGhCWmrKXAiq7v30lscEGBUONBjsJLDl+Sl6zc1AntiWhxOWrHnKScjQ17W1fSRna8Cq7nyDUTketq7Y8Z2EE5ZlJM/ve/uG3J0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c9FQ40y/; 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="c9FQ40y/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F15DC32789; Fri, 24 May 2024 15:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563504; bh=mekGH9xXa4lSmCzrceooGgtbKGzQh06KWw3Nq7vfUKA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=c9FQ40y/wXrEYxO8tufe+NJMlsDkY+tcvyhQ4QM8T0dGS4NGYbw6+ktKQymVSJouO RP/8ofAcZg4eXkEE8NPRM7N9l9va/hv5zokBU8SkIegRMPu21cBMe23z3fysAvHJ6q Px2smge7yEFtnVN0yJNM5Zwr/uRx+Q/5exJSNSR8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47537: octeontx2-af: Fix a memleak bug in rvu_mbox_init() Date: Fri, 24 May 2024 17:09:57 +0200 Message-ID: <2024052438-CVE-2021-47537-015c@gregkh> X-Mailer: git-send-email 2.45.1 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=2440; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mekGH9xXa4lSmCzrceooGgtbKGzQh06KWw3Nq7vfUKA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBazfNU/o4oTr1RkaN8SYnxYJj5x7+XBOVXt65KfZnp CZbV7xYRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk7g+GeRbnysqbuXa4yeaZ ekkmKgv8n6xiwzDfdUNDqd8BTW2/C+FPGhZ5znzy/qM+AA== 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-af: Fix a memleak bug in rvu_mbox_init() In rvu_mbox_init(), mbox_regions is not freed or passed out under the switch-default region, which could lead to a memory leak. Fix this bug by changing 'return err' to 'goto free_regions'. This bug was found by a static analyzer. The analysis employs differential checking to identify inconsistent security operations (e.g., checks or kfrees) between two code paths and confirms that the inconsistent operations are not recovered in the current function or the callers, so they constitute bugs. Note that, as a bug found by static analysis, it can be a false positive or hard to trigger. Multiple researchers have cross-reviewed the bug. Builds with CONFIG_OCTEONTX2_AF=y show no new warnings, and our static analyzer no longer warns about this code. The Linux kernel CVE team has assigned CVE-2021-47537 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 98c561116360 and fixed in 5.15.7 with commit 1c0ddef45b7e Issue introduced in 5.12 with commit 98c561116360 and fixed in 5.16 with commit e07a097b4986 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-2021-47537 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/af/rvu.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/1c0ddef45b7e3dbe3ed073695d20faa572b7056a https://git.kernel.org/stable/c/e07a097b4986afb8f925d0bb32612e1d3e88ce15