CVE-2022-38861
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Sep 15, 2022
CISA due date
—
Cloudanix analysis
A flaw in an older media player can make the program crash when it tries to play certain video or audio files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Memory corruption triggered through the free_mp_image() function in libmpcodecs/mp_image.c when processing crafted media input.
Why it matters to the business
Application instability or denial of service on systems that play media with the affected player, with potential for further compromise if memory corruption is leveraged.
How an attack unfolds
An attacker crafts a malicious media file designed to trigger the vulnerable free_mp_image() path; when a user opens the file locally with the affected player, the memory corruption occurs.
How to fix it
Upgrade MPlayer to a version newer than SVN-r38374-13.0.1; Debian users should apply any available security updates for the mplayer package or migrate to an unaffected media player.
How to confirm the fix worked
Verify the installed MPlayer version is newer than the vulnerable SVN revision; attempt playback of known triggering media files in a controlled environment to confirm absence of crashes.
Typical attack path
- Craft a malicious media file that exercises the free_mp_image() code path with invalid data
- Deliver the file to the target via email, download, or removable media
- Victim opens the file using the vulnerable MPlayer binary
- Memory corruption occurs, potentially leading to crash or further exploitation
How to detect it
Review system and application logs for MPlayer segmentation faults or abnormal termination when processing media files; examine crash dumps or core files for references to mp_image.c.
What your security team should do
- Prioritize removal or replacement of MPlayer on any systems that handle untrusted media
- Monitor vendor or distribution advisories for backported fixes
- Restrict execution of legacy media players through application allow-listing
The record
The MPlayer Project mplayer SVN-r38374-13.0.1 is vulnerable to memory corruption via function free_mp_image() of libmpcodecs/mp_image.c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | mplayer | 0 | 2:1.3.0-8+deb10u1 |
| Debian:11 | mplayer | 0 | 2:1.4+ds1-1+deb11u1 |
| Debian:12 | mplayer | 0 | 2:1.5+svn38408-1 |
| Debian:13 | mplayer | 0 | 2:1.5+svn38408-1 |
| Mageia:9 | mplayer | 0 | 1.5-12.1.mga9 |
| Mageia:9 | mplayer | 0 | 1.5-12.1.mga9.tainted |
| Ubuntu:18.04:LTS | mplayer | 0 | 2:1.3.0-7ubuntu0.2 |
| Ubuntu:20.04:LTS | mplayer | 0 | 2:1.3.0-8+deb10u1build0.20.04.1 |
| Ubuntu:22.04:LTS | mplayer | 0 | 2:1.4+ds1-3ubuntu0.1 |
| Ubuntu:Pro:16.04:LTS | mplayer | 0 | 2:1.2.1-1ubuntu1.1+esm1 |
Related vulnerabilities
- CVE-2022-38864 Certain The MPlayer Project products are vulnerable to Buffer Overflow via the function… Also affects mplayer
- CVE-2013-6933 The parseRTSPRequestString function in Live Networks Live555 Streaming Media 2011.08.13… Also affects mplayer
- CVE-2008-3827 Multiple integer underflows in the Real demuxer (demux_real.c) in MPlayer 1.0_rc2 and… Also affects mplayer
- CVE-2008-1558 Uncontrolled array index in the sdpplin_parse function in stream/realrtsp/sdpplin.c in… Also affects mplayer
- CVE-2011-3625 Stack-based buffer overflow in the sub_read_line_sami function in subreader.c in MPlayer… Also affects mplayer
- CVE-2007-4938 Heap-based buffer overflow in libmpdemux/aviheader.c in MPlayer 1.0rc1 and earlier allows… Also affects mplayer
- CVE-2004-0386 Buffer overflow in the HTTP parser for MPlayer 1.0pre3 and earlier, 0.90, and 0.91 allows… Also affects mplayer
- CVE-2022-38862 Certain The MPlayer Project products are vulnerable to Buffer Overflow via function… Also affects mplayer