CVE Vulnerabilities

CVE-2022-34568

Use After Free

Published: Jul 28, 2022 | Modified: Jun 17, 2026
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
LOW

SDL v1.2 was discovered to contain a use-after-free via the XFree function at /src/video/x11/SDL_x11yuv.c.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
Simple_directmedia_layerLibsdl1.2.1 (including)1.2.15 (including)
Libsdl1.2Ubuntubionic*
Libsdl1.2Ubuntuesm-apps/focal*
Libsdl1.2Ubuntuesm-apps/jammy*
Libsdl1.2Ubuntuesm-infra-legacy/xenial*
Libsdl1.2Ubuntuesm-infra/bionic*
Libsdl1.2Ubuntuesm-infra/xenial*
Libsdl1.2Ubuntufocal*
Libsdl1.2Ubuntujammy*
Libsdl1.2Ubuntukinetic*
Libsdl1.2Ubuntulunar*
Libsdl1.2Ubuntutrusty*
Libsdl1.2Ubuntutrusty/esm*
Libsdl1.2Ubuntuxenial*
Libsdl2Ubuntuesm-apps/xenial*
Libsdl2Ubuntutrusty*
Libsdl2Ubuntuxenial*

Potential Mitigations

References