OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.
Link | Tags |
---|---|
https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html | third party advisory mailing list |
https://security.gentoo.org/glsa/201712-02 | third party advisory vendor advisory |
https://github.com/xiaoqx/pocs/blob/master/opencv.md | third party advisory broken link |
https://github.com/opencv/opencv/issues/9309 | patch third party advisory issue tracking |
https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html | third party advisory mailing list |