-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added advisory for Arrow2 FFI_ArrowArray
- Loading branch information
1 parent
616ecfe
commit 6b5b96e
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
```toml | ||
[advisory] | ||
id = "RUSTSEC-0000-0000" | ||
package = "arrow2" | ||
date = "2022-03-04" | ||
url = "https://github.com/jorgecarleitao/arrow2/issues/880" | ||
categories = ["double-free"] | ||
|
||
[versions] | ||
patched = [">= 0.7.2, < 0.8", ">= 0.8.1, < 0.9", ">= 0.9.2, < 0.10"] | ||
``` | ||
|
||
# Arrow2 allows double free in `safe` code | ||
|
||
The struct `Ffi_ArrowArray` implements `#derive(Clone)` that is inconsistent with | ||
its custom implementation of `Drop`, resulting in a double free when cloned. | ||
|
||
Cloning this struct in `safe` results in a segmentation fault, which is unsound. | ||
|
||
This derive was removed from this struct. All users are advised to either: | ||
* bump the patch version of this crate (for versions `v0.7,v0.8,v0.9`), or | ||
* migrate to a more recent version of the crate (when using `<0.7`). | ||
|
||
Doing so elimitates this vulnerability (code no longer compiles). |