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 26E5E1F4708 for ; Fri, 27 Dec 2024 13:56:14 +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=1735307775; cv=none; b=DNx02ThJ830ofn+c1a5r3RD+qiGNrcpvTQ16r0kUAzOBEXiZPwRGf+hojFHJbvDLqdHfOG38Gp5arwUmXmW23JuWibMN71BsdigptoCd4L43rjh/851jBJ6efkV9TEiVfPNpTI9lq0fly9GIXcg/MxJEJP+5jL31N0g4/kjQ9Po= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307775; c=relaxed/simple; bh=leTQJWBOEMN/urMJ0ztnkxowiO5tJvHj1Uck8/3EAaA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G4CchIXJaRqFXFW4VmS0j0+457fOOlSMug80BaoEJaLGqETi7zgaByEte4DHFP885KXuMNFGi3FWUY4V+yIn3WCqARAkhWhDrW9rcq4pRx9ok/B/NWZcqWVYrsn5VRNdoPKYPRK62KM04StGsBY2Z2krOyWXBFjGrQ4vqA1dgm4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sNCimj4F; 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="sNCimj4F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30A7DC4CED0; Fri, 27 Dec 2024 13:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307774; bh=leTQJWBOEMN/urMJ0ztnkxowiO5tJvHj1Uck8/3EAaA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sNCimj4FwJ/Z4wZLhvAHfnHxs+6bsI8uwEqaj5mxxEmK/b3RgK3GwC7GbLaZsMDUS fqqzQPidLmgL3US9te9Njffl7mBkQXryHpY0lqH8Xt9tggcvkP9R3HXdaMmtxx+XLy vtYqfQu62iXYjXr5XRmoVCpVsSIrqX/bH5oeo/+g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53232: iommu/s390: Implement blocking domain Date: Fri, 27 Dec 2024 14:53:18 +0100 Message-ID: <2024122737-CVE-2024-53232-6919@gregkh> X-Mailer: git-send-email 2.47.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=2774; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=leTQJWBOEMN/urMJ0ztnkxowiO5tJvHj1Uck8/3EAaA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G1Xtry5582ibW7zY3X0RSYel0w94zKwM4r5twccle 953ytH1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR51MM8yw83Bt4ds++cvrJ 2l2Zk1cfv/vQ2phhfmmYbr/Nc9O3cROOFWbKKl9Y5Tk3BgA= 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/s390: Implement blocking domain This fixes a crash when surprise hot-unplugging a PCI device. This crash happens because during hot-unplug __iommu_group_set_domain_nofail() attaching the default domain fails when the platform no longer recognizes the device as it has already been removed and we end up with a NULL domain pointer and UAF. This is exactly the case referred to in the second comment in __iommu_device_set_domain() and just as stated there if we can instead attach the blocking domain the UAF is prevented as this can handle the already removed device. Implement the blocking domain to use this handling. With this change, the crash is fixed but we still hit a warning attempting to change DMA ownership on a blocked device. The Linux kernel CVE team has assigned CVE-2024-53232 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit c76c067e488ccd55734c3e750799caf2c5956db6 and fixed in 6.11.11 with commit 3be34fa1cdbf180c1a948cfededfdf2cdc497199 Issue introduced in 6.7 with commit c76c067e488ccd55734c3e750799caf2c5956db6 and fixed in 6.12.2 with commit bd89d94f3ea6fdaee983cbc69226a00b9bde6d59 Issue introduced in 6.7 with commit c76c067e488ccd55734c3e750799caf2c5956db6 and fixed in 6.13-rc1 with commit ecda483339a5151e3ca30d6b82691ef6f1d17912 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-2024-53232 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: arch/s390/include/asm/pci.h arch/s390/pci/pci.c arch/s390/pci/pci_debug.c drivers/iommu/s390-iommu.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/3be34fa1cdbf180c1a948cfededfdf2cdc497199 https://git.kernel.org/stable/c/bd89d94f3ea6fdaee983cbc69226a00b9bde6d59 https://git.kernel.org/stable/c/ecda483339a5151e3ca30d6b82691ef6f1d17912