Skip to content
OpenAdvisories
Medium · 6.5 CVE-2023-2804 EUVD-2023-34257GHSA-jv36-3qpq-7g23

A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function of jdmrgext.c file. The vuln…

Published May 25, 2023 · Updated Jan 16, 2025 · Assigned by redhat

Description

A 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.

Affected products

VendorProductAffectedFixed
— libjpeg-turbo Fixed in libjpeg-turbo v3.0 (beta2) —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libjpeg-turbo 8.3.2-77.1 openSUSE-SU-2024:13552-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libjpeg-turbo 2.1.5.1-r4 —
Alpine v3.23 libjpeg-turbo 2.1.5.1-r4 —
Alpine v3.22 libjpeg-turbo 2.1.5.1-r4 —
Alpine v3.21 libjpeg-turbo 2.1.5.1-r4 —
Alpine v3.20 libjpeg-turbo 2.1.5.1-r4 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libjpeg-turbo 2.1.5.1-r4 —
Alpine v3.18 libjpeg-turbo 2.1.5.1-r3 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling libjpeg-turbo 2.1.91-r3 —

Advisories 4

References