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 68590396D38 for ; Wed, 25 Mar 2026 10:25: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=1774434314; cv=none; b=Bw9bijp3j/6O3ORkq7h9B0UsUoqpf1qtDINb8blKffRmDyg1opeOfbkugo+NpPQZfxWoyzB0jvr5LIMve3R7DxJoLebrWmv0WV3UQlvb/BZWSlZuFNtVtKXA8G6vMDzoZr8Qvo6SEa8hlIJ4o019k5xQbSsTckFGdVwYbJvTVdA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434314; c=relaxed/simple; bh=QPzCUr0EHima7JI8PSuAAnDvHVFdBujYbGxTlYDGez4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c50MzvPcW02yZTSXj5oRHZa6DuKV0a0DNnzT068O4y1Vp878jH8eDYC6s2q7qQtMMKB1IiPIjeBQ4z1ktvsrRdgpedpx7Ru6msbRi7YsBEjMTo0jDhFjP4OJ9DEsxAQV+H1d1CevDAYT+QHHIq66L6NMQ5X3QwRYpl5LjiPcdck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rfx6BVnv; 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="rfx6BVnv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4C40C4CEF7; Wed, 25 Mar 2026 10:25:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434314; bh=QPzCUr0EHima7JI8PSuAAnDvHVFdBujYbGxTlYDGez4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=rfx6BVnviXad+7sV+As5Ffvp1PFTitHgYh7I8JWY+PgVkYR9b+cWuUwPQ8bpESv37 V5bRw7zZojQwo/NiZIB/NSD035XfGDgLFH0kONaATJxwMJhir90HSSCCopxIEm9xAu QbS/lJNfT8Ao8sr27xZJ8byyJ7bE7gei/xA+1/+4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31788: xen/privcmd: restrict usage in unprivileged domU Date: Wed, 25 Mar 2026 11:24:49 +0100 Message-ID: <2026032548-CVE-2026-31788-032c@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3384; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sDabLQBcWgi8c8juH343v5814Mq2eh0dEqQt+N/f9Co=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHt3/4VXpO47lpyoYaRZlVGlePZjXPd3082byO59Jqi UOnjP6t7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJlPEwzJXgf2Aw77LZhgrl lyFGkysYrE5nnWRYsFru691FKRvybWauUs5TUHo2Tb5nPwA= 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/privcmd: restrict usage in unprivileged domU The Xen privcmd driver allows to issue arbitrary hypercalls from user space processes. This is normally no problem, as access is usually limited to root and the hypervisor will deny any hypercalls affecting other domains. In case the guest is booted using secure boot, however, the privcmd driver would be enabling a root user process to modify e.g. kernel memory contents, thus breaking the secure boot feature. The only known case where an unprivileged domU is really needing to use the privcmd driver is the case when it is acting as the device model for another guest. In this case all hypercalls issued via the privcmd driver will target that other guest. Fortunately the privcmd driver can already be locked down to allow only hypercalls targeting a specific domain, but this mode can be activated from user land only today. The target domain can be obtained from Xenstore, so when not running in dom0 restrict the privcmd driver to that target domain from the beginning, resolving the potential problem of breaking secure boot. This is XSA-482 --- V2: - defer reading from Xenstore if Xenstore isn't ready yet (Jan Beulich) - wait in open() if target domain isn't known yet - issue message in case no target domain found (Jan Beulich) The Linux kernel CVE team has assigned CVE-2026-31788 to this issue. Affected and fixed versions =========================== Fixed in 6.1.167 with commit 87a803edb2ded911cb587c53bff179d2a2ed2a28 Fixed in 6.6.130 with commit 1879319d790f7d57622cdc22807b60ea78b56b6d Fixed in 6.12.78 with commit 78432d8f0372c71c518096395537fa12be7ff24e Fixed in 6.18.20 with commit 389bae9a4409934e8b8d4dbdaaf02a3ae71cf8e4 Fixed in 6.19.10 with commit cbede2e833da1893afbea9b3ff29b5dda23a4a91 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-2026-31788 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/privcmd.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/87a803edb2ded911cb587c53bff179d2a2ed2a28 https://git.kernel.org/stable/c/1879319d790f7d57622cdc22807b60ea78b56b6d https://git.kernel.org/stable/c/78432d8f0372c71c518096395537fa12be7ff24e https://git.kernel.org/stable/c/389bae9a4409934e8b8d4dbdaaf02a3ae71cf8e4 https://git.kernel.org/stable/c/cbede2e833da1893afbea9b3ff29b5dda23a4a91 https://git.kernel.org/stable/c/453b8fb68f3641fea970db88b7d9a153ed2a37e8