CVE Vulnerabilities

CVE-2022-48434

Use After Free

Published: Mar 29, 2023 | Modified: Nov 21, 2024
CVSS 3.x
8.1
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

libavcodec/pthread_frame.c in FFmpeg before 5.1.2, as used in VLC and other products, leaves stale hwaccel state in worker threads, which allows attackers to trigger a use-after-free and execute arbitrary code in some circumstances (e.g., hardware re-initialization upon a mid-video SPS change when Direct3D11 is used).

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
FfmpegFfmpeg*5.1.2 (excluding)
FfmpegUbuntubionic*
FfmpegUbuntuesm-apps/bionic*
FfmpegUbuntuesm-apps/focal*
FfmpegUbuntuesm-apps/jammy*
FfmpegUbuntuesm-apps/xenial*
FfmpegUbuntufocal*
FfmpegUbuntujammy*
FfmpegUbuntukinetic*
FfmpegUbuntutrusty*
FfmpegUbuntuupstream*
FfmpegUbuntuxenial*

Potential Mitigations

References