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 65C881CAB9 for ; Thu, 22 Aug 2024 03:32:34 +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=1724297554; cv=none; b=Vtkw9Bf0N3FKAPR/F+R9cWd2wkcdlc8za0OB5TaFYdjk0tXDu7PNI9d/mIKhqtmXDjo0Zt0IepI7fVIQfWRGl0y5ZAFtYAaEFYD5XtRLyog7nnFD0w0DzCn3nM2djoNCn+xYrA+wAQFkwdcNJUPPcAj5nZGHIogoVHsxQIwz4pM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724297554; c=relaxed/simple; bh=wm78T2nTLOFrGKrz7/tb9p/2Mo5GCP4NrJ2wNaRPkgg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uXv5XW1GOz4PEGhKOhcTQX2eC9qovXBqxfIOPkaEyyiExJfNi2HcTlYpJKzMP4Y5f5bR5lDuaFMXw/W6hEtH3CRNu7iQlE6nOsUrNHJGFVWd6ye7Kyt0wO69gQYjPczuyvRsk1RBb6tPuzhlNYU8l3iIE3/F19H70BItU0Z2RuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eI6w/iFw; 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="eI6w/iFw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4C63C4AF09; Thu, 22 Aug 2024 03:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724297554; bh=wm78T2nTLOFrGKrz7/tb9p/2Mo5GCP4NrJ2wNaRPkgg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eI6w/iFwO8100jnne3cuaf7Y3g6AoO2WLSIvfwyynniOx4930s+paAGmUjijGlczr xtPD3Ra8/fo5n9BmqUuYRTQ5nosR2VpBQTC+6Ao+H44ZrNghB67+RlwTndth1g+Rf9 TT2Y+FajPOfl61CreFOVGhYii1b+suBwqWNX6MzY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48904: iommu/amd: Fix I/O page table memory leak Date: Thu, 22 Aug 2024 11:31:05 +0800 Message-ID: <2024082212-CVE-2022-48904-b02c@gregkh> X-Mailer: git-send-email 2.46.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=2133; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wm78T2nTLOFrGKrz7/tb9p/2Mo5GCP4NrJ2wNaRPkgg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnHNjLE5sxMOLRhnqeanEnGnReH1/FZvt1cNzWLY+be5 zFlb+MrO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiGZMYFqzdsfjFQgWB8J49 pz6sjI8r2fzx/XWG+XlcBQFZURFPXV1aunezLhFsiFo0AQA= 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/amd: Fix I/O page table memory leak The current logic updates the I/O page table mode for the domain before calling the logic to free memory used for the page table. This results in IOMMU page table memory leak, and can be observed when launching VM w/ pass-through devices. Fix by freeing the memory used for page table before updating the mode. The Linux kernel CVE team has assigned CVE-2022-48904 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit e42ba0633064 and fixed in 5.15.27 with commit 378e2fe1eb58 Issue introduced in 5.12 with commit e42ba0633064 and fixed in 5.16.13 with commit c78627f757e3 Issue introduced in 5.12 with commit e42ba0633064 and fixed in 5.17 with commit 6b0b2d9a6a30 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-48904 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/amd/io_pgtable.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/378e2fe1eb58d5c2ed55c8fe5e11f9db5033cdd6 https://git.kernel.org/stable/c/c78627f757e37c2cf386b59c700c4e1574988597 https://git.kernel.org/stable/c/6b0b2d9a6a308bcd9300c2d83000a82812c56cea