imageproc: integer overflow in kernel size check leads to out-of-bounds read
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | imageproc (crates.io) | before 0.23.1 | 0.23.1 | Patch available | GHSA-w5p8-4jcx-2j6r |
| — | imageproc (crates.io) | 0.24.0 to before 0.24.1 | 0.24.1 | Patch available | GHSA-w5p8-4jcx-2j6r |
| — | imageproc (crates.io) | 0.25.0 to before 0.25.1 | 0.25.1 | Patch available | GHSA-w5p8-4jcx-2j6r |
| — | imageproc (crates.io) | 0.26.0 to before 0.26.2 | 0.26.2 | Patch available | GHSA-w5p8-4jcx-2j6r |
- imageproc (crates.io) Vendor— Affected before 0.23.1 Fixed in 0.23.1 Patch available GHSA-w5p8-4jcx-2j6r
- imageproc (crates.io) Vendor— Affected 0.24.0 to before 0.24.1 Fixed in 0.24.1 Patch available GHSA-w5p8-4jcx-2j6r
- imageproc (crates.io) Vendor— Affected 0.25.0 to before 0.25.1 Fixed in 0.25.1 Patch available GHSA-w5p8-4jcx-2j6r
- imageproc (crates.io) Vendor— Affected 0.26.0 to before 0.26.2 Fixed in 0.26.2 Patch available GHSA-w5p8-4jcx-2j6r
Remediation
- Fix · GHSA-w5p8-4jcx-2j6r imageproc (crates.io) Fixed in 0.23.1 Advisory →
- Fix · GHSA-w5p8-4jcx-2j6r imageproc (crates.io) Fixed in 0.24.1 Advisory →
- Fix · GHSA-w5p8-4jcx-2j6r imageproc (crates.io) Fixed in 0.25.1 Advisory →
- Fix · GHSA-w5p8-4jcx-2j6r imageproc (crates.io) Fixed in 0.26.2 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-w5p8-4jcx-2j6r
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences