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 DDA82283FEA for ; Wed, 18 Jun 2025 09:34:29 +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=1750239269; cv=none; b=ZWVpIWuV0TqfaL1ritRukosKziCzubvbf+jjOo5sakH9ZGIWpFoEqtFBYpjfrM4ZJCo4xcQeCOn+1CK/8j2fRbwkSApzYoZF01CToOfKo0VN08M63c+oZASFXcJtpuITFqRffMCkGKDiFfRXaohvxTD9v4xDiw3NlxpC4v//Uqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239269; c=relaxed/simple; bh=UbiV/3dt/wcu7vXW5SAeIsPeJDRuKl9xzH46Kdj7wt0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hqFfDodcd6mwKAyJW/K+k+u3oRdOBDQM4iVqCEU7r47S0sHrwaa/LDfg6JUyFKCkHutjBUXQ/F49HMgD5OCn1ATcz4LfIGCBMabkme3Jac5sTbqSN7k7jmpMCttDZFPfOHr1zu5XgaHrqz4gVdC0mSiSncLlYeFdFC8msFkNtEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mwAds72A; 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="mwAds72A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B6AFC4CEE7; Wed, 18 Jun 2025 09:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239269; bh=UbiV/3dt/wcu7vXW5SAeIsPeJDRuKl9xzH46Kdj7wt0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mwAds72AcXC44dQ5zz4RYCqQZTyYnHIR0/cfsV7wRIaxo0p1rbbxjDFRNXN5yWjZG 8uTspuPCOP9u+9r2V/KPwsBkDB14HKoN9bhZOsiIc/knKm8RNzTBOI7eZV1ZXiW6dv lrPzb7WO+SUtUOAB+9fhMa6YbSX0dE4GBQ8WHO/c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38046: xen: Add support for XenServer 6.1 platform device Date: Wed, 18 Jun 2025 11:33:42 +0200 Message-ID: <2025061830-CVE-2025-38046-3356@gregkh> X-Mailer: git-send-email 2.49.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=3369; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jaP4YvmsgF6+hhuYxaNA+2x/nRbxM3mafIW+YArn4lc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7a9erHrgf0bufQWTgNunvIkHzYTv73+hqfnkYojQ7 P0Cz/SiOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAizAoM80MsEzRsU60sZgjK 7M09XNe+QXnWO4Z51lFeJmZn/p2awyCYfFvn0n0HB4kuAA== 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: xen: Add support for XenServer 6.1 platform device On XenServer on Windows machine a platform device with ID 2 instead of 1 is used. This device is mainly identical to device 1 but due to some Windows update behaviour it was decided to use a device with a different ID. This causes compatibility issues with Linux which expects, if Xen is detected, to find a Xen platform device (5853:0001) otherwise code will crash due to some missing initialization (specifically grant tables). Specifically from dmesg RIP: 0010:gnttab_expand+0x29/0x210 Code: 90 0f 1f 44 00 00 55 31 d2 48 89 e5 41 57 41 56 41 55 41 89 fd 41 54 53 48 83 ec 10 48 8b 05 7e 9a 49 02 44 8b 35 a7 9a 49 02 <8b> 48 04 8d 44 39 ff f7 f1 45 8d 24 06 89 c3 e8 43 fe ff ff 44 39 RSP: 0000:ffffba34c01fbc88 EFLAGS: 00010086 ... The device 2 is presented by Xapi adding device specification to Qemu command line. The Linux kernel CVE team has assigned CVE-2025-38046 to this issue. Affected and fixed versions =========================== Fixed in 5.4.294 with commit baedd1ef924d2b04d6223e0e1633e2d84fee6763 Fixed in 5.10.238 with commit 5239ba49ad23a2285b4c2d15bec71566d32e0300 Fixed in 5.15.185 with commit 7258b92ceff342912945eaaf8787ca3b83dbae21 Fixed in 6.1.141 with commit 02d850de9495699f2029886a6a69f0ed07a39b84 Fixed in 6.6.93 with commit 0fb6c439d265f09785a561fd2c637af567641cab Fixed in 6.12.31 with commit f5363ffdabc2a281bd0023584944e3d0c25dfcd3 Fixed in 6.14.9 with commit 55c3a07c0d96f5328e8fd5ffbf1448b60683f6fd Fixed in 6.15 with commit 2356f15caefc0cc63d9cc5122641754f76ef9b25 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-38046 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/xen/platform-pci.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/baedd1ef924d2b04d6223e0e1633e2d84fee6763 https://git.kernel.org/stable/c/5239ba49ad23a2285b4c2d15bec71566d32e0300 https://git.kernel.org/stable/c/7258b92ceff342912945eaaf8787ca3b83dbae21 https://git.kernel.org/stable/c/02d850de9495699f2029886a6a69f0ed07a39b84 https://git.kernel.org/stable/c/0fb6c439d265f09785a561fd2c637af567641cab https://git.kernel.org/stable/c/f5363ffdabc2a281bd0023584944e3d0c25dfcd3 https://git.kernel.org/stable/c/55c3a07c0d96f5328e8fd5ffbf1448b60683f6fd https://git.kernel.org/stable/c/2356f15caefc0cc63d9cc5122641754f76ef9b25