RUSTSEC-2026-0528
Not scored
UB can be reached from safe code
- Severity
- Not scored
- Published
- Last changed
Description
The variance of RefSwap and OptionRefSwap were incorrect, possibly allowing use-after-free.
OptionRefSwap::into_inner did not check for null.
The fix is to make RefSwap and OptionRefSwap invariant, and to change OptionRefSwap::into_inner to return an option.
It is available in version 0.1.3.
If your project still compiles with 0.1.3 then it is not affected by the unsoundness on version 0.1.2
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ref-swap (crates.io) | from 0.0.0-0 before 0.1.3 | RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| RustSec Advisory Database | RUSTSEC-2026-0528 changed 2026-11-13 | CC0-1.0 |