CVE-2022-46285: High severity suse libxpm vulnerability

Published Jan 11, 2023
·
Updated

A flaw was found in libXpm. This issue occurs when parsing a file with a comment not closed; the end-of-file condition will not be detected, leading to an infinite loop and resulting in a Denial of Service in the application linked to the library.

Other sources

When reading XPM images from a file with libXpm 3.5.14 or older, if a comment in the file is not closed (i.e. a C-style comment starts with "/" and is missing the closing "/"), the ParseComment() function will loop forever calling getc() to try to read the rest of the comment, failing to notice that it has returned EOF, which may cause a denial of service to the calling program.

Red Hat

Affected Software

3 affected componentsFixes available
redhat/libXpm<3.5.15
3.5.15
debian/libxpm
1:3.5.12-1.1+deb11u11:3.5.12-1.1+deb12u11:3.5.17-1
X.Org Libxpm<3.5.15

Event History

Jan 17, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 7, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:12 AM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·03:40 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-46285?

CVE-2022-46285 is a vulnerability in libXpm that can lead to a Denial of Service (DoS) attack due to an infinite loop caused by parsing a file with an unclosed comment.

2

How does CVE-2022-46285 affect the application?

CVE-2022-46285 can cause a Denial of Service (DoS) in the application linked to libXpm.

3

What is the severity of CVE-2022-46285?

CVE-2022-46285 has a severity rating of 7.5, which is classified as high.

4

Which versions of libXpm are affected by CVE-2022-46285?

Versions 1:3.5.11-1ubuntu0.16.04.1+ to 1:3.5.12-1ubuntu0.22.10.1 of libXpm are affected by CVE-2022-46285.

5

How can I fix CVE-2022-46285?

To fix CVE-2022-46285, it is recommended to update libXpm to version 3.5.15 or apply the specific remedies provided by the respective distribution or vendor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203