Vulnerability Details : CVE-2023-2804
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.
Vulnerability category: OverflowMemory Corruption
Products affected by CVE-2023-2804
- cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:2.1.90:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-2804
0.24%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 62 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-2804
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
2.8
|
3.6
|
NIST |
CWE ids for CVE-2023-2804
-
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().Assigned by: secalert@redhat.com (Secondary)
-
The product writes data past the end, or before the beginning, of the intended buffer.Assigned by: nvd@nist.gov (Primary)
References for CVE-2023-2804
-
https://github.com/libjpeg-turbo/libjpeg-turbo/issues/668#issuecomment-1492586118
Heap Buffer Overflow in /libjpeg-turbo/jquant2.c:224 at prescan_quantize() (SIGSEGV) · Issue #668 · libjpeg-turbo/libjpeg-turbo · GitHubExploit;Issue Tracking;Patch
-
https://bugzilla.redhat.com/show_bug.cgi?id=2208447
2208447 – (CVE-2023-2804) CVE-2023-2804 libjpeg-turbo: heap-buffer-overflow in h2v2_merged_upsample_internal() at /libjpeg-turbo/jdmrgext.cIssue Tracking;Patch
-
https://github.com/libjpeg-turbo/libjpeg-turbo/issues/675
heap-buffer-overflow at /libjpeg-turbo/jdmrgext.c:126 in h2v2_merged_upsample_internal() (SIGSEGV) · Issue #675 · libjpeg-turbo/libjpeg-turbo · GitHubExploit;Issue Tracking;Patch
-
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/9f756bc67a84d4566bf74a0c2432aa55da404021
Lossless decomp: Range-limit 12-bit samples · libjpeg-turbo/libjpeg-turbo@9f756bc · GitHubPatch
-
https://access.redhat.com/security/cve/CVE-2023-2804
cve-detailsThird Party Advisory
-
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-01006.html
INTEL-SA-01006
Jump to