{"id":"MGASA-2020-0040","summary":"Updated libjpeg packages fix security vulnerabilities","details":"The updated packages fix security vulnerabilities:\n\nA signed integer overflow and subsequent segfault that occurred when\nattempting to decompress images with more than 715827882 pixels using\nthe 64-bit C version of TJBench.\n\nOut-of-bounds write in tjDecompressToYUV2() and tjDecompressToYUVPlanes()\n(sometimes manifesting as a double free) that occurred when attempting to\ndecompress grayscale JPEG images that were compressed with a sampling\nfactor other than 1 (for instance, with cjpeg -grayscale -sample 2x2).\n\nA regression introduced by 2.0.2[5] that caused the TurboJPEG API to\nincorrectly identify some JPEG images with unusual sampling factors as\n4:4:4 JPEG images. This was known to cause a buffer overflow when\nattempting to decompress some such images using tjDecompressToYUV2()\nor tjDecompressToYUVPlanes().\n\nAn issue, detected by ASan, whereby attempting to losslessly transform\na specially-crafted malformed JPEG image containing an extremely-high-\nfrequency coefficient block (junk image data that could never be\ngenerated by a legitimate JPEG compressor) could cause the Huffman\nencoder's local buffer to be overrun.\n","modified":"2026-04-16T04:26:05.433695Z","published":"2020-01-17T10:16:50Z","references":[{"type":"ADVISORY","url":"https://advisories.mageia.org/MGASA-2020-0040.html"},{"type":"REPORT","url":"https://bugs.mageia.org/show_bug.cgi?id=26057"},{"type":"WEB","url":"https://github.com/libjpeg-turbo/libjpeg-turbo/releases/tag/2.0.4"}],"affected":[{"package":{"name":"libjpeg","ecosystem":"Mageia:7","purl":"pkg:rpm/mageia/libjpeg?arch=source&distro=mageia-7"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-1.mga7"}]}],"ecosystem_specific":{"section":"core"},"database_specific":{"source":"https://advisories.mageia.org/MGASA-2020-0040.json"}}],"schema_version":"1.7.5","credits":[{"name":"Mageia","contact":["https://wiki.mageia.org/en/Packages_Security_Team"],"type":"COORDINATOR"}]}