CVE-2021-46822

NameCVE-2021-46822
DescriptionThe PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesELA-639-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libjpeg-turbo (PTS)jessie, jessie (lts)1:1.3.1-12+deb8u3vulnerable
stretch (security)1:1.5.1-2+deb9u2vulnerable
stretch (lts), stretch1:1.5.1-2+deb9u3fixed
buster1:1.5.2-2+deb10u1vulnerable
bullseye1:2.0.6-4vulnerable
bookworm1:2.1.5-2fixed
sid, trixie1:2.1.5-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libjpeg-turbosourcestretch1:1.5.1-2+deb9u3ELA-639-1
libjpeg-turbosource(unstable)1:2.1.1-1

Notes

[bullseye] - libjpeg-turbo <no-dsa> (Minor issue)
[buster] - libjpeg-turbo <no-dsa> (Minor issue)
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2 (2.1.0)
[jessie] - libjpeg-turbo <no-dsa> (Minor issue)

Search for package or bug name: Reporting problems