CVEfocus › CVE database › CVE-2022-46285

CVE-2022-46285

CVSS 7.5 HighEPSS 1.3% (higher than 71% of CVEs)Published 2023-02-07Updated 2025-03-25Assigner: redhat

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.

CWE-835

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

27Fixed
2Fix pending
3Under investigation
10Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10motifFix pendingUBUNTU-CVE-2022-46285
Ubuntu 26.04libxpmNot affected
vulnerable_code_not_present
Ubuntu 26.04motifUnder investigationUBUNTU-CVE-2022-46285
Ubuntu 25.10libxpmNot affected
vulnerable_code_not_present
Ubuntu 25.10motifWill not fix
motif contains a vendored copy of libxpm under lib/Xm/ with files prefixed by Xpm eg. the file src/parse.c in libxpm is lib/Xm/Xpmparse.c
UBUNTU-CVE-2022-46285
Ubuntu 24.04libxpmNot affected
vulnerable_code_not_present
Ubuntu 24.04motifUnder investigationUBUNTU-CVE-2022-46285
Ubuntu 22.04libxpmFixed1:3.5.12-1ubuntu0.22.04.1UBUNTU-CVE-2022-46285
Ubuntu 22.04motifUnder investigationUBUNTU-CVE-2022-46285
Ubuntu 20.04libxpmFixed1:3.5.12-1ubuntu0.20.04.1UBUNTU-CVE-2022-46285
Ubuntu 20.04motifWill not fix
motif contains a vendored copy of libxpm under lib/Xm/ with files prefixed by Xpm eg. the file src/parse.c in libxpm is lib/Xm/Xpmparse.c
UBUNTU-CVE-2022-46285
Ubuntu 18.04libxpmFixed1:3.5.12-1ubuntu0.18.04.2UBUNTU-CVE-2022-46285
Ubuntu 18.04motifWill not fix
motif contains a vendored copy of libxpm under lib/Xm/ with files prefixed by Xpm eg. the file src/parse.c in libxpm is lib/Xm/Xpmparse.c
UBUNTU-CVE-2022-46285
Ubuntu 16.04libxpmWill not fix
motif contains a vendored copy of libxpm under lib/Xm/ with files prefixed by Xpm eg. the file src/parse.c in libxpm is lib/Xm/Xpmparse.c
1:3.5.11-1ubuntu0.16.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-46285
Ubuntu 16.04motifWill not fix
motif contains a vendored copy of libxpm under lib/Xm/ with files prefixed by Xpm eg. the file src/parse.c in libxpm is lib/Xm/Xpmparse.c
UBUNTU-CVE-2022-46285
Ubuntu 14.04libxpmFix pending1:3.5.10-1ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-46285
Ubuntu 14.04motifWill not fix
motif contains a vendored copy of libxpm under lib/Xm/ with files prefixed by Xpm eg. the file src/parse.c in libxpm is lib/Xm/Xpmparse.c
UBUNTU-CVE-2022-46285
Debian 14libxpmFixed1:3.5.12-1.1DEBIAN-CVE-2022-46285
Debian 13libxpmFixed1:3.5.12-1.1DEBIAN-CVE-2022-46285
Debian 12libxpmFixed1:3.5.12-1.1DEBIAN-CVE-2022-46285
Red Hat Enterprise Linux 9libXpmFixed0:3.5.13-8.el9_1RHSA-2023:0383
Red Hat Enterprise Linux 9libXpm-develFixed0:3.5.13-8.el9_1RHSA-2023:0383
Red Hat Enterprise Linux 8libXpmFixed0:3.5.12-9.el8_7RHSA-2023:0379
Red Hat Enterprise Linux 8libXpm-develFixed0:3.5.12-9.el8_7RHSA-2023:0379
Red Hat Enterprise Linux 7libXpmWill not fix
Out of support scope
Red Hat Enterprise Linux 7libXpm-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libXpmWill not fix
Out of support scope
Red Hat Enterprise Linux 6libXpm-develWill not fix
Out of support scope
AlmaLinux 9libXpmFixed3.5.13-8.el9_1ALSA-2023:0383
AlmaLinux 9libXpm-develFixed3.5.13-8.el9_1ALSA-2023:0383
AlmaLinux 8libXpmFixed3.5.12-9.el8_7ALSA-2023:0379
AlmaLinux 8libXpm-develFixed3.5.12-9.el8_7ALSA-2023:0379
Rocky Linux 9libXpmFixed0:3.5.13-8.el9_1RLSA-2023:0383
Rocky Linux 8libXpmFixed0:3.5.12-9.el8_7RLSA-2023:0379
Alpine Linux 3.24libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.23libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.22libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.21libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.20libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.19libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.18libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.17libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.16libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.15libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285
Alpine Linux 3.14libxpmFixed3.5.15-r0ALPINE-CVE-2022-46285

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.