CVE-2025-55286

z2d is a pure Zig 2D graphics library. z2d v0.7.0 released with a new multi-sample anti-aliasing (MSAA) method, which uses a new buffering mechanism for storing coverage data. This differs from the standard alpha mask surface used for the previous super-sample anti-aliasing (SSAA) method. Under certain circumstances where the path being drawn existed in whole or partly outside of the rendering surface, incorrect bounding could cause out-of-bounds access within the coverage buffer. This affects the higher-level drawing operations, such as Context.fill, Context.stroke, painter.fill, and painter.stroke, when either the .default or .multisample_4x anti-aliasing modes were used. .supersample_4x was not affected, nor was drawing without anti-aliasing. In non-safe optimization modes (consumers compiling with ReleaseFast or ReleaseSmall), this could potentially lead to invalid memory accesses or corruption. z2d v0.7.1 fixes this issue, and it's recommended to upgrade to v0.7.1, or, given the small period of time v0.7.0 has been released, use v0.7.1 immediately, skipping v0.7.0.
CVSS

No CVSS.

Configurations

No configuration.

History

18 Aug 2025, 20:16

Type Values Removed Values Added
Summary
  • (es) z2d es una librería de gráficos Zig 2D pura. z2d v0.7.0 se lanzó con un nuevo método de antialiasing multimuestra (MSAA), que utiliza un nuevo mecanismo de almacenamiento en búfer para almacenar datos de cobertura. Esto difiere de la superficie de máscara alfa estándar utilizada para el método anterior de antialiasing de supermuestra (SSAA). En ciertas circunstancias, cuando la ruta dibujada se encontraba total o parcialmente fuera de la superficie de renderizado, una delimitación incorrecta podía provocar un acceso fuera de los límites dentro del búfer de cobertura. Esto afecta a las operaciones de dibujo de alto nivel, como Context.fill, Context.stroke, painter.fill y painter.stroke, cuando se utilizaban los modos de antialiasing .default o .multisample_4x. .supersample_4x no se vio afectado, ni tampoco el dibujo sin antialiasing. En modos de optimización no seguros (consumidores que compilan con ReleaseFast o ReleaseSmall), esto podría provocar accesos no válidos a la memoria o corrupción. z2d v0.7.1 corrige este problema y se recomienda actualizar a v0.7.1 o, dado el pequeño período de tiempo desde que se lanzó v0.7.0, usar v0.7.1 inmediatamente y omitir v0.7.0.

16 Aug 2025, 01:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-08-16 01:15

Updated : 2025-08-18 20:16


NVD link : CVE-2025-55286

Mitre link : CVE-2025-55286

CVE.ORG link : CVE-2025-55286


JSON object : View

Products Affected

No product.

CWE
CWE-119

Improper Restriction of Operations within the Bounds of a Memory Buffer

CWE-122

Heap-based Buffer Overflow