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 140E423D7C3 for ; Sat, 4 Oct 2025 07:34: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=1759563278; cv=none; b=nYPSHr6EUoLuAFCDMSFYcHm6xtUvMLiYldWpqIl7oFQy+ES8Hok3WWdO9oHgrc8kSrHqi041yB/NDF17eNVS8KkXHzoREJD+cDJkK74hxJ2bsuwQguqYagsNlKOG+JKVcqH5VL2GrW6PIbxa3ejsNR4Tlg86Co282G5Ao0L2Ssg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759563278; c=relaxed/simple; bh=RDSReZkZ2KacKMIpzZrd8y/03m4Z5TBR/Hzg0tt3V0E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nv8C8ag01xgSTRXS/LHThvRHyhr9yPO19apdq7PGOR/jfGs9spNMiKfiEfnxeweDaqTyohkUNrVrk83Vb8chskDNA7H2klrSCMYv+6q/xiOATU/MyZeL5a4XiGbUgeEl7rZT5ZZtgUdZ8CchvDQPtpRl2d+UyMy8QLo8qZ5dmDg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E+//e99i; 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="E+//e99i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A5BCC4CEF1; Sat, 4 Oct 2025 07:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759563277; bh=RDSReZkZ2KacKMIpzZrd8y/03m4Z5TBR/Hzg0tt3V0E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E+//e99im5Kut+qStKVB20H6Trc1M0rQ8ZxKNSD0gQiilPClVcdbcQPODICRz9Wb3 3FoMMru6vOEYgH4UjaGXvBcTQ+eYRKHimeqey0QR/PmcD9yBjPXSu4mP9njpevalF7 LiaVjBC0EYoztOZln7plAdsL1//hdTl4b0pARDw0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39939: iommu/s390: Fix memory corruption when using identity domain Date: Sat, 4 Oct 2025 09:33:23 +0200 Message-ID: <2025100418-CVE-2025-39939-7ec4@gregkh> X-Mailer: git-send-email 2.51.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=2408; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yawhQJvOq1XRpUGaTQQ1o+7nh2EV3Oarkxi2HhiDxYs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPzu7z1V3yi3WN9G+l44f8rFPjlHyfxizPa4+O35KfZ LrOuuNzRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkSgTDgk0pSv1Rz9+kLys5 kuBrYn3kpFL3FIb5cUKls8oVt0QsDHQrO9fvs/lLwdxLAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: iommu/s390: Fix memory corruption when using identity domain zpci_get_iommu_ctrs() returns counter information to be reported as part of device statistics; these counters are stored as part of the s390_domain. The problem, however, is that the identity domain is not backed by an s390_domain and so the conversion via to_s390_domain() yields a bad address that is zero'd initially and read on-demand later via a sysfs read. These counters aren't necessary for the identity domain; just return NULL in this case. This issue was discovered via KASAN with reports that look like: BUG: KASAN: global-out-of-bounds in zpci_fmb_enable_device when using the identity domain for a device on s390. The Linux kernel CVE team has assigned CVE-2025-39939 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 64af12c6ec3afd7d44bc8b2044eee59f98059087 and fixed in 6.16.9 with commit 17a58caf3863163c4a84a218a9649be2c8061443 Issue introduced in 6.15 with commit 64af12c6ec3afd7d44bc8b2044eee59f98059087 and fixed in 6.17 with commit b3506e9bcc777ed6af2ab631c86a9990ed97b474 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-2025-39939 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/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/17a58caf3863163c4a84a218a9649be2c8061443 https://git.kernel.org/stable/c/b3506e9bcc777ed6af2ab631c86a9990ed97b474