CVE-2021-45260
Medium · 5.5CVSS
5.5
EPSS
0.6%
Published
Dec 22, 2021
CISA due date
—
Cloudanix analysis
A flaw in the gpac media software can cause it to stop working suddenly when it tries to open certain files, forcing users or automated tools to restart the program.
- 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
Null pointer dereference in lsr_read_id.part triggers segmentation fault and immediate process termination when parsing specially crafted input.
Why it matters to the business
Media processing or playback applications using gpac become unavailable after handling a single malicious file, interrupting workflows that depend on reliable local file handling.
How an attack unfolds
An attacker crafts a file that reaches the vulnerable lsr_read_id.part code path; the file is opened locally by a user or automated process, causing the application to crash with no further attacker interaction required.
How to fix it
Upgrade gpac to a version that resolves the null pointer dereference in lsr_read_id.part; if no patched release is available, replace gpac with an unaffected media library or sandbox all invocations of gpac to limit crash impact.
How to confirm the fix worked
Reproduce the crash with a known triggering file before and after the upgrade; confirm the process no longer terminates and that normal media files continue to process without error.
Typical attack path
- Generate or obtain a file that triggers the null dereference in lsr_read_id.part
- Deliver the file via email, download link, or shared storage
- Victim or automated job opens the file with gpac or a dependent application
- Application crashes due to segmentation fault
How to detect it
Review system and application logs for segmentation fault entries or core dumps containing references to lsr_read_id.part; correlate with gpac process terminations on hosts that process untrusted media files.
- lsr_read_id.part
- segmentation fault.*gpac
- gpac.*core dumped
What your security team should do
- Inventory all systems and containers that invoke gpac for media processing
- Block or filter untrusted files from reaching gpac until patched
- Monitor crash logs for segmentation faults originating from lsr_read_id.part
- Plan migration or upgrade within the next maintenance window
The record
A null pointer dereference vulnerability exists in gpac 1.1.0 in the lsr_read_id.part function, which causes a segmentation fault and application crash.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | gpac | 0 | No fix |
| Ubuntu:20.04:LTS | gpac | 0 | No fix |
| Ubuntu:22.04:LTS | gpac | 0 | No fix |
| Ubuntu:24.04:LTS | gpac | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | gpac | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | gpac | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | gpac | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | gpac | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | gpac | 0 | No fix |
| Ubuntu:Pro:24.04:LTS | gpac | 0 | No fix |
Related vulnerabilities
- CVE-2023-4679 A use after free vulnerability exists in GPAC version 2.3-DEV-revrelease, specifically in… Also affects gpac
- CVE-2023-46931 GPAC 2.3-DEV-rev605-gfc9e29089-master contains a heap-buffer-overflow in… Also affects gpac
- CVE-2021-46311 A NULL pointer dereference vulnerability exists in GPAC v1.1.0 via the function… Also affects gpac
- CVE-2021-46313 The binary MP4Box in GPAC v1.0.1 was discovered to contain a segmentation fault via the… Also affects gpac
- CVE-2021-46234 A NULL pointer dereference vulnerability exists in GPAC v1.1.0 via the function… Also affects gpac
- CVE-2021-46238 GPAC v1.1.0 was discovered to contain a stack overflow via the function gf_node_get_name… Also affects gpac
- CVE-2021-46240 A NULL pointer dereference vulnerability exists in GPAC v1.1.0 via the function… Also affects gpac
- CVE-2021-46239 The binary MP4Box in GPAC v1.1.0 was discovered to contain an invalid free vulnerability… Also affects gpac