Skip to main content

Linux Kernel EUVDEUVD-2026-26364

| CVE-2026-31786 HIGH
Out-of-bounds Write (CWE-787)
2026-04-30 Linux
7.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Xen guest VM
  2. Delivery
    Read /sys/hypervisor/properties/buildid
  3. Exploit
    Trigger sprintf buffer overread
  4. Execution
    Leak kernel memory or corrupt heap structures
  5. Persist
    Execute arbitrary code in kernel context
  6. Impact
    Escalate to full guest system control

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local authenticated access (CVSS PR:L) to a Linux system running as Xen paravirtualized virtual machine (DomU or Dom0) with Xen sysfs interface enabled (CONFIG_XEN_SYSFS=y, default in distribution kernels). Attacker must have permission to read /sys/hypervisor/properties/buildid, typically granted to any local user account. Does NOT affect bare-metal Linux installations, KVM guests, VMware VMs, or cloud instances on AWS Nitro, Azure, or GCP (which use KVM/custom hypervisors). Limiting factors: exploitation requires physical or remote shell access to the guest VM - network-based remote exploitation is not possible (CVSS AV:L). Attack complexity is low (AC:L) as no race conditions or timing dependencies exist; simply reading the sysfs file triggers the vulnerable code path. No user interaction required (UI:N) beyond attacker's authenticated session. Scope unchanged (S:U) confines initial impact to the compromised guest kernel, though kernel-level access enables subsequent hypervisor escape attempts via separate Xen vulnerabilities.

Impact

CVSS 7.8 (High) with local attack vector, low complexity, and low privileges required indicates significant impact if preconditions are met, but real-world risk is constrained by specialized deployment requirements. The vulnerability requires local authenticated access to a Linux system running as a Xen virtual machine guest with the Xen paravirtualization drivers loaded - not present in default bare-metal, KVM, or cloud VM deployments outside Xen-based infrastructure. EPSS probability of 0.08% (23rd percentile) aligns with this narrow attack surface, suggesting security researchers and exploit developers assess this as low-priority compared to broader kernel vulnerabilities. No confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis. SSVC framework assessment: exploitation status is none/POC, automatable is no (requires local auth), technical impact is total (arbitrary code execution in kernel context). The high CVSS reflects worst-case impact, but deployment prevalence and attack prerequisites limit realistic urgency. Priority should be elevated only for organizations running production Xen infrastructure with untrusted local users. Patches available across all maintained kernel branches reduce risk to deployment/testing cycles rather than emergency response.

Exploit ScenarioDerived

Authenticated local user on a Xen guest VM reads /sys/hypervisor/properties/buildid, triggering buildid_show() kernel function. Sprintf buffer overread copies Xen build ID plus arbitrary adjacent kernel heap memory into userspace buffer, potentially leaking kernel pointers, cryptographic material, or other sensitive data (information disclosure). If heap layout is controlled via prior system calls, attacker overwrites adjacent kernel structures during the sprintf operation, corrupting function pointers or security contexts. Subsequent privileged operation dereferences corrupted pointer, executing attacker-controlled shellcode in kernel context, achieving full system compromise of the guest VM and potential escape to hypervisor layer via chained exploits.

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

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

Alert me

AnalysisAIv1 – May 03, 2026

Buffer overflow in Linux kernel Xen hypervisor interface allows local authenticated users to achieve arbitrary code execution with high privilege escalation impact. The vulnerability stems from improper handling of non-NUL-terminated build ID data from HYPERVISOR_xen_version(XENVER_build_id) in drivers/xen/sys-hypervisor.c, where sprintf reads past buffer boundaries seeking a NUL terminator. Affects Linux kernel versions from 5.10 through 7.0 series when running as Xen domain. Vendor-released patches available across all affected stable branches (5.10.254, 5.15.204, 6.1.170, 6.6.137, 6.12.85, 6.18.26, 7.0.3). EPSS score of 0.08% (23rd percentile) indicates low probability of mass exploitation despite high CVSS 7.8, reflecting specialized Xen-only attack surface. No public exploit identified at time of analysis.

RemediationAI

