Skip to content

Commit f7c02fa

Browse files
authored
add advisory for custom Cell in actix-utils
1 parent b8a3072 commit f7c02fa

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[advisory]
2+
id = "RUSTSEC-0000-0000"
3+
package = "actix-utils"
4+
date = "2020-01-08"
5+
6+
title = "bespoke Cell implementation allows obtaining several mutable references to the same data"
7+
url = "https://github.com/actix/actix-net/pull/158"
8+
categories = ["memory-corruption"]
9+
informational = "unsound"
10+
11+
description = """
12+
The custom implementation of a Cell primitive in the affected versions of this crate
13+
does not keep track of mutable references to the underlying data.
14+
15+
This allows obtaining several mutable references to the same object
16+
which may result in arbitrary memory corruption, most likely use-after-free.
17+
18+
The flaw was corrected by switching from a bespoke `Cell<T>` implementation to `Rc<RefCell<T>>`.
19+
"""
20+
21+
[versions]
22+
patched = [">= 2.0.0"]

0 commit comments

Comments
 (0)