mpg123: Playlist buffer overflow

Security Team  Contact Address

Updated December 21, 2004

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200412-22 / mpg123
Release Date December 21, 2004
Latest Revision December 21, 2004: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-sound/mpg123 < 0.59s-r8 >= 0.59s-r8 All supported architectures

Related bugreports: #74692

Synopsis

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

2.  Impact Information

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.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All mpg123 users should upgrade to the latest version:

Code Listing 3.1: Resolution

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

4.  References