add advisory for custom Cell in actix-utils

This commit is contained in:
Sergey "Shnatsel" Davidoff
2020-09-26 18:31:04 +02:00
committed by GitHub
parent b8a3072607
commit f7c02faed1

View File

@@ -0,0 +1,22 @@
[advisory]
id = "RUSTSEC-0000-0000"
package = "actix-utils"
date = "2020-01-08"
title = "bespoke Cell implementation allows obtaining several mutable references to the same data"
url = "https://github.com/actix/actix-net/pull/158"
categories = ["memory-corruption"]
informational = "unsound"
description = """
The custom implementation of a Cell primitive in the affected versions of this crate
does not keep track of mutable references to the underlying data.
This allows obtaining several mutable references to the same object
which may result in arbitrary memory corruption, most likely use-after-free.
The flaw was corrected by switching from a bespoke `Cell<T>` implementation to `Rc<RefCell<T>>`.
"""
[versions]
patched = [">= 2.0.0"]