{"id":"MGASA-2020-0040","aliases":[],"status":"published","title":"Updated libjpeg packages fix security vulnerabilities","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2020-01-17T10:16:50Z","modified":"2026-04-16T04:26:05Z","fixes":[{"ecosystem":"Mageia:7","package":"libjpeg","fixed_in":["2.0.4-1.mga7"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Mageia:7","package":"libjpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4-1.mga7"}]}]}],"references":[{"url":"https://advisories.mageia.org/MGASA-2020-0040.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=26057","tags":["report"]},{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/releases/tag/2.0.4","tags":["web"]}],"sources":{"osv":[{"id":"MGASA-2020-0040","title":"Updated libjpeg packages fix security vulnerabilities","description":"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","status":"published","published":"2020-01-17T10:16:50Z","modified":"2026-04-16T04:26:05.433695Z","updated_at":"2026-11-02T15:49:41.151324Z"}]}}
