GHSA-f95p-4cv5-8w8x linkme fails to ensure slice elements match the slice's declared type
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
Description
Affected versions allow populating a DistributedSlice of T with elements of an arbitrary other type that coerces to T. For example, elements of type &&str could end up in a slice of type [&str], since &&str coerces to &str via a deref coercion.
The flaw was corrected by implementing typechecking for distributed slice elements in such a way that coercion no longer occurs. The element's type must be a subtype of the slice's declared element type.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io linkme(crates.io) | < 0.3.24; >= 0.0.0-0, < 0.3.24 | 0.3.24 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io linkme(crates.io) | < 0.3.24 | 0.3.24 |
| crates.io linkme(crates.io) | >= 0.0.0-0, < 0.3.24 | 0.3.24 |
References
- github.com issue-tracking
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com