Description
Multiple integer overflows in libXpm before 3.5.12, when a program requests parsing XPM extensions on a 64-bit platform, allow remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via (1) the number of extensions or (2) their concatenated length in a crafted XPM file, which triggers a heap-based buffer overflow.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libxpm | 1:3.5.12-1 | — |
| Debian 13 | libxpm | 1:3.5.12-1 | — |
| Debian 12 | libxpm | 1:3.5.12-1 | — |
| Debian 8 | libxpm | 1:3.5.12-0+deb8u1 | DSA-3772-1 |
| Debian 7 | libxpm | 1:3.5.10-1+deb7u1 | DLA-801-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libxpm | 1:3.5.11-1ubuntu0.16.04.1 | USN-3185-1 |
| Ubuntu 14.04 LTS | libxpm | 1:3.5.10-1ubuntu0.1 | USN-3185-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | libICE +1 | 1.0.9-9.el7 | RHSA-2017:1865 |
| RHEL 7 | libX11 +2 | 1.6.5-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXaw +1 | 1.0.13-4.el7 | RHSA-2017:1865 |
| RHEL 7 | libXcursor +1 | 1.1.14-8.el7 | RHSA-2017:1865 |
| RHEL 7 | libXdmcp +1 | 1.1.2-6.el7 | RHSA-2017:1865 |
| RHEL 7 | libXfixes +1 | 5.0.3-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXfont +1 | 1.5.2-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXfont2 +1 | 2.0.1-2.el7 | RHSA-2017:1865 |
| RHEL 7 | libXi +1 | 1.7.9-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXpm +1 | 3.5.12-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXrandr +1 | 1.5.1-2.el7 | RHSA-2017:1865 |
| RHEL 7 | libXrender +1 | 0.9.10-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXt +1 | 1.1.5-3.el7 | RHSA-2017:1865 |
| RHEL 7 | libXtst +1 | 1.2.3-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXv +1 | 1.0.11-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXvMC +1 | 1.0.10-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libXxf86vm +1 | 1.1.4-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libdrm +2 | 2.4.74-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libepoxy +1 | 1.3.1-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libevdev +2 | 1.5.6-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libfontenc +1 | 1.1.3-3.el7 | RHSA-2017:1865 |
| RHEL 7 | libinput +1 | 1.6.3-2.el7 | RHSA-2017:1865 |
| RHEL 7 | libvdpau +2 | 1.1.1-3.el7 | RHSA-2017:1865 |
| RHEL 7 | libwacom +2 | 0.24-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libxcb +2 | 1.12-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libxkbcommon +3 | 0.7.1-1.el7 | RHSA-2017:1865 |
| RHEL 7 | libxkbfile +1 | 1.0.9-3.el7 | RHSA-2017:1865 |
| RHEL 7 | mesa +16 | 17.0.1-6.20170307.el7 | RHSA-2017:1865 |
| RHEL 7 | mesa-private-llvm +1 | 3.9.1-3.el7 | RHSA-2017:1865 |
| RHEL 7 | vulkan +2 | 1.0.39.1-2.el7 | RHSA-2017:1865 |
| RHEL 7 | xcb-proto | 1.12-2.el7 | RHSA-2017:1865 |
| RHEL 7 | xkeyboard-config +1 | 2.20-1.el7 | RHSA-2017:1865 |
| RHEL 7 | xorg-x11-proto-devel | 7.7-20.el7 | RHSA-2017:1865 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | libXpm | 3.5.11-5.1 | SUSE-SU-2017:0467-1 |
| SLES 12 SP1 | libXpm | 3.5.11-5.1 | SUSE-SU-2017:0467-1 |
| SLES 11 SP4 | xorg-x11-libXpm | 7.4-3.1 | SUSE-SU-2017:0470-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP2 | libXpm | 3.5.11-5.1 | SUSE-SU-2017:0467-1 |
| SLES for SAP 12 SP1 | libXpm | 3.5.11-5.1 | SUSE-SU-2017:0467-1 |
| SLES for SAP 11 SP4 | xorg-x11-libXpm | 7.4-3.1 | SUSE-SU-2017:0470-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.4 | libxpm | 3.5.12-r0 | — |
| Alpine v3.3 | libxpm | 3.5.12-r0 | — |
| Alpine v3.2 | libxpm | 3.5.12-r0 | — |
Advisories 6
- RHSA-2017:1865 Red Hat Security Advisory: X.org X11 libraries security, bug fix and enhancement update Red Hat Security Advisories (RHSA) · Jul 1, 2026
- USN-3185-1 libxpm vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-801-1 libxpm - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3772-1 libxpm - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:0470-1 Security update for xorg-x11-libXpm SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:0467-1 Security update for libXpm SUSE / openSUSE Security Updates · Feb 4, 2026
References
- [oss-security] 20170125 Re: CVE Request: libXpm < 3.5.12 heap overflow mailing-list
- [xorg] 20161215 [ANNOUNCE] libXpm 3.5.12 mailing-list
- [oss-security] 20170122 CVE Request: libXpm < 3.5.12 heap overflow mailing-list
- 95785 vdb-entry
- https://cgit.freedesktop.org/xorg/lib/libXpm/commit/?id=d1167418f0fd02a27f617ec5afd6db053afbe185
- RHSA-2017:1865 vendor-advisory
- DSA-3772 vendor-advisory
- GLSA-201701-72 vendor-advisory