CVE Database›CVE-2020-35538

CVE-2020-35538

libjpeg-turbo: Null pointer dereference in jcopy_sample_rows() function

Loading…

Severity

Low

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · July 6, 2020

Updated · November 21, 2025

Description

A vulnerability was found in libjpeg-turbo where a segmentation fault occurs due to a NULL pointer passing to jcopy_sample_rows(). You may see this error statement: "Corrupt JPEG data: premature end of data segment". When processed by a libjpeg-turbo, a crafted input file could cause a crash, leading to a denial of service.

Statement

This vulnerability is considered low severity rather than moderate because it primarily results in a denial of service (DoS) through a crash, without posing a direct risk of code execution or information disclosure. The issue arises due to a NULL pointer dereference when processing a malformed JPEG file, which leads to a segmentation fault but does not introduce memory corruption or arbitrary code execution risks. Additionally, most applications using libjpeg-turbo process images in a non-privileged context, meaning a crash does not compromise system security beyond affecting availability. Since the exploitation requires user interaction (i.e., opening a crafted JPEG), and modern systems can handle such crashes gracefully (e.g., automatic process restart mechanisms), the overall impact remains low.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CWE-476 · NULL Pointer Dereference