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 336E621765F for ; Wed, 26 Feb 2025 02:14:38 +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=1740536078; cv=none; b=keU786LXNA6QuP1d+6G5/criWuxHJNdW2yvKR/JFa6/6KO5mgWDTaBe8NennxEGhs9SpFIhY7PtufHD3ymG3bGC690ZYxbXAQWpN3Z9anIAt5xE7AMRB0KeghYsnB6C8/34PtfOHucKOmqruaQUb03V8cq3EcLHSeiSrDJUyQ0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536078; c=relaxed/simple; bh=Qps0k+PH/0NltTdk4Bgqsm5DbEZ77hk5VsXcUjGAjdo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U3WHImLtdK+Pvqwsftxv2Brr3jEzPF2IEzyzpbdm6gW7/3YH7Ll5RN0U3S2DN8jkGq3/C8VA6LnpLZvZy/QatTVzf9EKEAZe6RgIFHD2lITKZwNAOHjEfccwyDryZHl+qhmCZ2RrGiY8WaZICUdy5RhsXaYLgq05ijVQoyoZd/s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vFEroQyF; 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="vFEroQyF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04583C4CEDD; Wed, 26 Feb 2025 02:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536078; bh=Qps0k+PH/0NltTdk4Bgqsm5DbEZ77hk5VsXcUjGAjdo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vFEroQyF3Mn46qaGfxJsY3NqS/XqE4oH0x3aE/2QXkUsxTe0lIsx/MuZ1x3BrBPNB B2n6Sm9lceKXNbE0IOB2NlZ4mk7ajZFKFBl9569CE8Mm6ch1qf+ncvJSC6CdJOYFQi 1rs1bqi1sMtQbgdDwbkxhd48IdjCT6tk18q51R7U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49426: iommu/arm-smmu-v3-sva: Fix mm use-after-free Date: Wed, 26 Feb 2025 03:11:40 +0100 Message-ID: <2025022655-CVE-2022-49426-313d@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=2434; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Qps0k+PH/0NltTdk4Bgqsm5DbEZ77hk5VsXcUjGAjdo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yj9/5mVm06g/8MO28uvpulcaqs+q96QtsVHqn/pl/ iHZa3oFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR4U8Mc4VKX09LP7/4+s+A CauEeA+JSXcJb2KYn7c81LPB9tsdw11KNRVs4ZcTnJa8BQA= 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: iommu/arm-smmu-v3-sva: Fix mm use-after-free We currently call arm64_mm_context_put() without holding a reference to the mm, which can result in use-after-free. Call mmgrab()/mmdrop() to ensure the mm only gets freed after we unpinned the ASID. The Linux kernel CVE team has assigned CVE-2022-49426 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 32784a9562fb0518b12e9797ee2aec52214adf6f and fixed in 5.15.46 with commit fc90f13ea0dcd960e5002d204fa55cec4e0db2fa Issue introduced in 5.11 with commit 32784a9562fb0518b12e9797ee2aec52214adf6f and fixed in 5.17.14 with commit e3cbbdbff8a4db5d053c53fd71be62ccccdb52b0 Issue introduced in 5.11 with commit 32784a9562fb0518b12e9797ee2aec52214adf6f and fixed in 5.18.3 with commit 9aa215450888cf29af0c479e14a712dc6b0c506c Issue introduced in 5.11 with commit 32784a9562fb0518b12e9797ee2aec52214adf6f and fixed in 5.19 with commit cbd23144f7662b00bcde32a938c4a4057e476d68 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-49426 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/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.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/fc90f13ea0dcd960e5002d204fa55cec4e0db2fa https://git.kernel.org/stable/c/e3cbbdbff8a4db5d053c53fd71be62ccccdb52b0 https://git.kernel.org/stable/c/9aa215450888cf29af0c479e14a712dc6b0c506c https://git.kernel.org/stable/c/cbd23144f7662b00bcde32a938c4a4057e476d68