Skip to content

Commit 26f7af9

Browse files
authored
Update RUSTSEC-0000-0000.md
Add security prose
1 parent 42844c4 commit 26f7af9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/openssl-probe/RUSTSEC-0000-0000.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,16 @@ os = ["linux"]
1616
[versions]
1717
patched = []
1818
```
19+
20+
# `openssl-probe` may cause memory corruption in multi-threaded processes
21+
22+
`openssl-probe` offers non-`unsafe` methods that call environment setters, which may be called
23+
in a multithreaded environment, and potentially clash with environment access on other threads.
24+
25+
When these methods are called while other threads are active and accessing the environment, it
26+
may cause the other threads to access dangling pointer values in the cases where the underlying
27+
environment data is moved or resized in response to an additional environment variable being
28+
added, or a variable's contents being enlarged.
29+
30+
The affected function is `try_init_ssl_cert_env_vars` in
31+
<https://github.com/alexcrichton/openssl-probe/blob/master/src/lib.rs#L65>.

0 commit comments

Comments
 (0)