Upgrade to patched Linux kernel versions: 5.10.254+ for 5.10.x series, 5.15.204+ for 5.15.x, 6.1.170+ for 6.1.x, 6.6.137+ for 6.6.x, 6.12.85+ for 6.12.x, 6.18.26+ for 6.18.x, or 7.0.3+ for 7.0.x. Mainline kernel users should apply commit e3af585e1728c917682b6a3de9a69b41fb9194d4. Distribution-specific updates: monitor RHEL, Ubuntu, SUSE, Debian security advisories for backported fixes integrated into vendor kernel packages. References available at https://git.kernel.org/stable/c/e3af585e1728c917682b6a3de9a69b41fb9194d4 and related commit links. Compensating controls if immediate patching is infeasible: restrict local shell access to Xen guest VMs to trusted administrators only, remove untrusted user accounts from Xen DomU systems, or migrate workloads from Xen to KVM/bare-metal platforms where Xen drivers are not loaded (eliminates vulnerable code path entirely). Note that disabling CONFIG_XEN_SYSFS during kernel recompilation prevents buildid_show exposure but may break Xen management tooling expecting /sys/hypervisor attributes. No runtime sysctl or module parameter exists to disable the vulnerable function without kernel rebuild. Side effects of migration: Xen-specific features (e.g., PV drivers, memory ballooning) unavailable on alternative hypervisors.

Affected VersionsENISA

Linux patch: 5.10.254
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4b4defd2fce3f966c25adabf46644a85558f1169
Linux patch: 6.1.170
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d5f59216650c51e5e3fcb7517c825bc8047f60ef
Linux patch: 6.12.85
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f458ba102da97fafca106327086fc95f3fc764cb
Linux patch: 6.18.26
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <52cecff98bda2c51eed1c6ce9d21c5d6268fb19d
Linux patch: 7.0.3
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e3af585e1728c917682b6a3de9a69b41fb9194d4
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <8288d031a01dbacfde3fc643f7be3d23504de64d
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <5c5ff7c7bd15bb536f44b10b3fb5b8408f344d0a
Linux patch: 5.15.204
Linux patch: 6.6.137

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 affects the Linux kernel's Xen paravirtualization interface layer, specifically the sysfs exposure of hypervisor metadata in drivers/xen/sys-hypervisor.c. The buildid_show() function uses sprintf() to copy build ID data returned by the Xen hypercall HYPERVISOR_xen_version(XENVER_build_id). The Xen hypervisor interface specification does not guarantee NUL-terminated string returns for build IDs - the data is opaque binary content. Using sprintf() on non-NUL-terminated data causes the C library function to continue reading memory sequentially until encountering a NUL byte, potentially copying arbitrary kernel memory beyond the intended buffer into userspace-accessible sysfs output or corrupting adjacent kernel structures. The fix replaces sprintf() with memcpy() to handle exactly the returned length without assuming string semantics. This is a classic boundary violation resulting from mismatched assumptions between data producer (Xen hypervisor) and consumer (Linux kernel driver). The vulnerability only manifests in Linux systems running as Xen guest domains (DomU) or Dom0, not on bare-metal or KVM/VMware virtualization platforms.

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

Vendor (Linux) 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.1 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
Patch released
May 04, 2026 - 09:16 nvd
Patch available
CVSS changed
May 03, 2026 - 07:22 NVD
7.8 (HIGH)
Patch available
Apr 30, 2026 - 12:01 EUVD
CVE Published
Apr 30, 2026 - 10:31 nvd
HIGH 7.8

DescriptionCVE.org

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

Buffer overflow in drivers/xen/sys-hypervisor.c

The build id returned by HYPERVISOR_xen_version(XENVER_build_id) is neither NUL terminated nor a string.

The first causes a buffer overflow as sprintf in buildid_show will read and copy till it finds a NUL.

00000000 f4 91 51 f4 dd 38 9e 9d 65 47 52 eb 10 71 db 50 |..Q..8..eGR..q.P| 00000010 b9 a8 01 42 6f 2e 32 |...Bo.2| 00000017

So use a memcpy instead of sprintf to have the correct value:

00000000 f4 91 51 f4 dd 00 9e 9d 65 47 52 eb 10 71 db 50 |..Q.....eGR..q.P| 00000010 b9 a8 01 42 |...B| 00000014

(the above have a hack to embed a zero inside and check it's returned correctly).

This is XSA-485 / CVE-2026-31786

Executive ViewAI

Why It Matters

CVE-2026-31786 is a high-severity buffer overflow in the Linux kernel's Xen hypervisor interface that allows authenticated local users to execute arbitrary code with elevated privileges on virtualized systems. Organizations running Xen-based infrastructure with Linux kernel versions 5.10 through 7.0 face kernel compromise and potential lateral movement risks; however, the specialized attack surface (Xen-only) and low exploitation probability (0.1% EPSS) limit immediate widespread threat exposure.

Business Impact: High
Compensating Controls

Apply vendor patch. Until patching is completed, restrict local user access on Xen domains through privilege isolation, disable non-essential Xen hypervisor interfaces where operationally feasible, and implement kernel-level access controls (SELinux/AppArmor) to limit attack surface for unprivileged processes.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% exploitable
Social Media
4
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.1%
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

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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