Out-of-bounds write in DjVuLibre - CVE-2021-32490

 

Out-of-bounds write in DjVuLibre - CVE-2021-32490

Published: May 17, 2021


Vulnerability identifier: #VU53318
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-32490
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 untrusted input within the DJVU::filter_bv()  function. A remote attacker can create a specially crafted djvu file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.


Affected software

DjVuLibre
Arch Linux
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Software Development Kit 12
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE CaaS Platform
SUSE Enterprise Storage
Fedora
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Desktop Applications
Ubuntu
openEuler
Anolis OS
cflinuxfs3
djvulibre (Debian package)
SUSE Linux Enterprise Module for Packagehub Subpackages
libdjvulibre21-debuginfo
libdjvulibre21
libdjvulibre-devel
djvulibre-debugsource
djvulibre-debuginfo
djvulibre
libdjvulibre21 (Ubuntu package)
mingw-djvulibre
djvulibre-devel
djvulibre-help
djvulibre-doc
djvulibre-libs

How to mitigate CVE-2021-32490

Install updates from vendor's website.

DjVuLibre - update to 3.5.28
cflinuxfs3 - update to 0.238.0
djvulibre (Debian package) - addressed in versions 3.5.27.1-10+deb10u1, 3.5.28-2
libdjvulibre21-debuginfo - addressed in versions 3.5.25.3-5.22.1, 3.5.27-3.11.1, 3.5.27-11.3.1
libdjvulibre21 - addressed in versions 3.5.25.3-5.22.1, 3.5.27-3.11.1, 3.5.27-11.3.1
libdjvulibre-devel - addressed in versions 3.5.25.3-5.22.1, 3.5.27-3.11.1, 3.5.27-11.3.1
djvulibre-debugsource - addressed in versions 3.5.25.3-5.22.1, 3.5.27-3.11.1, 3.5.27-11.3.1
djvulibre-debuginfo - addressed in versions 3.5.25.3-5.22.1, 3.5.27-3.11.1, 3.5.27-11.3.1
djvulibre - update to 3.5.25.3-23.el7
libdjvulibre21 (Ubuntu package) - addressed in versions 3.5.27.1-8ubuntu0.3, 3.5.27.1-14ubuntu0.1, 3.5.27.1-15ubuntu0.1, 3.5.27.15ubuntu0.1+esm1, 3.5.28-1ubuntu0.1
mingw-djvulibre - addressed in versions 3.5.27-11.fc33, 3.5.27-11.fc34, 3.5.27-12.fc33, 3.5.27-12.fc34
djvulibre - update to 3.5.27-11.3.1
djvulibre-debuginfo - update to 3.5.27-16
djvulibre-devel - update to 3.5.27-16
djvulibre-debugsource - update to 3.5.27-16
djvulibre-help - update to 3.5.27-16
djvulibre - update to 3.5.27-16
djvulibre-doc - update to 3.5.28-2
djvulibre-devel - update to 3.5.28-2
djvulibre-libs - update to 3.5.28-2
djvulibre - update to 3.5.28-2

External References

Related Security Bulletins