An integer overflow in the bounds verification of a 2D matrix kernel in the imageproc library allows crafted kernel objects to cause out-of-bounds reads. This occurs because the total size check casts after multiplication, failing to detect overflow. The flaw affects multiple versions prior to fixed releases and can lead to unsafe memory access.