GHSA-ppjr-267j-5p9x NULL pointer derefernce in `stb_image`
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
Description
A bug in error handling in the stb_image C library could cause a NULL pointer dereference when attempting to load an invalid or unsupported image file. This is fixed in version 0.2.5 and later of the stb_image Rust crate, by patching the C code to correctly handle NULL pointers.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io stb_image(crates.io) | < 0.2.5; >= 0.0.0-0, < 0.2.5 | 0.2.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io stb_image(crates.io) | < 0.2.5 | 0.2.5 |
| crates.io stb_image(crates.io) | >= 0.0.0-0, < 0.2.5 | 0.2.5 |
References
- github.com patch
- rustsec.org vendor-advisory
- github.com
- github.com product
- crates.io product