CVE-2021-22564
JSON

4.5medium

Out of bounds Copy in Libjxl in large image groups

Severity
4.5medium CVSS:3.1 by Google
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Google

Description

For certain valid JPEG XL images with a size slightly larger than an integer number of groups (256x256 pixels) when processing the groups out of order the decoder can perform an out of bounds copy of image pixels from an image buffer in the heap to another. This copy can occur when processing the right or bottom edges of the image, but only when groups are processed in certain order. Groups can be processed out of order in multi-threaded decoding environments with heavy thread load but also with images that contain the groups in an arbitrary order in the file. It is recommended to upgrade past 0.6.0 or patch with https://github.com/libjxl/libjxl/pull/775

Affected

Product or packageVersionsReported by
Google LLC libjxlfrom unspecified up to 0.6.0CVE List
libjxl_project libjxlup to 0.6.0NVD

All scores

Google4.5medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD2.1low CVSS:2.0AV:L/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

For certain valid JPEG XL images with a size slightly larger than an integer number of groups (256x256 pixels) when processing the groups out of order the decoder can perform an out of bounds copy of image pixels from an image buffer in the heap to another. This copy can occur when processing the right or bottom edges of the image, but only when groups are processed in certain order. Groups can be processed out of order in multi-threaded decoding environments with heavy thread load but also with images that contain the groups in an arbitrary order in the file. It is recommended to upgrade past 0.6.0 or patch with https://github.com/libjxl/libjxl/pull/775

NVD (es)

Para determinadas imágenes JPEG XL válidas con un tamaño ligeramente superior a un número entero de grupos (256x256 píxeles), cuando son procesados los grupos fuera de orden, el descodificador puede llevar a cabo una copia fuera de límites de los píxeles de la imagen desde un búfer de imagen en la pila a otro. Esta copia puede producirse cuando son procesados los bordes derecho o inferior de la imagen, pero sólo cuando los grupos son procesados en un orden determinado. Los grupos pueden ser procesados fuera de orden en entornos de decodificación multihilo con gran carga de hilos, pero también con imágenes que contienen los grupos en un orden arbitrario en el archivo. Se recomienda actualizar a partir de la versión 0.6.0 o parchear con https://github.com/libjxl/libjxl/pull/775

References

https://github.com/libjxl/libjxl/pull/775patch, third-party-advisory
https://github.com/libjxl/libjxl/issues/708exploit, issue-tracking, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-22564 changed 2024-09-17CVE Terms of Use
NVDCVE-2021-22564 changed 2026-06-17Public domain