All items
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
628 items
TensorFlow's convolution operators are affected by a division by zero flaw in most implementations. The shape inference code in common_shape_fns.cc lacks several validations before performing divisions and modulo operations, letting an attacker trigger a denial of service via a crash.
Fix: Patched in GitHub commit 8a793b5d7f59e37ac7f3cd0954a750a2fe76bad4. The fix will be included in TensorFlow 2.6.0 and cherrypicked to TensorFlow 2.5.1, 2.4.3, and 2.3.4.
NVD/CVE DatabaseCVE-2021-37652 affects TensorFlow versions where the implementation of tf.raw_ops.BoostedTreesCreateEnsemble can cause a use after free error when an attacker supplies specially crafted arguments. A reference counted resource, once represented as a naked pointer and later refactored into a smart pointer, is freed a second time after its refcount has already reached 0, and cleanup then accesses its invalid members.
Fix: Patched in GitHub commit 5ecec9c6fbdbc6be03295685190a45e7eee726ab. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4.
TensorFlow's `tf.raw_ops.SaveV2` does not properly validate its inputs, so an attacker can trigger a null pointer dereference. The `ValidateInputs` check uses `OP_REQUIRES`, which sets an error status but does not stop execution of `Compute`, so the code continues as if no validation occurred.
Fix: Patched in GitHub commit 9728c60e136912a12d99ca56e106b7cce7af5986. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1, 2.4.3, and 2.3.4.
CVE-2021-37661 affects TensorFlow, an open source machine learning platform. In affected versions, an attacker can trigger a denial of service in `boosted_trees_create_quantile_stream_resource` by passing negative arguments. The implementation does not validate that `num_streams` contains only non-negative numbers, so a negative value is implicitly converted to a large unsigned integer passed to `reserve`, causing a crash from the standard library.
Fix: Patched in GitHub commit 8a84f7a2b5a2b27ecf88d25bad9ac777cd2f7992. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1, 2.4.3 and 2.3.4.
TensorFlow's `tf.raw_ops.MatrixSetDiagV*` operations bind a reference to a null pointer when the value of `k` is an empty tensor. The implementation checks that `k` is a scalar or vector but never checks its element count, so code that reads the first element of an empty tensor reads invalid memory, causing undefined behavior.
Fix: Patched in GitHub commit ff8894044dfae5568ecbf2ed514c1a37dc394f1b. The fix will be included in TensorFlow 2.6.0. The commit will also be cherry-picked to TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4.
CVE-2021-37657 affects TensorFlow versions in which all operations of type `tf.raw_ops.MatrixDiagV*` bind a reference to a null pointer. The implementation in `matrix_diag_op.cc` checks that the `k` value is a scalar or a vector but does not check its number of elements, so an empty tensor causes code that reads the first element to fail, leading to undefined behavior triggered by an attacker.
Fix: Patched in GitHub commit f2a673bd34f0d64b8e40a551ac78989d16daad09. The fix will be included in TensorFlow 2.6.0 and cherry-picked to TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4.
CVE-2021-37654 affects TensorFlow, an open source machine learning platform. Calling `tf.raw_ops.ResourceGather` with a `batch_dims` value not less than the input tensor's rank can trigger a `CHECK`-fail crash in debug builds, or an out-of-bounds read of heap-allocated data in release builds. The implementation does not validate `batch_dims` against the tensor rank before its loops over the tensor dimensions.
Fix: Patched in GitHub commit bc9c546ce7015c57c2f15c168b3d9201de679a1d. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1, 2.4.3 and 2.3.4.
In affected TensorFlow versions, `tf.raw_ops.StringNGrams` has an integer overflow. Negative `ngram_widths` supplied by a user are implicitly converted from a signed to an unsigned value when `reserve` calls `TF_TString_Reserve`, producing a very large allocation size.
Fix: Patched in GitHub commit c283e542a3f422420cfdb332414543b62fc4e4a5. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1, 2.4.3 and 2.3.4.
CVE-2021-37645 affects TensorFlow's `tf.raw_ops.QuantizeAndDequantizeV4Grad` in affected versions. A negative `axis` value is implicitly converted to an unsigned integer when passed as the size argument to the `absl::InlinedVector` constructor, causing an integer overflow and memory allocation based on the resulting large value.
Fix: Patched in GitHub commit 96f364a1ca3009f98980021c4b32be5fdcca33a1. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherry-picked to TensorFlow 2.5.1 and TensorFlow 2.4.3.
TensorFlow's `tf.raw_ops.TensorListReserve` does not validate the `num_elements` argument, so a negative value causes the runtime to abort the process. The flaw is in the `std::vector.resize()` call in `list_kernels.cc`, which takes a user-controlled size without a validity check.
Fix: Fixed in GitHub commit 8a6e874437670045e6c7dc6154c7412b4a2135e2, included in TensorFlow 2.6.0. The commit will also be cherry-picked to TensorFlow 2.5.1, 2.4.3 and 2.3.4.
TensorFlow's `tf.raw_ops.UncompressElement` can be made to trigger a null pointer dereference. The implementation takes a pointer to a `CompressedElement` from a `Variant` tensor and dereferences it without checking that the tensor actually holds one, so the pointer can be `nullptr`.
Fix: Patched in GitHub commit 7bdf50bb4f5c54a4997c379092888546c97c3ebd. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherry-picked to TensorFlow 2.5.1, 2.4.3 and 2.3.4.
TensorFlow's `tf.raw_ops.SparseTensorSliceDataset` implementation can dereference a null pointer when a user does not supply arguments that determine a valid sparse tensor. The argument validation does not handle the case where either `indices` or `values` is provided for an empty sparse tensor while the other is not, so an empty `indices` input causes a null pointer dereference during the monotonic-increase check.
Fix: Fixed in GitHub commit 02cc160e29d20631de3859c6653184e3f876b9d7. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherrypicked to TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4.
TensorFlow's tf.raw_ops.MatrixDiagPartOp crashes or misbehaves when a user omits a valid padding value. With empty input it triggers a null pointer dereference, and otherwise it ignores all values after the first. The implementation reads the first value from a tensor buffer without checking that the tensor has values to read.
Fix: Patched in GitHub commit 482da92095c4d48f8784b1f00dda4f81c28d2988. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherry-picked to TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4.
TensorFlow's raw tensor restore APIs fail to validate inputs when restoring tensors. If no tensor name is provided, or the list is empty, TensorFlow dereferences a null pointer. If some names are given but too few to satisfy the restoration index, which is controlled by the preferred_shard argument, it performs a heap out-of-bounds read.
Fix: We have patched the issue in GitHub commit 9e82dce6e6bd1f36a57e08fa85af213e2b2f2622. The fix will be included in TensorFlow 2.6.0. The commit will also be cherrypicked to TensorFlow 2.5.1, TensorFlow 2.4.3, and…
CVE-2021-37638 affects TensorFlow's `tf.raw_ops.RaggedTensorToTensor` API. Passing an invalid `row_partition_types` argument causes a null pointer dereference and undefined behavior, because the implementation reads the first element of a user-supplied list without checking that the list is non-empty.
Fix: Patched in GitHub commit 301ae88b331d37a2a16159b65b255f4f9eb39314. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1, 2.4.3 and 2.3.4.
TensorFlow contains a null pointer dereference triggered by passing invalid input to `tf.raw_ops.CompressElement`. The implementation in compression_utils.cc read the size of a buffer returned by a separate function call before checking that the buffer was valid.
Fix: Patched in GitHub commit 5dc7f6981fdaf74c8c5be41f393df705841fb7c5. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherry-picked onto TensorFlow 2.5.1, 2.4.3 and 2.3.4.
TensorFlow's inplace operations can be made to trigger a floating point exception through crafted arguments that cause a division by 0. The root cause is a logic error in inplace_ops.cc, where `||` is used instead of `&&`, so processing is not skipped when `x` and `v` are empty.
Fix: Patched in GitHub commit e86605c0a336c088b638da02135ea6f9f6753618. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherrypicked to TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4.
CVE-2021-37653 affects TensorFlow versions before the fix. An attacker can crash a process by triggering a floating point exception in `tf.raw_ops.ResourceGather`, which divides by `batch_size` without checking that it is not 0.
Fix: Fixed in GitHub commit ac117ee8a8ea57b73d34665cdf00ef3303bc0b11, included in TensorFlow 2.6.0. The commit is also cherry-picked to TensorFlow 2.5.1, 2.4.3 and 2.3.4.
NVD/CVE DatabaseTensorFlow's implementation of `tf.raw_ops.ResourceScatterDiv` in affected versions is vulnerable to a division by 0 error. The implementation uses a common class for all binary operations but does not handle the division by 0 case separately.
Fix: The issue is patched in GitHub commit 4aacb30888638da75023e6601149415b39763d76. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherrypicked to TensorFlow 2.5.1, TensorFlow 2.4.3, and…
CVE-2021-37640 affects TensorFlow versions before the fix. The `tf.raw_ops.SparseReshape` implementation triggers an integral division by 0 exception because the reshaping functor divides by the target shape's dimensions without checking that the input or target shape has a non-zero number of elements.
Fix: Patched in GitHub commit 4923de56ec94fff7770df259ab7f2288a74feb41. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherry-picked to TensorFlow 2.5.1.