Description
smpeg through 2.0.0 contains an integer underflow vulnerability in stream_header() in MPEGsystem.cpp that allows attackers to wrap packet_size by declaring an undersized packet length. Attackers can supply a crafted MPEG file opened via SMPEG_new, SMPEG_new_rwops or SMPEG_new_data to trigger a reachable assertion or out-of-bounds copy, crashing the application.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| icculus | smpeg | ≤ 2.0.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | smpeg | No fix yet | — |
| Debian 13 | smpeg | No fix yet | — |
| Debian 12 | smpeg | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | smpeg | No fix yet | — |
| Ubuntu 26.04 LTS | smpeg | No fix yet | — |
| Ubuntu 24.04 LTS | smpeg | No fix yet | — |
| Ubuntu 22.04 LTS | smpeg | No fix yet | — |
| Ubuntu 20.04 LTS | smpeg | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | smpeg | No fix yet | — |
| Ubuntu 16.04 LTS | smpeg | No fix yet | — |
References
- https://hackmd.io/@haindpwn/smpeg-system-header-stream-table-oob-read technical-description exploit
- https://github.com/icculus/smpeg/blob/d188dc111f4817288718705e4a84e248803ccfdc/MPEGsystem.cpp#L295-L350 technical-description
- https://github.com/icculus/smpeg/blob/d188dc111f4817288718705e4a84e248803ccfdc/MPEGsystem.cpp#L777 technical-description
- https://github.com/icculus/smpeg product
- VulnCheck Advisory: smpeg through 2.0.0 Integer Underflow via stream_header in MPEGsystem.cpp third-party-advisory