Out-of-bounds Write Affecting mesa package, versions <23.2.1-1ubuntu3.1~22.04.4


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-UBUNTU2204-MESA-16062281
  • 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:22.04 mesa to version 23.2.1-1ubuntu3.1~22.04.4 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:22.04 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