Buffer overflow in libcaca - CVE-2021-3410

 

Buffer overflow in libcaca - CVE-2021-3410

Published: September 27, 2022


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

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 caca_resize90 function in libcaca/caca/canvas.c. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libcaca
Gentoo Linux
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Storage
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server
Ubuntu
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise High Performance Computing
openSUSE Leap
libcaca0-debuginfo
libcaca0
libcaca0-plugins-debuginfo
libcaca0-plugins
libcaca-devel
libcaca-debugsource
libcaca0 (Ubuntu package)
caca-utils (Ubuntu package)
libcaca0-plugins-32bit-debuginfo
libcaca0-plugins-32bit
libcaca0-32bit-debuginfo
libcaca0-32bit
python3-caca
libcaca-ruby-debuginfo
libcaca-ruby
caca-utils-debuginfo
caca-utils

How to mitigate CVE-2021-3410

Install updates from vendor's website.

libcaca - update to 0.99 beta20
libcaca0-debuginfo - addressed in versions 0.99 beta18-14.12.1, 0.99 beta19.git20171003-150200.11.9.1
libcaca0 - addressed in versions 0.99 beta18-14.12.1, 0.99 beta19.git20171003-150200.11.9.1
libcaca0-plugins-debuginfo - addressed in versions 0.99 beta18-14.12.1, 0.99 beta19.git20171003-150200.11.9.1
libcaca0-plugins - addressed in versions 0.99 beta18-14.12.1, 0.99 beta19.git20171003-150200.11.9.1
libcaca-devel - addressed in versions 0.99 beta18-14.12.1, 0.99 beta19.git20171003-150200.11.9.1
libcaca-debugsource - addressed in versions 0.99 beta18-14.12.1, 0.99 beta19.git20171003-150200.11.9.1
libcaca0 (Ubuntu package) - addressed in versions 0.99 beta19-2.1ubuntu1.20.04.1, 0.99 beta19-2.1ubuntu1.20.10.1, 0.99.beta19-2ubuntu0.16.04.2, 0.99.beta19-2ubuntu0.18.04.2, 0.99.beta19-2ubuntu0.18.04.3
caca-utils (Ubuntu package) - addressed in versions 0.99 beta19-2.1ubuntu1.20.04.1, 0.99 beta19-2.1ubuntu1.20.10.1, 0.99.beta19-2ubuntu0.16.04.2, 0.99.beta19-2ubuntu0.18.04.2, 0.99.beta19-2ubuntu0.18.04.3
libcaca0-plugins-32bit-debuginfo - update to 0.99 beta19.git20171003-150200.11.9.1
libcaca0-plugins-32bit - update to 0.99 beta19.git20171003-150200.11.9.1
libcaca0-32bit-debuginfo - update to 0.99 beta19.git20171003-150200.11.9.1
libcaca0-32bit - update to 0.99 beta19.git20171003-150200.11.9.1
python3-caca - update to 0.99 beta19.git20171003-150200.11.9.1
libcaca-ruby-debuginfo - update to 0.99 beta19.git20171003-150200.11.9.1
libcaca-ruby - update to 0.99 beta19.git20171003-150200.11.9.1
caca-utils-debuginfo - update to 0.99 beta19.git20171003-150200.11.9.1
caca-utils - update to 0.99 beta19.git20171003-150200.11.9.1

External References

Related Security Bulletins