Skip to content

Commit

Permalink
Update RUSTSEC-0000-0000.md
Browse files Browse the repository at this point in the history
Add security prose
  • Loading branch information
mmastrac authored Jan 22, 2025
1 parent 42844c4 commit 26f7af9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/openssl-probe/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ os = ["linux"]
[versions]
patched = []
```

# `openssl-probe` may cause memory corruption in multi-threaded processes

`openssl-probe` offers non-`unsafe` methods that call environment setters, which may be called
in a multithreaded environment, and potentially clash with environment access on other threads.

When these methods are called while other threads are active and accessing the environment, it
may cause the other threads to access dangling pointer values in the cases where the underlying
environment data is moved or resized in response to an additional environment variable being
added, or a variable's contents being enlarged.

The affected function is `try_init_ssl_cert_env_vars` in
<https://github.com/alexcrichton/openssl-probe/blob/master/src/lib.rs#L65>.

0 comments on commit 26f7af9

Please sign in to comment.