From mboxrd@z Thu Jan 1 00:00:00 1970 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 712DD1A238C for ; Wed, 26 Feb 2025 01:58:16 +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=1740535096; cv=none; b=lMC+xjfAZzE/PBQnFBK/XquJYwmZ/J2A9SNeBJw/1ML+bH9V2Cyc18Vxu1/glWxZfdQ4kEnyAH4uvRBvBUvdwCDQYqccv/Cizv3iJ7orur5ZeuGmXcrulW3PNbiaWumOEoK48l928h7Ii8g9U1mFj8A3IQPRH9TFmGjZrKhxJx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535096; c=relaxed/simple; bh=xTG9fRLkan7+wGzeUFcBRb/iB+lbMCPpWKcm7qPWC7E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hm5BM35PhYAntMxc5JDzBpst+33Jj0NQIuDG0fkxDV7hQ0Z5cZ/kQCUhok3fNOLDyHjPSv42HT/AP8qVXUrVsAwoJjHphbDmcET+FIfBzLDT+JsFN+OU4Z0TM4vTl6DOOwq5F041HDsRuRNQ5GP0Wpig3EqJou8B14UgnRSvFvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H8Ucd9NB; 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="H8Ucd9NB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 470D8C4CEDD; Wed, 26 Feb 2025 01:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535096; bh=xTG9fRLkan7+wGzeUFcBRb/iB+lbMCPpWKcm7qPWC7E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=H8Ucd9NBnryT8Co7MTgmyRR4Kll6PvSV5kUHmkoLI4xvmsHnB4svcLF0v1RC71keG XwQmdStjcGElmDDDdJid1zEaBBbC3hxAEJW1th7nuqMMpFkjCJJ1+Tg9LgxPcT7674 8maQzIhweMF9nOUfZESvQ9+OUm6Z27eg8vP0vPBc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49102: habanalabs: fix possible memory leak in MMU DR fini Date: Wed, 26 Feb 2025 02:55:07 +0100 Message-ID: <2025022600-CVE-2022-49102-fea1@gregkh> X-Mailer: git-send-email 2.48.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=2089; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xTG9fRLkan7+wGzeUFcBRb/iB+lbMCPpWKcm7qPWC7E=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SiziPQ4/eZW2Jt2pcfr3yANqs43XZcreco624UoTk 6za6JrTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPZ0siwYI6vpw9f57vHClM2 e99f3GWcvelyK8P8JFOOW+/7epJkLk+a7nl4xQSbCLWfAA== 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: habanalabs: fix possible memory leak in MMU DR fini This patch fixes what seems to be copy paste error. We will have a memory leak if the host-resident shadow is NULL (which will likely happen as the DR and HR are not dependent). The Linux kernel CVE team has assigned CVE-2022-49102 to this issue. Affected and fixed versions =========================== Fixed in 5.15.34 with commit 12e49aefda2e04b07604f13e03f40027cbeb0dc6 Fixed in 5.16.20 with commit 6d421fb7a9eddd8ce0a05641a3db97283fe20699 Fixed in 5.17.3 with commit 30058d3a83cfe8c6aacbfe5ab13c01dd0c1799e3 Fixed in 5.18 with commit eb85eec858c1a5c11d3a0bff403f6440b05b40dc 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-49102 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/misc/habanalabs/common/mmu/mmu_v1.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/12e49aefda2e04b07604f13e03f40027cbeb0dc6 https://git.kernel.org/stable/c/6d421fb7a9eddd8ce0a05641a3db97283fe20699 https://git.kernel.org/stable/c/30058d3a83cfe8c6aacbfe5ab13c01dd0c1799e3 https://git.kernel.org/stable/c/eb85eec858c1a5c11d3a0bff403f6440b05b40dc