Skip to main content

Mesa EUVDEUVD-2026-21737

| CVE-2026-40393 CRITICAL
Out-of-bounds Write (CWE-787)
2026-04-12 mitre
9.8
CVSS 3.1 · NVD
Temporal: 8.1
View

Attack ChainAIDerived

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

  1. Access
    Reach WebGPU-enabled Mesa target
  2. Delivery
    Deliver crafted WebGPU workload
  3. Exploit
    Supply untrusted oversized allocation size
  4. Execution
    Trigger alloca out-of-bounds write
  5. Persist
    Corrupt stack memory
  6. Impact
    Crash or hijack process

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

Exploitation requires that the target actually exposes Mesa's WebGPU implementation to an untrusted party - the description states the allocation size 'depends on an untrusted party' and is used for alloca, so the concrete prerequisite is a deployment where WebGPU workloads from web content, a sandboxed application, or a guest VM are processed by a vulnerable Mesa (before 25.3.6, or 26.0.0-26.0.1). Limiting factors: systems that do not use Mesa's WebGPU path are not reachable, and reaching the code realistically involves the victim loading attacker-controlled WebGPU content, which implies attacker-supplied input and likely user interaction despite the NVD UI:N marking. The NVD vector claims no authentication (PR:N) and no interaction, but the WebGPU-untrusted-party framing means practical exploitation is gated on a WebGPU-enabled configuration rather than any default Mesa install.

Impact

The signals diverge sharply and should be weighed rather than averaged. The NVD CVSS vector (AV:N/AC:L/PR:N/UI:N) and 9.8 score imply trivial remote, unauthenticated, no-interaction exploitation with high confidentiality, integrity, and availability impact, and CISA SSVC agrees the technical impact is 'total'. Against that, SSVC records Exploitation as 'none' and Automatable as 'no', EPSS is only 0.04% (13th percentile), the CVE is NOT in CISA KEV, and no POC is referenced - so current real-world exploitation pressure is very low (no public exploit identified at time of analysis). There is also tension in the vector itself: WebGPU is normally reached by loading attacker-controlled content (a web page or a malicious guest), which realistically implies some user interaction or a specific WebGPU-enabled deployment rather than the pure UI:N/PR:N drive-by that AV:N/AC:L suggests - verify true reachability against Mesa merge request 39866. Net: this is a genuine memory-corruption bug worth patching promptly wherever WebGPU is exposed, but the 9.8 overstates near-term operational risk given low EPSS, no KEV, and SSVC 'Exploitation: none' / 'Automatable: no'.

Exploit ScenarioDerived

An attacker gets a target to process attacker-controlled WebGPU content - for example a malicious web page or a hostile VM guest - that issues a crafted WebGPU request whose declared size drives Mesa's alloca allocation. The attacker-influenced size triggers an out-of-bounds write on the stack, corrupting memory to crash the process or potentially steer execution. No public exploit code is identified at time of analysis, and the AC:L rating suggests the trigger itself is not complex once a WebGPU path is reachable.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jul 13, 2026

Out-of-bounds memory access in the WebGPU implementation of Mesa (fixed in 25.3.6 and 26.0.1) lets an attacker who can submit WebGPU workloads corrupt memory, because a to-be-allocated buffer size is taken from an untrusted party and passed to alloca, producing a stack-based out-of-bounds write (CWE-787). The CVSS 9.8 rating reflects total technical impact, but there is no public exploit identified at time of analysis and EPSS is very low at 0.04%, indicating a serious memory-corruption bug that is not yet being exploited. SUSE and Debian LTS have already shipped fixed packages.

Earlier versions of this analysis (2)
v2 Jul 13, 2026 - 10:28 cvss changed CVSS 9.8

Out-of-bounds write in the Mesa 3D Graphics Library's WebGPU implementation lets a remote attacker corrupt memory by controlling the size of a stack allocation; affects Mesa before 25.3.6 and the 26.x line before 26.0.1. Because the to-be-allocated size derives from an untrusted party and is passed to alloca(), an attacker can smash the stack, giving high impact to confidentiality, integrity, and availability (CVSS 9.8). Currently no public exploit is identified and EPSS is very low (0.04%), and CISA SSVC rates exploitation as 'none'.

