{"id":"RUSTSEC-2026-0274","revision":null,"records":[{"revision":"a915aad8e0194e7d8e1fdee54e1f89ec","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0274","aliases":[],"title":"Double free / use-after-free in `ReadChunk::commit` when an element's `Drop` panics","description":"`ReadChunk::commit` and `ReadChunk::commit_all` drop the committed elements\nbefore advancing the consumer head. If an element's `Drop` panics during the\ndrop loop, `head` is never advanced, so the ring buffer still treats those slots\nas holding live elements. When the `RingBuffer` is later dropped (it walks\n`head..tail` and drops each slot), or a subsequent `read_chunk()` / `commit()`\ntouches the same slots, the already-dropped elements are dropped a second time —\na double free (CWE-415) / use-after-free (CWE-416) reachable from safe Rust.\n\n## Mitigation\n\nUpdate to 0.3.5 (0.3.x line) or 0.4.0. Note that 0.4.0 contains a behavior\nchange in `is_abandoned()`, so users on 0.3.x should prefer 0.3.5.","state":0,"publishedAt":"2026-08-04T12:00:00+00:00","modifiedAt":"2026-09-01T08:00:25.1849135+00:00","affected":[{"ecosystem":"crates.io","name":"rtrb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.3.5"},{"kind":"introduced","version":"0.4.0-0"},{"kind":"fixed","version":"0.4.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/rtrb","https://rustsec.org/advisories/RUSTSEC-2026-0274.html","https://github.com/mgeier/rtrb/issues/185"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0274","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0274","identifiers":["RUSTSEC-2026-0274"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-20T03:22:47.7079848+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-20T03:22:47.7079848+00:00","lastSuccessAt":"2026-11-20T03:22:47.8974691+00:00","error":null,"lastVerifiedAt":"2026-11-20T03:22:47.8974706+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-ab394367b327976f2e615091908e1dede6760751304792bb06c748f95767cbef-5fb2524f60b2d862e7490752bd5517e67d2a4753adaa95de8b82cc03947b5e38","complete":true,"records":429268,"lastAttemptAt":"2026-11-20T03:20:57.6396203+00:00","lastSuccessAt":"2026-11-20T03:20:57.6279461+00:00","error":null,"lastVerifiedAt":"2026-11-20T03:20:57.6396203+00:00","snapshotPublishedAt":"2026-11-20T02:26:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b00935b000744d808d7be47041c2b4f4","complete":false,"records":13903,"lastAttemptAt":"2026-11-20T03:32:29.9265449+00:00","lastSuccessAt":"2026-11-20T03:32:28.903+00:00","error":"420 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-20T03:32:28.903+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13355,"expectedIdentifiers":13951,"failedIdentifiers":420},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-20T03:22:47.7079848+00:00","complete":true,"records":1130,"lastAttemptAt":"2026-11-20T03:22:47.7079848+00:00","lastSuccessAt":"2026-11-20T03:22:47.8983728+00:00","error":null,"lastVerifiedAt":"2026-11-20T03:22:47.898375+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-5a487fc39bd54047913f2c57b9f395be","complete":true,"records":13915,"lastAttemptAt":"2026-11-20T03:22:54.7887875+00:00","lastSuccessAt":"2026-11-20T03:22:54.785+00:00","error":null,"lastVerifiedAt":"2026-11-20T03:22:54.785+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13951,"expectedIdentifiers":13951,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-8c782c8bda9dbab8135c62bfbc9a19fa3557f15c26fbd641daea6b40b297253e","complete":true,"records":9981,"lastAttemptAt":"2026-11-20T03:22:47.6586008+00:00","lastSuccessAt":"2026-11-20T01:30:46.6941716+00:00","error":null,"lastVerifiedAt":"2026-11-20T03:22:47.6586008+00:00","snapshotPublishedAt":"2026-11-20T00:33:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-94b3a229089d62296b97f627a772880f88ab7164d62486372661c0a39e321234","complete":true,"records":2019,"lastAttemptAt":"2026-11-20T03:20:57.703262+00:00","lastSuccessAt":"2026-11-20T01:29:01.8774014+00:00","error":null,"lastVerifiedAt":"2026-11-20T03:20:57.703262+00:00","snapshotPublishedAt":"2026-11-20T00:17:59+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-7ce196026235c6501d0b2fb81592d1b9dc06e8705525d41efefd322e75f6c22f","complete":true,"records":3200,"lastAttemptAt":"2026-11-20T03:22:47.6710932+00:00","lastSuccessAt":"2026-11-20T01:30:49.8670987+00:00","error":null,"lastVerifiedAt":"2026-11-20T03:22:47.6710932+00:00","snapshotPublishedAt":"2026-11-20T00:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-f71e79bff6b620c3ef1c999723e008f45672f80024388080daeaf3cc0a9ad7b4","complete":true,"records":232812,"lastAttemptAt":"2026-11-20T03:22:47.5285949+00:00","lastSuccessAt":"2026-11-20T03:22:46.4567434+00:00","error":null,"lastVerifiedAt":"2026-11-20T03:22:47.5285949+00:00","snapshotPublishedAt":"2026-11-20T02:48:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}