CVE-2022-35085
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Sep 21, 2022
CISA due date
—
Cloudanix analysis
A programming error can make certain software slowly use up more and more computer memory until programs slow down or stop working.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
Memory leak in /lib/mem.c allows repeated allocation without corresponding release, leading to gradual exhaustion of available memory and eventual denial of service.
Why it matters to the business
Systems may experience progressive slowdowns or crashes under sustained load, increasing operational costs for restarts and monitoring while reducing service availability; prevalence in widely used packages amplifies exposure across many environments.
How an attack unfolds
An attacker supplies specially crafted input to a local process that exercises the leaking code path; over multiple invocations the leak accumulates until memory pressure triggers process termination or system instability.
How to fix it
Upgrade elastic/elasticsearch (GIT) to commit be13c699d0ab4706ec25626375b0965e3cdfa138 or later; rebuild any dependent packages against the patched source and verify the memory-management changes are present.
How to confirm the fix worked
Confirm the running binary or library was built from the fixed commit; run memory-leak detection tools under sustained load to verify allocations are released; monitor resident set size for stability.
Typical attack path
- Identify a local process or utility that invokes the vulnerable memory allocation routines
- Craft and repeatedly feed input that triggers the leak without triggering immediate crashes
- Monitor system memory usage until exhaustion produces denial of service
- Repeat or automate to maintain pressure on availability
How to detect it
Review process memory growth logs, system resource monitors, and any application logs that record allocation failures or out-of-memory events; correlate with execution of utilities known to use the affected code.
What your security team should do
- Prioritize patching all instances of the affected package within the next maintenance window
- Add memory-usage monitoring and alerting for processes that parse untrusted input
- Review build pipelines to ensure future updates pull from the corrected repository state
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