CVE-2022-35110
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A flaw in a file processing tool can cause it to use up more and more memory over time, potentially making the program stop working.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
The vulnerability is a memory leak in the memory management functions in lib/mem.c, which fails to release allocated memory under certain conditions, leading to gradual depletion of system resources.
Why it matters to the business
Prolonged use of the affected tool can lead to increased memory consumption, potentially causing application crashes or system instability in environments where SWFTools is used for processing files.
How an attack unfolds
An attacker with local access can craft a malicious input file that triggers repeated allocations without corresponding frees when processed by SWFTools, leading to memory exhaustion.
How to fix it
Update to a version of SWFTools that addresses the memory leak in lib/mem.c; if no fixed version is available, consider alternative tools or sandbox the execution to limit resource usage.
How to confirm the fix worked
Review source code changes in mem.c for proper memory deallocation calls; test with memory profiling tools like Valgrind to ensure no leaks on typical inputs.
Typical attack path
- Obtain local access to a system with SWFTools installed
- Prepare a specially crafted input file designed to trigger the memory leak
- Execute the vulnerable SWFTools command with the malicious file
- Monitor system memory usage until exhaustion occurs, causing denial of service
How to detect it
Check system logs for unusual memory usage patterns or OOM killer events associated with SWFTools processes; look for repeated executions with specific file types.
What your security team should do
- Assess usage of SWFTools in the environment and limit to trusted inputs
- Monitor for updates from the project maintainers
- Implement resource limits on processes using the tool
The record
SWFTools commit 772e55a2 was discovered to contain a memory leak via /lib/mem.c.
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