CVE-2019-19624

NameCVE-2019-19624
DescriptionAn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
opencv (PTS)bullseye4.5.1+dfsg-5fixed
bookworm4.6.0+dfsg-12fixed
sid, trixie4.6.0+dfsg-14fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
opencvsourcejessie(not affected)
opencvsourcestretch(not affected)
opencvsource(unstable)4.1.2+dfsg-3

Notes

[buster] - opencv <no-dsa> (Minor issue; can be fixed via point release)
[stretch] - opencv <not-affected> (Vulnerable code introduced later)
[jessie] - opencv <not-affected> (Vulnerable code introduced later)
https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418
https://github.com/opencv/opencv/issues/14554

Search for package or bug name: Reporting problems