mpg123: Playlist buffer overflow — GLSA 200412-22

mpg123 is vulnerable to a buffer overflow that allows an attacker to execute arbitrary code through the use of a malicious playlist.

Affected packages

media-sound/mpg123 on all architectures
Affected versions < 0.59s-r8
Unaffected versions >= 0.59s-r8

Background

mpg123 is a MPEG Audio Player.

Description

Bartlomiej Sieka discovered that mpg123 contains an unsafe strcat() to an array in playlist.c. This code vulnerability may lead to a buffer overflow.

Impact

A remote attacker could craft a malicious playlist which, when used, would result in the execution of arbitrary code with the rights of the user running mpg123.

Workaround

There is no known workaround at this time.

Resolution

All mpg123 users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=media-sound/mpg123-0.59s-r8"

References

Release date
December 21, 2004

Latest revision
December 21, 2004: 01

Severity
normal

Exploitable
remote

Bugzilla entries