Details have emerged about two vulnerabilities in the JPEG XL format decoder supplied with the FFmpeg package, which could allow an attacker to execute code when processing specially crafted images in FFmpeg. The issues were resolved in the FFmpeg 6.1 release, but since support for JPEG XL is included starting from branch 6.1, the vulnerability affects only systems using experimental builds of FFmpeg 6.1 or carrying changes from it.
The first vulnerability (CVE-2024-22860) is caused by an integer overflow in the JPEG XL parser, resulting from the lack of a size overflow check for the int type. The second vulnerability (CVE-2024-22862) arose due to an integer overflow in the jpegxl_anim_read_packet function, used for decoding animations, and is related to the use of a signed int64_t type instead of an unsigned uint64_t. These issues are specific to FFmpeg and do not manifest in the reference implementation of libjxl.
Source: opennet.ru
