Out-of-bounds Write Affecting mesa-libGL package, versions <0:24.2.6-1268.amzn2023.0.1


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-AMZN2023-MESALIBGL-16352062
  • published3 May 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:2023 mesa-libGL to version 0:24.2.6-1268.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2026-1623.

NVD Description

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