From 648fcbdf85222bf64db7b3f281167c63bc7b3f68 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 12 Aug 2026 09:44:59 +0000 Subject: [PATCH] Update OSV exported data --- crates/RUSTSEC-2025-0170.json | 75 +++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 crates/RUSTSEC-2025-0170.json diff --git a/crates/RUSTSEC-2025-0170.json b/crates/RUSTSEC-2025-0170.json new file mode 100644 index 000000000..81f669f7c --- /dev/null +++ b/crates/RUSTSEC-2025-0170.json @@ -0,0 +1,75 @@ +{ + "id": "RUSTSEC-2025-0170", + "modified": "2026-08-12T09:44:47Z", + "published": "2025-04-24T12:00:00Z", + "aliases": [], + "related": [], + "summary": "`hugepage_rs::dealloc` may allow invalid memory deallocation from safe code", + "details": "`hugepage_rs::dealloc` was a publicly accessible safe function. It accepted an arbitrary raw pointer and `Layout`, then forwarded them to the hugepage allocator's `GlobalAlloc::dealloc` implementation.\n\n`GlobalAlloc::dealloc` requires callers to ensure that the pointer denotes a block of memory currently allocated by the allocator and that the layout is the same layout used for the allocation. The safe wrapper neither verified these requirements nor marked them as\nunsafe preconditions for callers.\n\nAffected versions therefore allowed safe Rust code to call `dealloc` with an invalid pointer, a pointer not allocated by the hugepage allocator, or an incorrect layout, which could cause undefined behavior.\n\nThe upstream repository fixed this in version `0.1.1` by marking `dealloc` as unsafe and documenting the caller's safety requirements.", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "hugepage-rs", + "purl": "pkg:cargo/hugepage-rs" + }, + "ecosystem_specific": { + "affects": { + "arch": [], + "os": [], + "functions": [ + "hugepage_rs::dealloc" + ] + }, + "affected_functions": null + }, + "database_specific": { + "categories": [ + "memory-corruption" + ], + "cvss": null, + "informational": "unsound" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0.0.0-0" + }, + { + "fixed": "0.1.1" + } + ] + } + ], + "versions": [] + } + ], + "references": [ + { + "type": "PACKAGE", + "url": "https://crates.io/crates/hugepage-rs" + }, + { + "type": "ADVISORY", + "url": "https://rustsec.org/advisories/RUSTSEC-2025-0170.html" + }, + { + "type": "REPORT", + "url": "https://github.com/cppcoffee/hugepage-rs/issues/5" + }, + { + "type": "WEB", + "url": "https://github.com/cppcoffee/hugepage-rs/pull/6" + }, + { + "type": "WEB", + "url": "https://github.com/cppcoffee/hugepage-rs/commit/2b30bdf227f39b1c9ed7af16ea0cc3957f88da18" + } + ], + "database_specific": { + "license": "CC0-1.0" + } +} \ No newline at end of file