{"id":"UBUNTU-CVE-2019-19624","details":"An out-of-bounds read was discovered in OpenCV before 4.1.1. Specifically, variable coarsest_scale is assumed to be greater than or equal to finest_scale within the calc()/ocl_calc() functions in dis_flow.cpp. However, this is not true when dealing with small images, leading to an out-of-bounds read of the heap-allocated arrays Ux and Uy.","modified":"2026-04-22T13:41:02.767746Z","published":"2019-12-06T15:15:00Z","related":["USN-7247-1"],"upstream":["CVE-2019-19624"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-19624"},{"type":"REPORT","url":"https://github.com/opencv/opencv/issues/14554"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-19624"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7247-1"}],"affected":[{"package":{"name":"opencv","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/opencv@3.2.0+dfsg-4ubuntu0.1+esm4?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.0+dfsg-4ubuntu0.1+esm4"}]}],"versions":["3.1.0+dfsg1-1~exp1ubuntu3","3.2.0+dfsg-3","3.2.0+dfsg-4","3.2.0+dfsg-4build1","3.2.0+dfsg-4build2","3.2.0+dfsg-4ubuntu0.1","3.2.0+dfsg-4ubuntu0.1+esm2","3.2.0+dfsg-4ubuntu0.1+esm3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libopencv-calib3d3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-contrib3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-core3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-features2d3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-flann3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-highgui3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-imgcodecs3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-imgproc3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-ml3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-objdetect3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-photo3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-shape3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-stitching3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-superres3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-video3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-videoio3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-videostab3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv-viz3.2","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv3.2-java","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"libopencv3.2-jni","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"opencv-data","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"python-opencv","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"},{"binary_name":"python3-opencv","binary_version":"3.2.0+dfsg-4ubuntu0.1+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-19624.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"},{"type":"Ubuntu","score":"low"}]}