Bug 2100044 (CVE-2021-46822) - CVE-2021-46822 libjpeg-turbo: heap buffer overflow in get_word_rgb_row() in rdppm.c
Summary: CVE-2021-46822 libjpeg-turbo: heap buffer overflow in get_word_rgb_row() in r...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-46822
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2102187 2101702 2101704 2101764 2103010 2103011 2169447
Blocks: 2099351
TreeView+ depends on / blocked
 
Reported: 2022-06-22 09:07 UTC by TEJ RATHI
Modified: 2024-03-18 12:51 UTC (History)
27 users (show)

Fixed In Version: libjpeg-turbo 2.1.0
Doc Type: If docs needed, set a value
Doc Text:
A heap-based buffer overflow vulnerability was found in libjpeg-turbo in the get_word_rgb_row() function in rdppm.c. The flaw occurs when the PPM reader in libjpeg-turbo mishandles use of the tjLoadImage() function for loading a 16-bit binary PPM file into a grayscale uncompressed image buffer and then loading a 16-bit binary PGM file into an RGB uncompressed image buffer. This flaw allows a remote attacker to persuade a victim to open a specially-crafted file, causing the application to crash.
Clone Of:
Environment:
Last Closed: 2023-03-06 17:09:16 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:1068 0 None None None 2023-03-06 10:56:11 UTC

Description TEJ RATHI 2022-06-22 09:07:30 UTC
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.

https://exchange.xforce.ibmcloud.com/vulnerabilities/221567
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2

Comment 1 TEJ RATHI 2022-06-28 07:54:25 UTC
Created libjpeg-turbo tracking bugs for this issue:

Affects: fedora-all [bug 2101702]


Created mingw-libjpeg-turbo tracking bugs for this issue:

Affects: fedora-all [bug 2101704]

Comment 5 errata-xmlrpc 2023-03-06 10:56:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:1068 https://access.redhat.com/errata/RHSA-2023:1068

Comment 6 Product Security DevOps Team 2023-03-06 17:09:12 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-46822


Note You need to log in before you can comment on or make changes to this bug.