Merge pull request #407 from RustSec/actix-codec-pin

Advisory for unsound pinning in actix-codec
This commit is contained in:
Sergey "Shnatsel" Davidoff
2020-09-26 21:51:21 +02:00
committed by GitHub

View File

@@ -0,0 +1,17 @@
[advisory]
id = "RUSTSEC-0000-0000"
package = "actix-codec"
date = "2020-01-30"
title = "Use-after-free in Framed due to lack of pinning"
url = "https://github.com/actix/actix-net/issues/91"
categories = ["memory-corruption"]
description = """
Affected versions of this crate did not require the buffer wrapped in `Framed` to be pinned,
but treated it as if it had a fixed location in memory. This may result in a use-after-free.
The flaw was corrected by making the affected functions accept `Pin<&mut Self>` instead of `&mut self`.
"""
[versions]
patched = [">= 0.3.0-beta.1"]