CVE-2021-22564: Out of bounds Copy in Libjxl in large image groups
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 Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2021-22564?
CVE-2021-22564 has been classified as a medium severity vulnerability.
How do I fix CVE-2021-22564?
To fix CVE-2021-22564, upgrade to version 0.6.1 or later of the Libjxl library.
What impact does CVE-2021-22564 have on affected software?
CVE-2021-22564 can lead to potential out-of-bounds memory access which may allow for arbitrary code execution.
Are there any workarounds for CVE-2021-22564?
There are no known workarounds for CVE-2021-22564; updating the library is the recommended action.
What software versions are affected by CVE-2021-22564?
CVE-2021-22564 affects Libjxl versions up to and including 0.6.0.