Heap-based buffer overflow in OpenJPEG - CVE-2021-3575
Published: August 23, 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 sycc420_to_rgb() function in color.c. A remote attacker can pass specially crafted image data 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
Oracle Solaris
Slackware Linux
Ubuntu
openEuler
Fedora
libopenjp3d7 (Ubuntu package)
libopenjpip7 (Ubuntu package)
libopenjp2-7 (Ubuntu package)
openjpeg2
openjpeg2-debugsource
openjpeg2-devel
openjpeg2-debuginfo
openjpeg2-help
mingw-openjpeg2
openjpeg
How to mitigate CVE-2021-3575
libopenjpip7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.3, 2.4.0-6ubuntu0.2, 2.5.0-2ubuntu0.2, 2.5.0-2ubuntu1.1
libopenjp2-7 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.3.1-1ubuntu4.20.04.3, 2.4.0-6ubuntu0.2, 2.5.0-2ubuntu0.2, 2.5.0-2ubuntu1.1
openjpeg2 - update to 2.3.1-9
openjpeg2-debugsource - update to 2.3.1-9
openjpeg2-devel - update to 2.3.1-9
openjpeg2-debuginfo - update to 2.3.1-9
openjpeg2-help - update to 2.3.1-9
openjpeg2 - addressed in versions 2.3.1-11.fc33, 2.4.0-3.fc34
mingw-openjpeg2 - addressed in versions 2.3.1-12.fc33, 2.4.0-3.fc34
openjpeg - update to 2.5.1
External References
- https://bugzilla.redhat.com/show_bug.cgi?id=1957616
- https://github.com/uclouvain/openjpeg/issues/1347
- https://ubuntu.com/security/CVE-2021-3575
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QB6AI7CWXWMEDZIQY4LQ6DMIEXMDOHUP/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZ54FGM2IGAP4AWSJ22JKHOPHCR3FGYU/