CVE-2023-2804

NameCVE-2023-2804
DescriptionA heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function of jdmrgext.c file. The vulnerability can only be exploited with 12-bit data precision for which the range of the sample data type exceeds the valid sample range, hence, an attacker could craft a 12-bit lossless JPEG image that contains out-of-range 12-bit samples. An application attempting to decompress such image using merged upsampling would lead to segmentation fault or buffer overflows, causing an application to crash.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

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+deb8u3fixed
stretch (security)1:1.5.1-2+deb9u2fixed
stretch (lts), stretch1:1.5.1-2+deb9u3fixed
buster1:1.5.2-2+deb10u1fixed
bullseye1:2.0.6-4fixed
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-turbosource(unstable)(not affected)

Notes

- libjpeg-turbo <not-affected> (Vulnerable code not present)
https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021

Search for package or bug name: Reporting problems