Out-of-bounds Write Affecting mesa-libGLES-devel package, versions <0:18.3.4-5.amzn2.0.2


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.43% (37th 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-AMZN2-MESALIBGLESDEVEL-17286597
  • published10 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 Amazon-Linux:2 mesa-libGLES-devel to version 0:18.3.4-5.amzn2.0.2 or higher.
This issue was patched in ALAS2-2026-3330.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mesa-libGLES-devel package and not the mesa-libGLES-devel package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 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