TensorFlow におけるバッファサイズの計算の誤りに関する脆弱性
タイトル TensorFlow におけるバッファサイズの計算の誤りに関する脆弱性
概要

TensorFlow には、バッファサイズの計算の誤りに関する脆弱性が存在します。

想定される影響 サービス運用妨害 (DoS) 状態にされる可能性があります。
対策

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2021年4月20日0:00
登録日 2022年1月21日17:52
最終更新日 2022年1月21日17:52
CVSS3.0 : 警告
スコア 5.5
ベクター CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS2.0 : 注意
スコア 2.1
ベクター AV:L/AC:L/Au:N/C:N/I:N/A:P
影響を受けるシステム
Google
Google TensorFlow 2.5.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2022年01月21日]
  掲載
2022年1月21日17:52

NVD脆弱性情報
CVE-2021-29521
概要

TensorFlow is an end-to-end open source platform for machine learning. Specifying a negative dense shape in `tf.raw_ops.SparseCountSparseOutput` results in a segmentation fault being thrown out from the standard library as `std::vector` invariants are broken. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/8f7b60ee8c0206a2c99802e3a4d1bb55d2bc0624/tensorflow/core/kernels/count_ops.cc#L199-L213) assumes the first element of the dense shape is always positive and uses it to initialize a `BatchedMap<T>` (i.e., `std::vector<absl::flat_hash_map<int64,T>>`(https://github.com/tensorflow/tensorflow/blob/8f7b60ee8c0206a2c99802e3a4d1bb55d2bc0624/tensorflow/core/kernels/count_ops.cc#L27)) data structure. If the `shape` tensor has more than one element, `num_batches` is the first value in `shape`. Ensuring that the `dense_shape` argument is a valid tensor shape (that is, all elements are non-negative) solves this issue. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2 and TensorFlow 2.3.3.

公表日 2021年5月15日5:15
登録日 2021年5月15日10:00
最終更新日 2021年5月21日2:19
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* 2.3.0 2.3.3
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* 2.4.0 2.4.2
関連情報、対策とツール
共通脆弱性一覧