Skip to main content

Linux Kernel CVE-2026-31787

| EUVDEUVD-2026-26365 HIGH
Double Free (CWE-415)
2026-04-30 Linux
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to Xen dom0 host
  2. Delivery
    Open /dev/xen/privcmd device
  3. Exploit
    Create privcmd mmap allocation
  4. Install
    Partial munmap triggers VMA split
  5. C2
    First VMA close frees pages array
  6. Execute
    Second VMA close triggers double-free
  7. Impact
    Heap corruption enables kernel code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
Exploitation Conditions

Requires local authenticated access to a system running Linux kernel with Xen paravirtualization enabled (CONFIG_XEN_PRIVCMD=y). Attacker must have sufficient privileges to open /dev/xen/privcmd device node, typically requiring membership in specific system groups (often 'xen' or root equivalent). The vulnerable code path is triggered only when userspace performs partial munmap() operations on privcmd memory mappings created via the privcmd driver's mmap interface-standard file or anonymous mappings are not affected. Systems without Xen support compiled into the kernel, or running other virtualization technologies (KVM, VMware, containers), are not vulnerable. User interaction is not required (UI:N) once the attacker has local shell access, and attack complexity is low (AC:L) as no race conditions or complex timing requirements exist. The vulnerability scope is unchanged (S:U), meaning exploitation does not enable crossing privilege boundaries beyond the kernel context itself.

Impact

Real-world risk is MODERATE despite the high CVSS base score of 7.8. The CVSS vector (AV:L/AC:L/PR:L/UI:N) indicates local access with low complexity but requires authenticated user privileges, significantly limiting the attack surface to systems where untrusted local users have access. EPSS score of 0.03% (10th percentile) suggests security researchers and attackers have not prioritized this vulnerability, likely because exploitation requires specific Xen virtualization infrastructure and local shell access on the dom0 host. No CISA KEV listing and no public exploit code exists at time of analysis. However, the technical impact is severe-successful exploitation enables memory corruption with potential for privilege escalation to kernel level (C:H/I:H/A:H). The vulnerability affects only systems running Xen paravirtualization with the privcmd driver enabled, which represents a subset of Linux deployments. Organizations running Xen-based virtualization platforms (cloud providers, hosting infrastructure) should prioritize patching, while general Linux servers without Xen can deprioritize. The abundance of available patches across all maintained kernel branches (5.10+ through 7.0+) indicates vendor confidence in the fix and reduces remediation friction.

Exploit ScenarioDerived

An authenticated local user on a Xen dom0 host opens /dev/xen/privcmd and creates a privcmd memory mapping via mmap(). The attacker then calls munmap() on a subset of the mapped region, triggering VMA splitting in the kernel. Both resulting VMAs retain pointers to the same allocated pages array. When the unmapped portion is closed, privcmd_close() frees the pages array via kvfree(). The attacker later closes the remaining VMA, causing a second kvfree() on already-freed memory. This heap corruption can be leveraged to overwrite kernel memory structures, potentially achieving arbitrary code execution at kernel privilege level or causing system crashes. No public proof-of-concept exists, but the exploitation technique is well-understood in kernel security research.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 06, 2026

Double-free vulnerability in Linux kernel Xen privcmd driver allows local authenticated attackers to corrupt memory and potentially execute arbitrary code or cause denial of service. When userspace performs partial munmap() on privcmd mappings, VMA splitting creates duplicate pointers to the same memory pages array, leading to kvfree() being called twice on the same allocation during VMA cleanup. Xen Security Advisory XSA-487 confirms this issue affects virtualization hosts running Xen paravirtualized domains. No public exploit identified at time of analysis, with EPSS score of 0.03% indicating low predicted exploitation probability. Vendor-released patches available for stable kernel versions 5.10.254, 5.15.204, 6.1.170, 6.6.137, 6.12.85, 6.18.26, and 7.0.3.

RemediationAI

