CVE-2023-2804
published medium CVSS 3.1 · 6.5libjpeg-turbo: heap-buffer-overflow in h2v2_merged_upsample_internal() at /libjpeg-turbo/jdmrgext.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | libjpeg-turboFixed in libjpeg-turbo v3.0 (beta2) | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | libjpeg-turbo | Fixed | 2.1.5.1-r4 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg-turboaarch64 | Advisory build | 3.0.1-77.1 | OPENSUSE-SU-2024:13552-1 |
| Alpine Linux | v3.18 | libjpeg-turbo | Fixed | 2.1.5.1-r3 | Package fix record |
| Alpine Linux | v3.19 | libjpeg-turbo | Fixed | 2.1.5.1-r4 | Package fix record |
| Alpine Linux | v3.20 | libjpeg-turbo | Fixed | 2.1.5.1-r4 | Package fix record |
Show 39 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | libjpeg-turbo | Fixed | 2.1.5.1-r4 | Package fix record |
| Alpine Linux | v3.22 | libjpeg-turbo | Fixed | 2.1.5.1-r4 | Package fix record |
| Alpine Linux | v3.23 | libjpeg-turbo | Fixed | 2.1.5.1-r4 | Package fix record |
| Alpine Linux | v3.24 | libjpeg-turbo | Fixed | 2.1.5.1-r4 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg-turboppc64le | Advisory build | 3.0.1-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg-turbos390x | Advisory build | 3.0.1-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg-turbox86_64 | Advisory build | 3.0.1-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8aarch64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8ppc64le | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8s390x | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8x86_64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-32bitaarch64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-32bitppc64le | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-32bits390x | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-32bitx86_64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-develaarch64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-develppc64le | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-devels390x | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-develx86_64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-devel-32bitaarch64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-devel-32bitppc64le | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-devel-32bits390x | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-devel-32bitx86_64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-x86-64-v3aarch64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-x86-64-v3ppc64le | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-x86-64-v3s390x | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libjpeg8-x86-64-v3x86_64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0aarch64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0ppc64le | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0s390x | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0x86_64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0-32bitaarch64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0-32bitppc64le | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0-32bits390x | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0-32bitx86_64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0-x86-64-v3aarch64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0-x86-64-v3ppc64le | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0-x86-64-v3s390x | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libturbojpeg0-x86-64-v3x86_64 | Advisory build | 8.3.2-77.1 | OPENSUSE-SU-2024:13552-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | libjpeg-turbo | Fixed in libjpeg-turbo v3.0 (beta2) (affected) | redhat · cna |
Weaknesses
1- CWE-122 CWE-122 - Heap-based Buffer Overflow
References
6- https://access.redhat.com/security/cve/CVE-2023-2804
- https://bugzilla.redhat.com/show_bug.cgi?id=2208447
- https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021
- https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118
- https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 903eb4d1def19a06b0e33650d2aa6da5a6ec19162cbdfe874aecc1dc0b379cc3
- Ingested
- 23 Sep 2026, 08:08:16 UTC
- Source record
- Official CVE record