Details have been revealed about two vulnerabilities in the JPEG XL decoder provided in the FFmpeg package, which could lead to the execution of malicious code when processing specially crafted images in FFmpeg. The issues were fixed in the FFmpeg 6.1 release, but since JPEG XL support is included starting from version 6.1, the vulnerability only affects systems using experimental builds of FFmpeg 6.1 or backporting changes from it.
The first vulnerability (CVE-2024-22860) is caused by an integer overflow in the JPEG XL parser due to a lack of bounds checking on the int type size. The second vulnerability (CVE-2024-22862) arose from an integer overflow in the jpegxl_anim_read_packet function used for decoding animations, and is related to the use of signed int64_t instead of unsigned uint64_t. The issues are specific to FFmpeg and do not manifest in the reference implementation of libjxl.
Quelle: opennet.ru
