libXpm: Remote execution of arbitrary code — GLSA 201701-72

An integer overflow in libXpm might allow remote attackers to execute arbitrary code or cause a Denial of Service Condition.

Affected packages

x11-libs/libXpm on all architectures
Affected versions < 3.5.12
Unaffected versions >= 3.5.12

Background

The X PixMap image format is an extension of the monochrome X BitMap format specified in the X protocol, and is commonly used in traditional X applications.

Description

An integer overflow was discovered in libXpm’s src/CrDatFrI.c file. On 64 bit systems, this allows an overflow to occur on 32 bit integers while parsing XPM extensions in a file.

Impact

A remote attacker, by enticing a user to process a specially crafted XPM file, could execute arbitrary code with the privileges of the process or cause a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All libXpm users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=x11-libs/libXpm-3.5.12"
 

References

Release date
January 29, 2017

Latest revision
January 29, 2017: 1

Severity
normal

Exploitable
remote

Bugzilla entries