Cloudanix VulnDB

CVE-2022-35434

Medium · 5.5

CVSS

5.5

EPSS

0.5%

Published

Aug 16, 2022

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A tool that cleans up JPEG images can suddenly crash when given a specially made picture file, interrupting any work that depends on it.

Exploit Available
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

  1. Identify or generate a JPEG input that triggers division by zero or other floating-point error in the quant-smooth routines
  2. Deliver the crafted file to a target system via email, web download, or shared storage
  3. Trick a user or automated process into invoking jpeg-quantsmooth on the file
  4. 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