The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
CVE-2021-46822 - Medium Severity Vulnerability
Vulnerable Library - wlinbjjpegsrc.v6b
soft
Library home page: https://sourceforge.net/projects/wlinbj/
Found in base branch: master
Vulnerable Source Files (3)
/blackrain2020/original-sources-3rd-party/stegdetect-0.6.tar/stegdetect-0.6/jpeg-6b/rdppm.c /blackrain2020/original-sources-3rd-party/stegdetect-0.6.tar/stegdetect-0.6/jpeg-6b/rdppm.c /blackrain2020/original-sources-3rd-party/stegdetect-0.6.tar/stegdetect-0.6/jpeg-6b/rdppm.c
Vulnerability Details
The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.
Publish Date: 2022-06-18
URL: CVE-2021-46822
CVSS 3 Score Details (5.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46822
Release Date: 2022-06-18
Fix Resolution: 2.1.0
Step up your Open Source Security Game with Mend here