{"id":"CVE-2025-55159","published":"2025-08-11T23:00:58Z","modified":"2025-08-12T14:07:00Z","title":"slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check","vendor":"tokio-rs","product":"slab","tier":"tail","description":{"text":"slab is a pre-allocated storage for a uniform data type. In version 0.4.10, the get_disjoint_mut method incorrectly checked if indices were within the slab's capacity instead of its length, allowing access to uninitialized memory. This could lead to undefined behavior or potential crashes. This has been fixed in slab 0.4.11. A workaround for this issue involves to avoid using get_disjoint_mut with indices that might be beyond the slab's actual length.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00199,"percentile":0.09899,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"https://github.com/tokio-rs/slab/security/advisories/GHSA-qx2v-8332-m4fv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tokio-rs/slab/pull/152","tags":["x_refsource_MISC"]},{"url":"https://github.com/tokio-rs/slab/commit/2d65c514bc964b192bab212ddf3c1fcea4ae96b8","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":1.98},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"tokio-rs","affectedVersions":[{"vendor":"tokio-rs","product":"slab","versions":[">= 0.4.10, < 0.4.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-12T14:06:53.117320Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"slab","vulnerableRanges":[">=0.4.10, <0.4.11"],"patched":["0.4.11"],"from":["GHSA-qx2v-8332-m4fv","RUSTSEC-2025-0047"],"provenance":"source"}],"summary":{"text":"The flaw is an out-of-bounds access in the get_disjoint_mut method of the slab crate (tokio-rs/slab), where the bounds check compares indices against the slab's capacity rather than its length, affecting version 0.4.10. An attacker who can get local access and cause the affected code path to be called with indices beyond the slab's actual length could read uninitialized memory, leading to undefined behaviour or a crash; no authentication or user interaction is indicated, and the workaround is to avoid calling get_disjoint_mut with indices that may exceed the slab's length.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:28Z"},"euvd":{"id":"EUVD-2025-24190","exploited":false,"provenance":"source"}}