CVE-2022-31287
Medium · 5.5CVSS
5.5
EPSS
0.7%
Published
Jun 10, 2022
CISA due date
—
Cloudanix analysis
A bug in video file handling software can make programs crash when they open certain video files, interrupting any services that depend on them.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability triggers an erroneous memory allocation size request in Ap4RtpAtom.cpp when parsing malformed RTP atoms inside MP4 containers, resulting in application crash or resource exhaustion.
Why it matters to the business
Media processing, transcoding, or analysis workflows that rely on Bento4 can be disrupted by crashes when handling untrusted video files, leading to service downtime and operational delays.
How an attack unfolds
An attacker creates a specially crafted MP4 file containing a malformed RTP atom designed to provoke an invalid allocation size. When the target application parses the file, the allocation error occurs and the process terminates or exhausts resources.
How to fix it
Upgrade Bento4 to a patched release that corrects the allocation logic in Ap4RtpAtom.cpp; apply input sanitization or sandbox media parsers until a fixed version is available.
How to confirm the fix worked
Reproduce the issue with known malformed RTP atom test cases to confirm crashes; inspect source changes in Ap4RtpAtom.cpp for safe allocation size computation and re-test with the same samples.
Typical attack path
- Craft MP4 file with malformed RTP atom data
- Deliver the file to a system running vulnerable Bento4 code
- Trigger file parsing via local application or library call
- Induce allocation size error causing denial of service
How to detect it
Review application crash reports and logs for allocation failures or errors referencing RTP atom processing; search for repeated abnormal memory requests during MP4 file handling.
What your security team should do
- Patch Bento4 across all media-handling services as soon as a fixed build is released
- Restrict processing of untrusted MP4 files to isolated environments
- Add runtime monitoring for allocation failures in RTP atom parsing paths
The record
An issue was discovered in Bento4 v1.2. There is an allocation size request error in /Ap4RtpAtom.cpp.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:22.04:LTS | kodi-inputstream-adaptive | 0 | No fix |
| Ubuntu:24.04:LTS | kodi-inputstream-adaptive | 0 | No fix |
| Ubuntu:24.10 | kodi-inputstream-adaptive | 0 | No fix |
| Ubuntu:25.04 | kodi-inputstream-adaptive | 0 | No fix |
| Ubuntu:25.10 | kodi-inputstream-adaptive | 0 | No fix |
Related vulnerabilities
- CVE-2022-3974 A vulnerability classified as critical was found in Axiomatic Bento4. Also affects kodi-inputstream-adaptive
- CVE-2022-3807 A vulnerability was found in Axiomatic Bento4. Also affects kodi-inputstream-adaptive
- CVE-2022-40884 Bento4 1.6.0 has memory leaks via the mp4fragment. Also affects kodi-inputstream-adaptive
- CVE-2022-31282 Bento4 MP4Dump v1.2 was discovered to contain a segmentation violation via an unknown… Also affects kodi-inputstream-adaptive
- CVE-2022-31285 An issue was discovered in Bento4 1.2. Also affects kodi-inputstream-adaptive
- CVE-2022-29017 Bento4 v1.6.0.0 was discovered to contain a segmentation fault via the component… Also affects kodi-inputstream-adaptive
- CVE-2026-114731 Roundcube Webmail before 1.6.20 and 1.7.x before 1.7.5 is affected by an uncontrolled… CWE-770
- CVE-2026-96377 Allocation of Resources Without Limits or Throttling vulnerability in Drupal Combined… CWE-770