Gentoo Logo

libwmf: Buffer overflow vulnerability


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200608-17 / libwmf
Release Date August 10, 2006
Latest Revision August 10, 2006: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-libs/libwmf < >= All supported architectures

Related bugreports: #139325


libwmf is vulnerable to an integer overflow potentially resulting in the execution of arbitrary code.

2.  Impact Information


libwmf is a library for reading and converting vector images in Microsoft's native Windows Metafile Format (WMF).


infamous41md discovered that libwmf fails to do proper bounds checking on the MaxRecordSize variable in the WMF file header. This could lead to an head-based buffer overflow.


By enticing a user to open a specially crafted WMF file, a remote attacker could cause a heap-based buffer overflow and execute arbitrary code with the permissions of the user running the application that uses libwmf.

3.  Resolution Information


There is no known workaround for this issue.


All libwmf users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libwmf-"

4.  References


Page updated August 10, 2006

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.