Stack-based buffer overflow in zbar - CVE-2023-40890

 

Stack-based buffer overflow in zbar - CVE-2023-40890

Published: December 5, 2023


Vulnerability identifier: #VU83883
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-2023-40890
CWE-ID: CWE-121
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 lookup_sequence() function. A remote attacker can trick the victim to scan a specially crafted barcode, trigger a stack-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

zbar
Amazon Linux AMI
Debian Linux
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Micro
Desktop Applications Module
SUSE Package Hub 15
openSUSE Leap
Ubuntu
openEuler
Fedora
libzbar0 (Ubuntu package)
zbar
zbar-devel
zbar-gtk-devel
zbar-qt-devel
zbar-qt
zbar-debuginfo
zbar-gtk
zbar-debugsource
libzbarqt0
libzbarqt0-64bit
libzbar0-64bit-debuginfo
libzbarqt0-64bit-debuginfo
libzbarqt0-32bit-debuginfo
libzbarqt0-debuginfo
libzbarqt-devel
libzbar0
libzbar-devel
libzbar0-debuginfo
libzbarqt0-32bit
libzbar0-64bit
libzbar0-32bit-debuginfo
libzbar0-32bit
zbar (Debian package)
zbar-libs
python3-zbar

How to mitigate CVE-2023-40890

Install updates from vendor's website.

zbar - update to 0.23.91
libzbar0 (Ubuntu package) - update to Ubuntu Pro
zbar - update to 0.10-19.3
zbar-devel - addressed in versions 0.22-5, 0.23.93-1
zbar-gtk-devel - addressed in versions 0.22-5, 0.23.93-1
zbar-qt-devel - addressed in versions 0.22-5, 0.23.93-1
zbar-qt - addressed in versions 0.22-5, 0.23.93-1
zbar-debuginfo - addressed in versions 0.22-5, 0.23.93-1
zbar-gtk - addressed in versions 0.22-5, 0.23.93-1
zbar-debugsource - addressed in versions 0.22-5, 0.23.93-1
zbar - addressed in versions 0.22-5, 0.23.93-1
libzbarqt0 - update to 0.23.1-150300.3.3.1
libzbarqt0-64bit - update to 0.23.1-150300.3.3.1
libzbar0-64bit-debuginfo - update to 0.23.1-150300.3.3.1
libzbarqt0-64bit-debuginfo - update to 0.23.1-150300.3.3.1
libzbarqt0-32bit-debuginfo - update to 0.23.1-150300.3.3.1
libzbarqt0-debuginfo - update to 0.23.1-150300.3.3.1
zbar-debuginfo - update to 0.23.1-150300.3.3.1
libzbarqt-devel - update to 0.23.1-150300.3.3.1
zbar - update to 0.23.1-150300.3.3.1
libzbar0 - update to 0.23.1-150300.3.3.1
zbar-debugsource - update to 0.23.1-150300.3.3.1
libzbar-devel - update to 0.23.1-150300.3.3.1
libzbar0-debuginfo - update to 0.23.1-150300.3.3.1
libzbarqt0-32bit - update to 0.23.1-150300.3.3.1
libzbar0-64bit - update to 0.23.1-150300.3.3.1
libzbar0-32bit-debuginfo - update to 0.23.1-150300.3.3.1
libzbar0-32bit - update to 0.23.1-150300.3.3.1
zbar (Debian package) - addressed in versions 0.23.90-1+deb11u1, 0.23.92-7+deb12u1
zbar-libs - update to 0.23.93-1
python3-zbar - update to 0.23.93-1
zbar - addressed in versions 0.23.93-1.fc38, 0.23.93-1.fc39

External References

Related Security Bulletins