Submit #913790: embedded-graphics <= 0.8.1 Buffer Overflowinfo

Titleembedded-graphics <= 0.8.1 Buffer Overflow
Descriptionembedded-graphics before 0.8.2 (to be confirmed) contains an integer overflow in the bytes_per_row function on 32-bit platforms. When width and bits_per_pixel values produce a product of exactly 2^32, the multiplication wraps to zero, causing the ImageRaw::new validation to accept empty data slices. This results in incorrect (blank) rendering on 32-bit ARM embedded systems, which are the primary deployment target for this library.
Source⚠️ https://github.com/embedded-graphics/embedded-graphics/issues/820
User
 Default01 (UID 100307)
Submission08/03/2026 07:47 (1 month ago)
Moderation09/12/2026 20:35 (1 month later)
StatusAccepted
VulDB entry403178 [embedded-graphics up to 0.8.2 on 32-bit src/image/image_raw.rs new/bytes_per_row integer overflow]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!