Out-of-bounds Write Affecting mesa package, versions <25.2.8-0ubuntu0.25.10.2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.43% (35th 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 IDSNYK-UBUNTU2510-MESA-16062283
  • published15 Jun 2026
  • disclosed12 Apr 2026

Introduced: 12 Apr 2026

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

How to fix?

Upgrade Ubuntu:25.10 mesa to version 25.2.8-0ubuntu0.25.10.2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mesa package and not the mesa package as distributed by Ubuntu. See How to fix? for Ubuntu:25.10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1