columnar: Reading on uninitialized buffer may cause UB (#662)

* Report 0102-columnar to RustSec

* informational = "unsound"
This commit is contained in:
Youngsuk Kim
2021-08-21 21:25:59 -04:00
committed by GitHub
parent 4a51eedb08
commit 72e61b6d12

View File

@@ -0,0 +1,19 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "columnar"
date = "2021-01-07"
url = "https://github.com/frankmcsherry/columnar/issues/6"
categories = ["memory-exposure"]
informational = "unsound"
[versions]
patched = []
```
# columnar: `Read` on uninitialized buffer may cause UB (ColumnarReadExt::read_typed_vec())
Affected versions of this crate passes an uninitialized buffer to a user-provided `Read` implementation (`ColumnarReadExt::read_typed_vec()`).
Arbitrary `Read` implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.
Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.