CVE-2021-39583
Medium · 5.5CVSS
5.5
EPSS
0.7%
Published
Sep 20, 2021
CISA due date
—
Cloudanix analysis
A flaw in certain file-handling software can cause it to crash unexpectedly when given a specially made file, interrupting any tasks that rely on that software.
- 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
A NULL pointer dereference in pool_lookup_string2() within pool.c crashes the process when handling malformed input during string pool operations.
Why it matters to the business
Workflows that process untrusted files with the affected software can experience sudden application failures and halted operations.
How an attack unfolds
An attacker supplies a specially crafted input file that reaches the vulnerable string lookup routine with invalid data, triggering the dereference and immediate crash on any system running the unpatched code.
How to fix it
Apply any available upstream patches to pool.c that validate pointers before dereference; if no official release exists, replace the tool with a maintained alternative or sandbox its execution to limit blast radius.
How to confirm the fix worked
Re-run the original crashing input against the updated binary and confirm the process exits cleanly without dereference; inspect source for explicit NULL checks around pool_lookup_string2 callers.
Typical attack path
- Create a malformed input file that exercises the NULL dereference path in pool_lookup_string2
- Deliver the file through normal channels such as email, web download, or shared storage
- Convince the target to open or process the file with a vulnerable swftools utility
- Trigger the crash and resulting denial of service
How to detect it
Review process crash logs and core dumps for stack traces referencing pool.c or pool_lookup_string2; correlate with file-processing events involving swftools binaries.
What your security team should do
- Remove or isolate swftools from any automated file-processing pipelines until a fixed build is obtained
- Add input sanitization and sandboxing around remaining instances
- Track upstream commits for a corrected release and test it promptly
The record
An issue was discovered in swftools through 20200710. A NULL pointer dereference exists in the function pool_lookup_string2() located in pool.c. It allows an attacker to cause Denial of Service.
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