Bug 1214771 (CVE-2023-40890)

Summary: VUL-0: CVE-2023-40890: zbar: stack-based buffer overflow vulnerability exists in the lookup_sequence function
Product: [Novell Products] SUSE Security Incidents Reporter: Alexander Bergmann <abergmann>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: abergmann, coldpool, mvetter, pgajdos, rfrohl, security-team, stoyan.manolov, valentin.lefebvre
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/376617/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-40890:5.1:(AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: POC

Description Alexander Bergmann 2023-08-30 06:44:49 UTC
CVE-2023-40890

A stack-based buffer overflow vulnerability exists in the lookup_sequence function of ZBar 0.23.90. Specially crafted QR codes may lead to information disclosure and/or arbitrary code execution. To trigger this vulnerability, an attacker can digitally input the malicious QR code, or prepare it to be physically scanned by the vulnerable scanner.

https://hackmd.io/@cspl/H1PxPAUnn

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-40890
https://bugzilla.redhat.com/show_bug.cgi?id=2235858
https://www.cve.org/CVERecord?id=CVE-2023-40890
https://hackmd.io/@cspl/H1PxPAUnn
Comment 1 Alexander Bergmann 2023-08-30 06:45:40 UTC
There is no upstream commit reference. Waiting for information here:

https://github.com/mchehab/zbar/issues/263
Comment 2 Petr Gajdos 2023-09-08 09:11:15 UTC
No change in upstream bug.
Comment 5 Petr Gajdos 2023-10-12 13:22:14 UTC
No news in upstream bug.
Comment 9 Michael Vetter 2023-12-15 08:30:43 UTC
Created attachment 871377 [details]
POC

I asked the CVE reporters to send me the POC or publish it, since it was private up to know. I attached it to the bug and they updated their blogpost to include it as well.
Comment 13 Maintenance Automation 2023-12-22 08:30:26 UTC
SUSE-SU-2023:4948-1: An update that solves two vulnerabilities can now be installed.

Category: security (moderate)
Bug References: 1214770, 1214771
CVE References: CVE-2023-40889, CVE-2023-40890
Sources used:
openSUSE Leap 15.3 (src): zbar-0.23.1-150300.3.3.1
openSUSE Leap 15.4 (src): zbar-0.23.1-150300.3.3.1
openSUSE Leap 15.5 (src): zbar-0.23.1-150300.3.3.1
Desktop Applications Module 15-SP5 (src): zbar-0.23.1-150300.3.3.1
SUSE Package Hub 15 15-SP5 (src): zbar-0.23.1-150300.3.3.1
SUSE Linux Enterprise Real Time 15 SP4 (src): zbar-0.23.1-150300.3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 17 Robert Frohl 2024-05-29 12:19:45 UTC
done, closing