CVE-2020-24222
Description
Buffer Overflow vulnerability in jfif_decode() function in rockcarry ffjpeg through version 1.0.0, allows local attackers to execute arbitrary code due to an issue with ALIGN.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Local buffer overflow in ffjpeg jfif_decode() due to improper alignment, allowing arbitrary code execution via crafted JPEG.
Vulnerability
A buffer overflow vulnerability exists in the jfif_decode() function of rockcarry ffjpeg through version 1.0.0. The issue is caused by an improper ALIGN operation in the function, leading to a segment fault when processing a crafted JPEG file. The vulnerability occurs at jfif.c:545 in line yuv_to_rgb(*ysrc, *usrc, *vsrc, bdst + 2, bdst + 1, bdst + 0) during JPEG decoding [1].
Exploitation
An attacker must have local access to the system and provide a specially crafted JPEG file to the ffjpeg tool using the command ffjpeg -d [file_name]. The fuzzer-generated crash sample triggers a segmentation fault (SIGSEGV) in the jfif_decode function, indicating that the overflow can be reliably triggered without requiring special privileges [1].
Impact
Successful exploitation of this buffer overflow can allow a local attacker to execute arbitrary code. The crash occurs in a context where memory corruption is achieved, potentially leading to code execution with the privileges of the user running ffjpeg [1].
Mitigation
As of the publication date, no patched version of ffjpeg has been released. Version 1.0.0 is confirmed affected, and the repository does not indicate an available fix. Users should avoid processing untrusted JPEG files with ffjpeg until a patch is issued, or consider using alternative JPEG decoding libraries. This vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
1News mentions
0No linked articles in our index yet.