Out-of-bounds write in libjpeg-turbo - CVE-2021-46822

 

Out-of-bounds write in libjpeg-turbo - CVE-2021-46822

Published: September 22, 2022


Vulnerability identifier: #VU67590
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-46822
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing images within the  get_word_rgb_row() function in rdppm.c. A remote attacker can pass a specially crafted file to the affected software, trigger an out-of-bounds write and execute arbitrary code on the target system.


Affected software

libjpeg-turbo
Anolis OS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Ubuntu
openEuler
libturbojpeg (Ubuntu package)
libjpeg-turbo8 (Ubuntu package)
libjpeg-turbo
libjpeg-turbo-devel
libjpeg-turbo-debugsource
libjpeg-turbo-debuginfo
libjpeg-turbo-help
libjpeg-turbo (Red Hat package)
libjpeg-turbo-utils
turbojpeg
Dell Data Protection Central

How to mitigate CVE-2021-46822

Install updates from vendor's website.

libjpeg-turbo - update to 2.1.0
libturbojpeg (Ubuntu package) - addressed in versions 1.5.2-0ubuntu5.18.04.6, 2.0.3-0ubuntu1.20.04.3
libjpeg-turbo8 (Ubuntu package) - addressed in versions 1.5.2-0ubuntu5.18.04.6, 2.0.3-0ubuntu1.20.04.3
libjpeg-turbo - update to 2.0.5-2
libjpeg-turbo-devel - update to 2.0.5-2
libjpeg-turbo-debugsource - update to 2.0.5-2
libjpeg-turbo-debuginfo - update to 2.0.5-2
libjpeg-turbo-help - update to 2.0.5-2
libjpeg-turbo (Red Hat package) - update to 2.0.90-6.el9_1
libjpeg-turbo - update to 2.0.90-6.0.1
libjpeg-turbo-devel - update to 2.0.90-6.0.1
libjpeg-turbo-utils - update to 2.0.90-6.0.1
turbojpeg - update to 2.0.90-6.0.1
Dell Data Protection Central - update to 19.9

External References

Related Security Bulletins