TensorFlow におけるバッファサイズの計算の誤りに関する脆弱性
Title |
TensorFlow におけるバッファサイズの計算の誤りに関する脆弱性 |
Summary |
TensorFlow には、バッファサイズの計算の誤りに関する脆弱性が存在します。
|
Possible impacts |
サービス運用妨害 (DoS) 状態にされる可能性があります。 |
Solution |
ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
Publication Date |
April 20, 2021, midnight |
Registration Date |
Jan. 21, 2022, 5:52 p.m. |
Last Update |
Jan. 21, 2022, 5:52 p.m. |
CVSS3.0 : 警告
|
Score |
5.5
|
Vector |
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
CVSS2.0 : 注意
|
Score |
2.1
|
Vector |
AV:L/AC:L/Au:N/C:N/I:N/A:P |
Affected System
Google |
Google TensorFlow 2.5.0 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No |
Changed Details |
Date of change |
1 |
[2022年01月21日] 掲載 |
Jan. 21, 2022, 5:52 p.m. |
NVD Vulnerability Information
CVE-2021-29521
Summary |
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.
|
Publication Date |
May 15, 2021, 5:15 a.m. |
Registration Date |
May 15, 2021, 10 a.m. |
Last Update |
May 21, 2021, 2:19 a.m. |
Affected software configurations
Configuration1 |
or higher |
or less |
more than |
less than |
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
2.3.0 |
|
|
2.3.3 |
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
2.4.0 |
|
|
2.4.2 |
Related information, measures and tools
Common Vulnerabilities List