MGASA-2020-0040

Source
https://advisories.mageia.org/MGASA-2020-0040.html
Import Source
https://advisories.mageia.org/MGASA-2020-0040.json
JSON Data
https://api.osv.dev/v1/vulns/MGASA-2020-0040
Published
2020-01-17T10:16:50Z
Modified
2026-04-16T04:26:05.433695Z
Summary
Updated libjpeg packages fix security vulnerabilities
Details

The updated packages fix security vulnerabilities:

A signed integer overflow and subsequent segfault that occurred when attempting to decompress images with more than 715827882 pixels using the 64-bit C version of TJBench.

Out-of-bounds write in tjDecompressToYUV2() and tjDecompressToYUVPlanes() (sometimes manifesting as a double free) that occurred when attempting to decompress grayscale JPEG images that were compressed with a sampling factor other than 1 (for instance, with cjpeg -grayscale -sample 2x2).

A regression introduced by 2.0.2[5] that caused the TurboJPEG API to incorrectly identify some JPEG images with unusual sampling factors as 4:4:4 JPEG images. This was known to cause a buffer overflow when attempting to decompress some such images using tjDecompressToYUV2() or tjDecompressToYUVPlanes().

An issue, detected by ASan, whereby attempting to losslessly transform a specially-crafted malformed JPEG image containing an extremely-high- frequency coefficient block (junk image data that could never be generated by a legitimate JPEG compressor) could cause the Huffman encoder's local buffer to be overrun.

References
Credits

Affected packages

Mageia:7 / libjpeg

Package

Name
libjpeg
Purl
pkg:rpm/mageia/libjpeg?arch=source&distro=mageia-7

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.4-1.mga7

Ecosystem specific

{
    "section": "core"
}

Database specific

source
"https://advisories.mageia.org/MGASA-2020-0040.json"