NULL pointer dereference in OpenCV - CVE-2023-2617

 

NULL pointer dereference in OpenCV - CVE-2023-2617

Published: January 19, 2024


Vulnerability identifier: #VU85604
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-2617
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error within the DecodedBitStreamParser::decodeByteSegment() function in qrcode/decoder/decoded_bit_stream_parser.cpp. A remote attacker can pass specially crafted data to the application and perform a denial of service (DoS) attack.


Affected software

OpenCV
Ubuntu
libopencv-contrib4.5d (Ubuntu package)
libopencv-core4.5d (Ubuntu package)
libopencv-dev (Ubuntu package)
libopencv-dnn4.5d (Ubuntu package)
libopencv-flann4.5d (Ubuntu package)
libopencv-imgcodecs4.5d (Ubuntu package)
libopencv-objdetect4.5d (Ubuntu package)
opencv-data (Ubuntu package)
libopencv-core3.2 (Ubuntu package)
IBM Watson Discovery for IBM Cloud Pak for Data

How to mitigate CVE-2023-2617

Install updates from vendor's website.

OpenCV - update to 4.8.0
libopencv-contrib4.5d (Ubuntu package) - update to Ubuntu Pro
libopencv-core4.5d (Ubuntu package) - update to Ubuntu Pro
libopencv-dev (Ubuntu package) - update to Ubuntu Pro
libopencv-dnn4.5d (Ubuntu package) - update to Ubuntu Pro
libopencv-flann4.5d (Ubuntu package) - update to Ubuntu Pro
libopencv-imgcodecs4.5d (Ubuntu package) - update to Ubuntu Pro
libopencv-objdetect4.5d (Ubuntu package) - update to Ubuntu Pro
opencv-data (Ubuntu package) - update to Ubuntu Pro
libopencv-core3.2 (Ubuntu package) - update to Ubuntu Pro
IBM Watson Discovery for IBM Cloud Pak for Data - addressed in versions 4.8.6, 5.0.1

External References

Related Security Bulletins