SB2022010103 - Multiple vulnerabilities in Libjxl
Published: January 1, 2022 Updated: November 25, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 3 vulnerabilities.
1) Out-of-bounds write (CVE-ID: CVE-2021-45928)
CWE-ID: CWE-787 - Out-of-bounds write
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists due to a boundary error within the jxl::ModularFrameDecoder::DecodeGroup() function. A local user can trigger an out-of-bounds write and perform a denial of service (DoS) attack.
2) Heap-based buffer overflow (CVE-ID: CVE-2021-22564)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory and potentially crash the decoder.
The vulnerability exists due to a heap-based buffer overflow in the JPEG XL decoder when pixel copies at the right or bottom image edge exceed buffer bounds after groups are processed out of order because of file ordering or thread scheduling. A remote attacker can supply a JPEG XL image for decoding to trigger heap memory corruption and potentially crash the decoder.
3) Out-of-bounds read (CVE-ID: CVE-2021-22563)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to crash the decoding process or potentially expose data from its memory through the rendered image.
The vulnerability exists due to an out-of-bounds read in libjxl's spline renderer when processing an invalid JPEG XL image. A remote attacker can trick a victim into opening a crafted JPEG XL image to crash the decoding process or potentially expose process memory through the rendered splines.
Remediation
Install update from vendor's website.
References
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36456
- https://github.com/libjxl/libjxl/pull/365
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libvips/OSV-2021-1055.yaml
- https://github.com/libjxl/libjxl/issues/360
- https://github.com/libjxl/libjxl/compare/v0.5...v0.6
- https://github.com/libjxl/libjxl/security/advisories/GHSA-4qrh-mvcg-349p
- https://github.com/libjxl/libjxl/security/advisories/GHSA-fw8c-5996-j6q5