Skip to content

Commit c91b809

Browse files
Add ruzstd uninit/out-of-bounds memory reads advisory (#2147)
* Add ruzstd uninit/out-of-bounds reads advisory * Update description with impact analysis from the maintainer * fix typo Co-authored-by: Paolo Barbolini <paolo@paolo565.org> --------- Co-authored-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
1 parent 4676c55 commit c91b809

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

crates/ruzstd/RUSTSEC-0000-0000.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "ruzstd"
5+
date = "2024-11-28"
6+
url = "https://github.com/KillingSpark/zstd-rs/issues/75"
7+
categories = ["memory-exposure"]
8+
references = ["https://github.com/KillingSpark/zstd-rs/pull/76"]
9+
10+
[versions]
11+
patched = [">= 0.7.3"]
12+
unaffected = ["< 0.7.0"]
13+
```
14+
15+
# `ruzstd` uninit and out-of-bounds memory reads
16+
17+
Affected versions of `ruzstd` miscalculate the length of the allocated
18+
and init section of its internal `RingBuffer`, leading to uninitialized
19+
or out-of-bounds reads in `copy_bytes_overshooting` of up to 15 bytes.
20+
21+
This may result in up to 15 bytes of memory contents being written
22+
into the decoded data when decompressing a crafted archive.
23+
This may occur multiple times per archive.

0 commit comments

Comments
 (0)