Out-of-bounds Write Affecting mesa3d/mesa package, versions [,26.1.0-rc1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-MESA3DMESA-16109721
  • published19 Apr 2026
  • disclosed12 Apr 2026
  • creditUnknown

Introduced: 12 Apr 2026

CVE-2026-40393  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade mesa3d/mesa to version 26.1.0-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the allocation process in WebGPU due to the amount of data to be allocated being determined by untrusted input and subsequently used in alloca. An attacker can achieve arbitrary code execution or cause a denial of service by supplying crafted input that leads to out-of-bounds memory access.

CVSS Base Scores

version 4.0
version 3.1