CVE-2026-138208

Description

A flaw was found in libmediainfo. When processing a specially crafted MPEG-4 file, improper validation of track identifier data in the MPEG-4 parser leads to an out-of-bounds memory write. A remote attacker could exploit this vulnerability by enticing a user or automated system to process a malicious media file, potentially leading to arbitrary code execution or an application crash resulting in a Denial of Service (DoS).

Statement

Red Hat has evaluated this vulnerability as having an Important security impact because an out-of-bounds memory write allows arbitrary code execution within the context of the calling process or causes an application crash. Although exploiting this flaw requires an end user or automated ingest workflow to parse an untrusted MPEG-4 container, media parsing utilities routinely handle external content, which elevates the risk above Moderate. Without proper isolation, malformed track structures directly compromise the integrity and availability of the host application.

Mitigation

Isolate media processing workflows and restrict input sources using the following operational controls:

1. Avoid parsing MPEG-4 files from untrusted or unverified sources with applications that rely on libmediainfo.
2. If libmediainfo is used in automated ingest pipelines or background services, restrict process privileges and filesystem exposure using sandboxing mechanisms, such as containers or systemd unit hardening directives (e.g., ProtectSystem=strict, ProtectHome=yes, PrivateTmp=yes).
3. If libmediainfo is not required for system operations, remove the package:
   # dnf remove libmediainfo

Caveat: Sandboxing confines potential arbitrary code execution to the isolated environment but does not prevent application crashes or denial of service when processing malformed media files. Removing the package may remove dependent multimedia or desktop applications; verify the package transaction list prior to confirming removal.

Understanding the Weakness (CWE)

Integrity

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.

Other

Technical Impact: Unexpected State

Subsequent write operations can produce undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.