Heap-based buffer overflow in jhead - CVE-2021-34055
Published: December 5, 2022 / Updated: June 8, 2023
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the Put16u() function in exif.c. A remote attacker can pass specially crafted image file to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Debian Linux
Ubuntu
jhead (Ubuntu package)
jhead (Debian package)
How to mitigate CVE-2021-34055
jhead (Ubuntu package) - addressed in versions Ubuntu Pro, 1:3.00-8~ubuntu0.2, 1:3.04-1ubuntu0.2, 1:3.06.0.1-2ubuntu0.22.04.1, 1:3.06.0.1-2ubuntu0.22.10.1
jhead (Debian package) - update to 1:3.04-6+deb11u1