CVE-2026-31788
xen/privcmd: restrict usage in unprivileged domU
Check your servers for CVE-2026-31788
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31788 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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)
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-862 Missing Authorization
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b, before 4eb245ff0d33b618e097a2c23de5df56d4ad6969 affected from 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b, before 3ee5b9e3de4b8bdd74183d83205481c91a9effc8 affected from 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b, before 87a803edb2ded911cb587c53bff179d2a2ed2a28 affected from 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b, before 1879319d790f7d57622cdc22807b60ea78b56b6d affected from 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b, before 78432d8f0372c71c518096395537fa12be7ff24e affected from 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b, before 389bae9a4409934e8b8d4dbdaaf02a3ae71cf8e4 affected from 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b, before cbede2e833da1893afbea9b3ff29b5dda23a4a91 affected from 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b, before 453b8fb68f3641fea970db88b7d9a153ed2a37e8
Other versions: unaffected
|
| Linux |
affected 2.6.37 unaffected before 2.6.37 unaffected from 5.10.253 up to and including 5.10.* unaffected from 5.15.203 up to and including 5.15.* unaffected from 6.1.167 up to and including 6.1.* unaffected from 6.6.130 up to and including 6.6.* unaffected from 6.12.78 up to and including 6.12.* unaffected from 6.18.20 up to and including 6.18.* unaffected from 6.19.10 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31788 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31788
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31788
trivy image --scanners vuln IMAGE | grep CVE-2026-31788
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/4eb245ff0d33b618e097a2c23de5df56d4ad6969 git.kernel.org
- https://git.kernel.org/stable/c/3ee5b9e3de4b8bdd74183d83205481c91a9effc8 git.kernel.org
- https://git.kernel.org/stable/c/87a803edb2ded911cb587c53bff179d2a2ed2a28 git.kernel.org
- https://git.kernel.org/stable/c/1879319d790f7d57622cdc22807b60ea78b56b6d git.kernel.org
- https://git.kernel.org/stable/c/78432d8f0372c71c518096395537fa12be7ff24e git.kernel.org
- https://git.kernel.org/stable/c/389bae9a4409934e8b8d4dbdaaf02a3ae71cf8e4 git.kernel.org
- https://git.kernel.org/stable/c/cbede2e833da1893afbea9b3ff29b5dda23a4a91 git.kernel.org
- https://git.kernel.org/stable/c/453b8fb68f3641fea970db88b7d9a153ed2a37e8 git.kernel.org
- http://xenbits.xen.org/xsa/advisory-482.html xenbits.xen.org
- http://www.openwall.com/lists/oss-security/2026/03/24/2 openwall.com
- http://www.openwall.com/lists/oss-security/2026/03/24/3 openwall.com
- http://www.openwall.com/lists/oss-security/2026/03/24/4 openwall.com
- http://www.openwall.com/lists/oss-security/2026/03/24/5 openwall.com
- http://www.openwall.com/lists/oss-security/2026/03/26/4 openwall.com
Source: the record CVE-2026-31788 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse