mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:34:31 -06:00
209 lines
6.4 KiB
JSON
209 lines
6.4 KiB
JSON
[
|
|
{
|
|
"id": "RUSTSEC-2026-0255",
|
|
"modified": "2026-08-12T10:22:26Z",
|
|
"published": "2026-08-11T12:00:00Z",
|
|
"aliases": [],
|
|
"related": [],
|
|
"summary": "Panic-safety unsoundness in `Chunk`, `RingBuffer`, and `InlineArray` (use-after-free / double-free)",
|
|
"details": "Several methods in `sized-chunks` drop elements before updating the length/boundary metadata. If an element's `Drop` panics during the drop, the metadata update is skipped, so the container still treats the already-dropped elements as live. When the container's own `Drop` runs, those elements are visited again — a use-after-free / double-free reachable from safe Rust.\n\nThe `RingBuffer` methods require the `ringbuffer` feature. This is distinct from RUSTSEC-2020-0041 (`Chunk::clone` / `insert_from`, fixed in 0.6.3); the methods here are still affected in 0.7.0. The repository is archived with issues/PRs disabled and no fix available.\n\n## Impact\n\n- **CWE-415 (Double Free):** the same allocation is freed twice.\n- **CWE-416 (Use-After-Free):** a freed allocation is accessed during a repeated `Drop`.\n\nReachable entirely from safe Rust via `catch_unwind` with element types whose `Drop` can panic.",
|
|
"severity": [],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "sized-chunks",
|
|
"purl": "pkg:cargo/sized-chunks"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": [
|
|
"sized_chunks::Chunk::clear",
|
|
"sized_chunks::Chunk::drop_left",
|
|
"sized_chunks::Chunk::drop_right",
|
|
"sized_chunks::InlineArray::clear",
|
|
"sized_chunks::RingBuffer::clear",
|
|
"sized_chunks::RingBuffer::drop_left",
|
|
"sized_chunks::RingBuffer::drop_right"
|
|
]
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [
|
|
"memory-corruption"
|
|
],
|
|
"cvss": null,
|
|
"informational": "unsound"
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/sized-chunks"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0255.html"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
},
|
|
{
|
|
"id": "RUSTSEC-2026-0251",
|
|
"modified": "2026-08-10T19:33:56Z",
|
|
"published": "2026-05-03T12:00:00Z",
|
|
"aliases": [],
|
|
"related": [],
|
|
"summary": "sized-chunks is unmaintained",
|
|
"details": "The sized-chunks crate is unmaintained; all versions are affected. The\nGitHub repository was archived by the owner on 2026-05-03.\n\nRecommended alternative:\n\n* [imbl-sized-chunks](https://crates.io/crates/imbl-sized-chunks), a popular fork of this crate",
|
|
"severity": [],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "sized-chunks",
|
|
"purl": "pkg:cargo/sized-chunks"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": []
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [],
|
|
"cvss": null,
|
|
"informational": "unmaintained"
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/sized-chunks"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2026-0251.html"
|
|
},
|
|
{
|
|
"type": "WEB",
|
|
"url": "https://github.com/bodil/sized-chunks"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
},
|
|
{
|
|
"id": "RUSTSEC-2020-0041",
|
|
"modified": "2023-06-13T13:10:24Z",
|
|
"published": "2020-09-06T12:00:00Z",
|
|
"aliases": [
|
|
"CVE-2020-25791",
|
|
"CVE-2020-25792",
|
|
"CVE-2020-25793",
|
|
"CVE-2020-25794",
|
|
"CVE-2020-25795",
|
|
"CVE-2020-25796",
|
|
"GHSA-64gv-qg2v-vxv6",
|
|
"GHSA-9p9m-9xww-qjcx",
|
|
"GHSA-fqpx-cq8x-9wp4",
|
|
"GHSA-mp6f-p9gp-vpj9",
|
|
"GHSA-rfgg-vccr-m46m",
|
|
"GHSA-x54v-qxxr-93qc"
|
|
],
|
|
"related": [],
|
|
"summary": "Multiple soundness issues in Chunk and InlineArray",
|
|
"details": "Chunk:\n\n* Array size is not checked when constructed with `unit()` and `pair()`.\n* Array size is not checked when constructed with `From<InlineArray<A, T>>`.\n* `Clone` and `insert_from` are not panic-safe; A panicking iterator causes memory safety issues with them.\n\nInlineArray:\n\n* Generates unaligned references for types with a large alignment requirement.",
|
|
"severity": [
|
|
{
|
|
"type": "CVSS_V3",
|
|
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "sized-chunks",
|
|
"purl": "pkg:cargo/sized-chunks"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": []
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [],
|
|
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
|
|
"informational": null
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
},
|
|
{
|
|
"fixed": "0.6.3"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/sized-chunks"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0041.html"
|
|
},
|
|
{
|
|
"type": "REPORT",
|
|
"url": "https://github.com/bodil/sized-chunks/issues/11"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
}
|
|
] |