imageproc
Affected
- introduced
0, fixed0.23.1(semver)
Fixed versions
0.23.1
Fix
- Fixed version
0.23.1cargo update -p imageproc --precise 0.23.1
Advisory
Also known as: RUSTSEC-2026-0116
imageproc: integer overflow in kernel size check leads to out-of-bounds read
A bounds verification of a slice storage of a 2-dimensional matrix's coefficients (a kernel) would compare the total size against the product of individual dimensions. This would erroneously cast *after* the multiplication and consequently fail to detect possible violations when overflow occurs.
Afterwards, the individual sizes were trusted to properly constrain coordinates within the matrix to indices valid for the underlying storage. With a crafted Kernel object, certain combinations of coordinates could then cause an out-of-bounds access in an unsafe function while fulfilling its documented preconditions. The kernel value could be passed to library functions that trusted the preconditions and then performed such reads.
Medium Basis: The source's own band: MODERATE
0, fixed 0.23.1 (semver)0.23.1
0.23.1cargo update -p imageproc --precise 0.23.10.24.0, fixed 0.24.1 (semver)0.24.1
0.24.1cargo update -p imageproc --precise 0.24.10.25.0, fixed 0.25.1 (semver)0.25.1
0.25.1cargo update -p imageproc --precise 0.25.10.26.0, fixed 0.26.2 (semver)0.26.2
0.26.2cargo update -p imageproc --precise 0.26.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0