Vulnerability · Published Oct 31, 2024 · Assigned by redhat

CVE-2024-10573Mpg123: buffer overflow when writing decoded pcm samples

Medium 6.7

In plain English

A medium-severity out-of-bounds write in mpg123. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.7Medium
Exploit odds (30 days)0.3%top 71.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

An out-of-bounds write flaw was found in mpg123 when handling crafted streams. When decoding PCM, the libmpg123 may write past the end of a heap-located buffer. Consequently, heap corruption may happen, and arbitrary code execution is not discarded. The complexity required to exploit this flaw is considered high as the payload must be validated by the MPEG decoder and the PCM synth before execution. Additionally, to successfully execute the attack, the user must scan through the stream, making web live stream content (such as web radios) a very unlikely attack vector.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8mpg1231.32.9-1.el8_10ALSA-2024:11193
AlmaLinux:9mpg1231.32.9-1.el9_5ALSA-2024:11242
AlmaLinux:8mpg123-devel1.32.9-1.el8_10ALSA-2024:11193
AlmaLinux:9mpg123-devel1.32.9-1.el9_5ALSA-2024:11242
AlmaLinux:8mpg123-libs1.32.9-1.el8_10ALSA-2024:11193
AlmaLinux:9mpg123-libs1.32.9-1.el9_5ALSA-2024:11242
AlmaLinux:8mpg123-plugins-pulseaudio1.32.9-1.el8_10ALSA-2024:11193
AlmaLinux:9mpg123-plugins-pulseaudio1.32.9-1.el9_5ALSA-2024:11242
Alpine:v3.21mpg1231.32.8-r0ALPINE-CVE-2024-10573
Alpine:v3.22mpg1231.32.8-r0ALPINE-CVE-2024-10573
Alpine:v3.23mpg1231.32.8-r0ALPINE-CVE-2024-10573
Alpine:v3.24mpg1231.32.8-r0ALPINE-CVE-2024-10573
Debian:12mpg1231.31.2-1+deb12u1DEBIAN-CVE-2024-10573
Debian:12mpg1231.31.2-1+deb12u1DSA-5811-1
Debian:13mpg1231.32.8-1DEBIAN-CVE-2024-10573
Debian:14mpg1231.32.8-1DEBIAN-CVE-2024-10573
Rocky Linux:8mpg1230:1.32.9-1.el8_10RLSA-2024:11193
Rocky Linux:9mpg1230:1.32.9-1.el9_5RLSA-2024:11242
Ubuntu:22.04:LTSmpg1231.29.3-1ubuntu0.1USN-7092-1
Ubuntu:22.04:LTSmpg1231.29.3-1ubuntu0.1UBUNTU-CVE-2024-10573
Ubuntu:24.04:LTSmpg1231.32.5-1ubuntu1.1UBUNTU-CVE-2024-10573
Ubuntu:24.04:LTSmpg1231.32.5-1ubuntu1.1USN-7092-1

Affected products (as reported)

VendorProductVersions
mpg123 0 – before 1.32.8
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 7 see references

Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

References