Bug 2160193 (CVE-2022-44617) - CVE-2022-44617 libXpm: Runaway loop on width of 0 and enormous height
Summary: CVE-2022-44617 libXpm: Runaway loop on width of 0 and enormous height
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-44617
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: 2160231 2160232 2161710 2161798 2161799 2161808 2161809 2161810 2161811 2161813
Blocks: 2159932
TreeView+ depends on / blocked
 
Reported: 2023-01-11 17:16 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-02-22 16:04 UTC (History)
3 users (show)

Fixed In Version: libXpm 3.5.15
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in libXpm. When processing a file with width of 0 and a very large height, some parser functions will be called repeatedly and can lead to an infinite loop, resulting in a Denial of Service in the application linked to the library.
Clone Of:
Environment:
Last Closed: 2023-02-22 16:04:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2023:0454 0 None None None 2023-01-25 14:48:29 UTC
Red Hat Product Errata RHBA-2023:0458 0 None None None 2023-01-25 15:11:45 UTC
Red Hat Product Errata RHBA-2023:0465 0 None None None 2023-01-25 18:08:48 UTC
Red Hat Product Errata RHBA-2023:0474 0 None None None 2023-01-26 17:13:01 UTC
Red Hat Product Errata RHBA-2023:0475 0 None None None 2023-01-26 17:14:33 UTC
Red Hat Product Errata RHBA-2023:0477 0 None None None 2023-01-26 17:16:00 UTC
Red Hat Product Errata RHBA-2023:0478 0 None None None 2023-01-26 17:16:43 UTC
Red Hat Product Errata RHBA-2023:0489 0 None None None 2023-01-30 13:53:52 UTC
Red Hat Product Errata RHBA-2023:0492 0 None None None 2023-01-30 13:56:47 UTC
Red Hat Product Errata RHSA-2023:0378 0 None None None 2023-01-23 17:55:44 UTC
Red Hat Product Errata RHSA-2023:0379 0 None None None 2023-01-23 17:54:35 UTC
Red Hat Product Errata RHSA-2023:0380 0 None None None 2023-01-23 17:53:27 UTC
Red Hat Product Errata RHSA-2023:0381 0 None None None 2023-01-23 17:56:57 UTC
Red Hat Product Errata RHSA-2023:0382 0 None None None 2023-01-23 17:58:07 UTC
Red Hat Product Errata RHSA-2023:0383 0 None None None 2023-01-23 17:53:53 UTC
Red Hat Product Errata RHSA-2023:0384 0 None None None 2023-01-23 17:52:51 UTC

Description Guilherme de Almeida Suckevicz 2023-01-11 17:16:28 UTC
When reading XPM images from a file with libXpm 3.5.14 or older, if a image has a width of 0 and a very large height, the ParsePixels() function will loop over the entire height calling getc() and ungetc() repeatedly, or in some circumstances, may loop seemingly forever, which may cause a denial of service to the calling program when given a small crafted XPM file to parse.

Comment 7 Guilherme de Almeida Suckevicz 2023-01-17 17:05:02 UTC
Created libXpm tracking bugs for this issue:

Affects: fedora-all [bug 2161710]

Comment 9 errata-xmlrpc 2023-01-23 17:52:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions

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

Comment 10 errata-xmlrpc 2023-01-23 17:53:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support
  Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.2 Telecommunications Update Service

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

Comment 11 errata-xmlrpc 2023-01-23 17:53:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 12 errata-xmlrpc 2023-01-23 17:54:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 13 errata-xmlrpc 2023-01-23 17:55:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

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

Comment 14 errata-xmlrpc 2023-01-23 17:56:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

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

Comment 15 errata-xmlrpc 2023-01-23 17:58:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Extended Update Support

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

Comment 16 Product Security DevOps Team 2023-02-22 16:04:27 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-2022-44617


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