v1 Apr 12, 2026 - 19:24 CVSS 8.1

Out-of-bounds memory access in Mesa's WebGPU implementation allows remote attackers to achieve code execution, data corruption, or denial of service through untrusted allocation sizes passed to alloca. Affects Mesa versions before 25.3.6 and 26.x before 26.0.1. CVSS 8.1 (High) with network attack vector but high complexity. EPSS data not provided; no public exploit identified at time of analysis. Patch available via upstream merge request with fixed versions released.

RemediationAI

Upgrade Mesa to a fixed release: 25.3.6 or later on the 25.x branch, or 26.0.1 or later on the 26.x branch (Vendor-released patch: Mesa 25.3.6 / 26.0.1; upstream fix in merge request https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39866, announced at https://lists.freedesktop.org/archives/mesa-dev/2026-February/226597.html). On distributions, apply the vendor packages - SUSE via SUSE-SU-2026:1343 (https://www.suse.com/support/update/SUSE-SU-2026:1343/) and Debian LTS per https://lists.debian.org/debian-lts-announce/2026/07/msg00021.html. If you cannot patch immediately, reduce exposure by not enabling or exposing the WebGPU code path to untrusted input - for example avoid enabling WebGPU/experimental GPU acceleration for untrusted web content or guest VMs, and restrict which untrusted contexts can submit GPU workloads; the trade-off is loss of WebGPU-accelerated functionality for those workloads. After upgrading, restart affected browsers, compositors, or services so the new Mesa libraries are loaded.

Affected VersionsENISA

mesa 0 <25.3.6
mesa 26.0.0 <26.0.1

Affected Packages

euvd mesa fix: 25.3.6, 26.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

Mesa is the dominant open-source graphics stack on Linux, providing OpenGL, Vulkan, and now WebGPU implementations across essentially all common GPU drivers (Intel, AMD, and others). The flaw is in Mesa's WebGPU code path, where the number of bytes to allocate is derived from data controlled by an untrusted requester and then handed to alloca(), which reserves memory on the stack. Because alloca performs no bounds checking and stack allocation cannot fail gracefully, an attacker-influenced size causes an out-of-bounds write (CWE-787, tagged in the input as Buffer Overflow / Memory Corruption). WebGPU is specifically designed to expose GPU compute and rendering to less-trusted contexts such as web content or virtualized guests, which is why an untrusted party is able to influence the allocation size at all. The single affected CPE is cpe:2.3:a:mesa3d:mesa.

Know when Mesa gets its next vulnerability

  • 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 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CIRCL (temporal) 8.1 HIGH
vuln.today AI 7.5 HIGH

WebGPU is reachable from untrusted web/guest content (AV:N/PR:N), but triggering the alloca needs crafted content the victim loads, giving UI:R and AC:H; stack corruption yields high C/I/A.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

8
Analysis Updated
Jul 13, 2026 - 10:28 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 13, 2026 - 10:28 vuln.today
v2 - CVSS changed
Severity Changed
Jul 13, 2026 - 10:22 NVD
HIGH CRITICAL
CVSS changed
Jul 13, 2026 - 10:22 NVD
8.1 (HIGH) 9.8 (CRITICAL)
Patch released
Apr 16, 2026 - 16:17 nvd
Patch available
Analysis Updated
Apr 16, 2026 - 05:57 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
25.3.6,26.0.1
CVE Published
Apr 12, 2026 - 18:49 nvd
HIGH 8.1

DescriptionNVD

In Mesa before 25.3.6 and 26 before 26.0.1, out-of-bounds memory access can occur in WebGPU because the amount of to-be-allocated data depends on an untrusted party, and is then used for alloca.

Executive ViewAI

Why It Matters

Mesa WebGPU implementation (versions pre-25.3.6 and pre-26.0.1) contains a critical memory corruption vulnerability (CVSS 9.8) that allows attackers capable of submitting WebGPU workloads to corrupt memory on affected systems. While the technical severity is critical, exploitation risk is currently minimal-no public exploit exists and EPSS scoring is 0.04%-but the flaw requires prompt patching to prevent future weaponization.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Prevalence
Ubiquitous
core graphics stack in nearly all Linux desktop deployments
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
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
SUSE Linux Enterprise Micro 5.2 Fixed
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected

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