Cloudanix VulnDB

CVE-2022-35092

Medium · 5.5

CVSS

5.5

EPSS

0.4%

Published

Sep 23, 2022

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in a widely used graphics library can make programs that display or process images crash when they receive certain unusual files.

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

The vulnerability triggers a segmentation violation in convert_gfxline within the graphics polygon conversion routine, resulting in an application crash and denial of service.

Why it matters to the business

Organizations relying on affected SDL2 packages across Ubuntu and Debian LTS releases face potential application instability and service disruption when processing malformed graphics data; the issue has been publicly known for over four years with an available exploit but remains low in observed exploitation volume.

How an attack unfolds

An attacker supplies a specially crafted input file or stream that exercises the convert_gfxline path; when the library processes the malformed graphics data the segmentation violation occurs, crashing the consuming application.

How to fix it

Upgrade to the fixed package versions: Ubuntu 18.04 Pro LTS to 2.0.8+dfsg1-1ubuntu1.18.04.4+esm1, Ubuntu 20.04 Pro LTS to 2.0.10+dfsg1-3ubuntu0.1~esm1, Ubuntu 22.04 LTS to 2.0.14+dfsg2-3, Debian 11/12/13 to 2.0.14+dfsg2-2. Rebuild and restart any applications statically or dynamically linked against the vulnerable SDL2 libraries after the update.

How to confirm the fix worked

Verify installed package versions match or exceed the listed fixed releases using the distribution package manager; recompile or relink dependent applications and confirm they no longer crash when processing the previously triggering input.

Typical attack path

  1. Identify an application or service that links against a vulnerable SDL2 package and accepts untrusted graphics input
  2. Craft or obtain a malformed file or data stream that reaches the polygon conversion routine
  3. Deliver the input to the target application
  4. Trigger processing that invokes convert_gfxline, inducing the segmentation fault and crash

How to detect it

Review system and application logs for segmentation fault entries or abrupt process terminations around the time of graphics file processing; correlate with file access or user-supplied content ingestion events.

What your security team should do

  • Apply the listed fixed package versions on all affected Ubuntu and Debian systems as the primary remediation
  • Scan build and runtime environments for static or dynamic linking against vulnerable SDL2 versions
  • Monitor for any downstream applications that bundle older SDL2 copies and update them accordingly
  • Test critical graphics-processing workloads after patching to confirm stability

The record

SWFTools commit 772e55a2 was discovered to contain a segmentation violation via convert_gfxline at /gfxpoly/convert.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