Apply vendor-released kernel updates immediately for Xen-enabled systems: upgrade to Linux kernel 5.10.254, 5.15.204, 6.1.170, 6.6.137, 6.12.85, 6.18.26, 7.0.3, or later stable releases incorporating the fix commits. Patches are available from kernel.org Git repository (references provided) and distribution-specific security channels. For systems unable to apply kernel updates immediately, disable the Xen privcmd driver by unloading the xen-privcmd kernel module (modprobe -r xen_privcmd) if not actively required for domain management, though this will break Xen toolstack functionality including xl/xm domain creation and management operations. Alternatively, restrict access to /dev/xen/privcmd device node to only trusted privileged users via filesystem permissions (chmod 600 /dev/xen/privcmd), recognizing this provides defense-in-depth but does not eliminate the vulnerability if those users are compromised. For production Xen environments, kernel patching is the only complete remediation-compensating controls merely reduce attack surface. Verify patch application by checking kernel version (uname -r) matches patched releases and reviewing git commit logs for presence of .may_split callback additions to privcmd_vm_ops structure. See official advisories at openwall.com/lists/oss-security/2026/04/28/14 and xenbits.xen.org/xsa/advisory-487.html for additional vendor guidance.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2b985d3a024b9e8c24e21671b34e855569763808
Linux patch: 5.15.204
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2894a351fe2ea8684919d36df3188b9a35e3926f
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <402d84ad9e89bd4cbfd07ca8598532b7021daf95
Linux patch: 7.0.3
Linux patch: 6.1.170
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1576ff3869cbd3620717195f971c85b7d7fd62b5
Linux patch: 6.6.137
Linux patch: 5.10.254
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <446ee446d9ae66f36e95c3c90bbcc4e56b94cde0
Linux patch: 6.12.85
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <dbf862ce9f009128ab86b234d91413a3e450beb4
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <71bf829800758a6e3889096e4754ef47ba7fc850
Linux patch: 6.18.26

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability resides in the Xen privcmd driver (drivers/xen/privcmd.c), which provides userspace access to Xen hypercalls for managing paravirtualized guest domains. The privcmd_vm_ops structure defines VMA operations including a .close callback (privcmd_close) but lacks .may_split and .open callbacks. When the kernel's __split_vma() function is invoked during partial munmap() operations, vm_area_dup() copies the vm_private_data pointer-which references a dynamically allocated pages array created by alloc_empty_pages()-without deep-copying the underlying allocation. This represents a classic CWE-415 (Double Free) scenario where improper handling of object lifecycle during VMA splitting creates aliased pointers. Both the original and split VMA retain references to the same pages array, but the memory management subsystem treats them as independent. During VMA destruction, privcmd_close() invokes xen_unmap_domain_gfn_range() followed by xen_free_unpopulated_pages() and kvfree(pages) on each VMA independently, causing use-after-free conditions and heap corruption. The fix implements a .may_split callback returning an error to prevent VMA splitting entirely for privcmd mappings.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 7.3 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
CVSS changed
May 06, 2026 - 19:52 NVD
7.8 (HIGH)
Patch released
May 04, 2026 - 09:16 nvd
Patch available
Patch available
Apr 30, 2026 - 12:01 EUVD
CVE Published
Apr 30, 2026 - 10:31 nvd
N/A
CVE Published
Apr 30, 2026 - 10:31 nvd
HIGH 7.8

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

xen/privcmd: fix double free via VMA splitting

privcmd_vm_ops defines .close (privcmd_close), but neither .may_split nor .open. When userspace does a partial munmap() on a privcmd mapping, the kernel splits the VMA via __split_vma(). Since may_split is NULL, the split is allowed. vm_area_dup() copies vm_private_data (a pages array allocated in alloc_empty_pages()) into the new VMA without any fixup, because there is no .open callback.

Both VMAs now point to the same pages array. When the unmapped portion is closed, privcmd_close() calls:

  • xen_unmap_domain_gfn_range()
  • xen_free_unpopulated_pages()
  • kvfree(pages)

The surviving VMA still holds the dangling pointer. When it is later destroyed, the same sequence runs again, which leads to a double free.

Fix this issue by adding a .may_split callback denying the VMA split.

This is XSA-487 / CVE-2026-31787

Executive ViewAI

Why It Matters

CVE-2026-31787 is a high-severity double-free vulnerability in the Linux kernel Xen privcmd driver that allows authenticated local attackers to corrupt memory and potentially achieve arbitrary code execution or denial of service on virtualization hosts. Organizations operating Xen-based infrastructure must patch immediately, as this affects the core hypervisor security boundary and could be exploited by malicious guests to compromise host systems.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not operationally feasible, restrict user-space execution of privcmd operations through mandatory access control (MAC) policies, disable unnecessary paravirtualized domain features, and implement enhanced monitoring for abnormal memory access patterns or kernel panic events on affected hosts pending patch deployment.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy