CVE-2022-35101
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A flaw in an older Flash-file handling program can make the program crash when it tries to open certain 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 in memset-vec-unaligned-erms.S triggers segmentation violation, causing the process to crash.
Why it matters to the business
Workflows that convert or inspect SWF files can be interrupted by unexpected crashes, leading to processing delays in media pipelines.
How an attack unfolds
An attacker supplies a specially crafted SWF file to any swftools binary that reaches the vulnerable memset path; the fault is triggered locally during file parsing, resulting in denial of service. Public exploit code is available.
How to fix it
Update swftools to a version containing the corrected memset implementation; if no upstream fix exists, replace the tool with an alternative SWF processor or sandbox its execution.
How to confirm the fix worked
Re-run the affected binaries against known crashing inputs and confirm absence of segmentation faults; monitor upstream commit history for a fix to 772e55a2.
Typical attack path
- Obtain or generate malicious SWF input
- Invoke affected swftools utility (e.g., swfextract, swfrender) on the file
- Trigger unaligned memset operation
- Induce segmentation violation and process termination
How to detect it
Inspect system and application logs for segmentation fault entries involving swftools processes; correlate crash timestamps with file-processing jobs that handle untrusted SWF content.
What your security team should do
- Restrict swftools execution to trusted input sources only
- Wrap invocations in resource limits or containers to contain crashes
- Track project commits for a resolution and schedule upgrade once available
- Remove swftools from automated pipelines if feasible
The record
SWFTools commit 772e55a2 was discovered to contain a segmentation violation via /multiarch/memset-vec-unaligned-erms.S.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | swftools | 0 | No fix |
| Ubuntu:18.04:LTS | swftools | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | swftools | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | swftools | 0 | No fix |
Related vulnerabilities
- CVE-2024-28458 Null Pointer Dereference vulnerability in swfdump in swftools 0.9.2 allows attackers to… Also affects swftools
- CVE-2024-26334 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26337 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26335 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-26339 swftools v0.9.2 was discovered to contain a strcpy parameter overlap via… Also affects swftools
- CVE-2024-26333 swftools v0.9.2 was discovered to contain a segmentation violation via the function… Also affects swftools
- CVE-2024-25165 A global-buffer-overflow vulnerability was found in SWFTools v0.9.2, in the function… Also affects swftools
- CVE-2024-22956 swftools 0.9.2 was discovered to contain a heap-use-after-free vulnerability via the… Also affects swftools