Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions crates/infisearch_common/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "infisearch_common"
date = "2024-10-13"
url = "https://github.com/ang-zeyu/infisearch/issues/11"
informational = "unsound"
categories = ["memory-corruption"]
keywords = ["out-of-bounds", "global-buffer-overflow", "soundness", "unsafe"]

[affected.functions]
"infisearch_common::packed_var_int::PackedVarIntReader::read_type" = ["<= 0.10.1"]

[versions]
patched = []
```

# `PackedVarIntReader::read_type` can access memory out of bounds

Affected versions of `infisearch_common` contain a safe method,
`PackedVarIntReader::read_type`, which can perform out-of-bounds accesses.

The method accepts a type index `t` and uses it to access several internal
arrays through unchecked indexing. If `t` is outside the expected range, the
method can read or write out of bounds.

Because the method is safe, callers do not need to use `unsafe` to trigger the
invalid memory access. The issue was reported with AddressSanitizer as a
global-buffer-overflow.

No patched release is currently known.