Add out-of-bounds read advisory for rocksdb (#1237)

This commit is contained in:
Niklas Fiekas
2022-08-11 09:30:02 -04:00
committed by GitHub
parent dda8c048b6
commit 94e8af7c0c

View File

@@ -0,0 +1,27 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "rocksdb"
date = "2022-05-11"
url = "https://github.com/rust-rocksdb/rust-rocksdb/pull/616"
categories = ["memory-corruption"]
keywords = ["out-of-bounds read"]
[versions]
patched = [">= 0.19.0"]
[affected]
functions = { "rocksdb::DBWithThreadMode::open_cf_descriptors_with_ttl" = ["< 0.19.0"] }
```
# Out-of-bounds read when opening multiple column families with TTL
Affected versions of this crate called the RocksDB C API
`rocksdb_open_column_families_with_ttl()` with a pointer to a single integer
TTL value, but one TTL value for each column family is expected.
This is only relevant when using
`rocksdb::DBWithThreadMode::open_cf_descriptors_with_ttl()` with multiple
column families.
This bug has been fixed in v0.19.0.