CVE-2022-35434
Medium · 5.5CVSS
5.5
EPSS
0.5%
Published
Aug 16, 2022
CISA due date
—
Cloudanix analysis
A tool that cleans up JPEG images can suddenly crash when given a specially made picture file, interrupting any work that depends on it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Floating point exception triggered during processing of a specially crafted JPEG input file, resulting in process termination and denial of service.
Why it matters to the business
Workflows that rely on jpeg-quantsmooth to handle image files can be disrupted by crashes when encountering malformed inputs, with increased urgency due to the age of the issue and availability of exploits.
How an attack unfolds
An attacker crafts a JPEG file that triggers a floating point exception inside the jpeg-quantsmooth library; the file is then supplied to a victim application or command-line tool that links against the vulnerable code, causing an immediate crash.
How to fix it
Update jpeg-quantsmooth to a version containing commit 8879454 or later; rebuild any dependent packages against the patched library; restrict processing to trusted image sources until upgraded.
How to confirm the fix worked
Confirm the installed binary or library is built from a source tree that includes commit 8879454; test processing of known trigger files to verify absence of FPE; review build logs for the patched revision.
Typical attack path
- Identify or generate a JPEG input that triggers division by zero or other floating-point error in the quant-smooth routines
- Deliver the crafted file to a target system via email, web download, or shared storage
- Trick a user or automated process into invoking jpeg-quantsmooth on the file
- Observe process crash and resulting denial of service
How to detect it
Search application and system logs for segmentation faults, floating-point exceptions, or abrupt terminations of jpeg-quantsmooth or processes linking it; correlate with recent file-access events involving JPEG files from untrusted sources.
What your security team should do
- Prioritize patching or replacing jpeg-quantsmooth in all image-processing pipelines
- Add the library to the organization's vulnerable-component inventory for ongoing monitoring
- Implement input sanitization or sandboxing for any remaining unpatched instances
- Review logs for crashes or abnormal exits when jpeg-quantsmooth is invoked
The record
jpeg-quantsmooth before commit 8879454 contained a floating point exception (FPE) via /jpeg-quantsmooth/jpegqs+0x4f5d6c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | jpegqs | 0 | 1.20210408-3 |
| Debian:13 | jpegqs | 0 | 1.20210408-3 |
| Ubuntu:22.04:LTS | jpegqs | 0 | No fix |
| Ubuntu:24.04:LTS | jpegqs | 0 | No fix |
| Ubuntu:24.10 | jpegqs | 0 | No fix |
| Ubuntu:25.04 | jpegqs | 0 | No fix |
| Ubuntu:25.10 | jpegqs | 0 | No fix |
Related vulnerabilities
- CVE-2026-101913 ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in… CWE-697
- CVE-2026-101912 ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in… CWE-697
- CVE-2026-90711 proxy-addr is a Node.js module that determines a request's client address behind trusted… CWE-697
- CVE-2026-64836 ICEcoder versions through 8.1 contain a path traversal vulnerability in the file-control… CWE-697
- CVE-2026-56101 OpenBSD before commit 1ee99df contains an inverted comparison vulnerability in the… CWE-697
- CVE-2026-73309 XenForo before 2.3.13 contains an authentication bypass vulnerability in the OAuth2 token… CWE-697
- CVE-2026-80227 Incorrect Comparison vulnerability in ash-project ash_sql allows a user to pad a string… CWE-697
- CVE-2026-18664 When ranges are used for access control (i.e. CWE-697