RUSTSEC-2020-0071: Potential segfault in the time crate
まだ誰も着手していません。
評価
調査の方向性
このアドバイザリの Rust 依存関係情報から始め、リポジトリの依存関係宣言を調べて time crate を確認します。説明されているとおりに cargo update を使用し、依存関係が影響を受けていないパッチ適用済みバージョンに解決されることを確認して、脆弱な time バージョンが依存関係ツリーに残っていないことを検証します。
索引モデルが issue の本文から書いたものです。
説明
Potential segfault in the time crate
| Details | |
|---|---|
| Package | time |
| Version | 0.1.44 |
| URL | https://github.com/time-rs/time/issues/293 |
| Date | 2020-11-18 |
| Patched versions | >=0.2.23 |
| Unaffected versions | =0.2.0,=0.2.1,=0.2.2,=0.2.3,=0.2.4,=0.2.5,=0.2.6 |
Impact
Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.
The affected functions from time 0.2.7 through 0.2.22 are:
time::UtcOffset::local_offset_attime::UtcOffset::try_local_offset_attime::UtcOffset::current_local_offsettime::UtcOffset::try_current_local_offsettime::OffsetDateTime::now_localtime::OffsetDateTime::try_now_local
The affected functions in time 0.1 (all versions) are:
atat_utcnow
Non-Unix targets (including Windows and wasm) are unaffected.
Patches
Pending a proper fix, the internal method that determines the local offset has been modified to always return None on the affected operating systems. This has the effect of returning an Err on the try_* methods and UTC on the non-try_* methods.
Users and library authors with time in their dependency tree should perform cargo update, which will pull in the updated, unaffected code.
Users of time 0.1 do not have a patch and should upgrade to an unaffected version: time 0.2.23 or greater or the 0.3 series.
Workarounds
No workarounds are known.
See advisory page for additional details.
- 主要言語
- Python
- スター
- 9
- フォーク
- 3
- 平均マージ
- 14時間 45分
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/listener-operator のほかの issue
-
ListenerClass CRD restructure再び着手できるかも @NickLarsenNZ が 411 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
stackabletech/listener-operator#330 · コメント 5 件 · リアクション 1 件 · 担当者 1 名 ·
-
OpenShift Route backend対応中かも @marc-merino が 4 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
customer-request
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
stackabletech/listener-operator#302 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
-
Rename `listeners.stackable.tech/listener-class` PVC annotation to `listeners.stackable.tech/class`オープン
難易度 3/5 1〜2日 初心者へのやさしさ 43/100
stackabletech/listener-operator#271 · コメント 1 件 ·
stackabletech/listener-operator の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
data-umbrella/du-event-board#225 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100