An out-of-bounds read was discovered in OpenCV before 4.1.1 (OpenCV-Python before 4.1.0.25). Specifically, variable coarsestscale is assumed to be greater than or equal to finestscale within the calc()/oclcalc() functions in disflow.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.
{
"nvd_published_at": "2019-12-06T15:15:00Z",
"cwe_ids": [
"CWE-125"
],
"severity": "MODERATE",
"github_reviewed_at": "2021-10-06T18:06:55Z",
"github_reviewed": true
}