GHSA-x3f4-45xf-rjm7 `ruzstd` uninit and out-of-bounds memory reads
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
Description
Affected versions of ruzstd miscalculate the length of the allocated and init section of its internal RingBuffer, leading to uninitialized or out-of-bounds reads in copy_bytes_overshooting of up to 15 bytes.
This may result in up to 15 bytes of memory contents being written into the decoded data when decompressing a crafted archive. This may occur multiple times per archive.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io ruzstd(crates.io) | >= 0.7.0, < 0.7.3 | 0.7.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io ruzstd(crates.io) | >= 0.7.0, < 0.7.3 | 0.7.3 |
References
- github.com issue-tracking
- github.com patch
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com