Search
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
1,482 items
CVE-2021-37662 affects TensorFlow, an open source machine learning platform. In affected versions, an attacker can trigger undefined behavior through a reference binding to nullptr in `BoostedTreesCalculateBestGainsPerFeature`, and a similar issue exists in `BoostedTreesCalculateBestFeatureSplitV2`, because the implementation in `stats_ops.cc` does not validate its input values.
Fix: Fixed in GitHub commits 9c87c32c710d0b5b53dc6fd3bfde4046e1f7a5ad and 429f009d2b2c09028647dd4bb7b3f6f414bbaad7. The fix will be included in TensorFlow 2.6.0, and the commits will be cherry-picked to TensorFlow 2.5.1…
NVD/CVE DatabaseCVE-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 binary cwise operations that do not require broadcasting assume both inputs have the same number of elements but never check it. An attacker can exploit this to trigger heap out-of-bounds reads and undefined behavior from binding a reference to a null pointer, as tracked in CVE-2021-37659. Affected versions include those still in supported range, such as TensorFlow 2.5.1, 2.4.3 and 2.3.4.
Fix: Patched in GitHub commit 93f428fd1768df147171ed674fee1fc5ab8309ec. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked onto 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-37656 affects TensorFlow, an open source machine learning platform. In affected versions, an attacker can trigger undefined behavior by binding a reference to a null pointer in tf.raw_ops.RaggedTensorToSparse, because the implementation does not check that the splits values are in increasing order.
Fix: Patched in GitHub commit 1071f554dbd09f7e101324d366eec5f4fe5a3ece. The fix will be included in TensorFlow 2.6.0, and the commit will also be cherrypicked to TensorFlow 2.5.1, 2.4.3, and 2.3.4.
TensorFlow's `tf.raw_ops.ResourceScatterUpdate` in affected versions can be triggered with invalid arguments to read outside the bounds of heap-allocated data. The cause is incomplete validation of the `indices` and `updates` shapes: the code checks only that their element counts are divisible, not that the shape of `indices` is a prefix of the shape of `updates`.
Fix: Fixed in GitHub commit 01cff3f986259d661103412a20745928c727326f. 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-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.
TensorFlow's implementation of tf.raw_ops.FractionalAvgPoolGrad in affected versions can be made to read data outside the bounds of heap-allocated buffers. The cause is that the code does not check whether the input tensor is non-empty, so it builds an empty EigenDoubleMatrixMap and then indexes past its end.
Fix: Patched in GitHub commit 0f931751fb20f565c4e94aa6df58d54a003cdb30. 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 implementation of `tf.raw_ops.ExperimentalDatasetToTFRecord` and `tf.raw_ops.DatasetToTFRecord` in affected versions can trigger a heap buffer overflow and segmentation fault. The code assumes every record in the dataset is a string, but performs no check, and the example given uses numeric types.
Fix: Patched in GitHub commit e0b6e58c328059829c3eb968136f17aa72b6c876. The fix will be included in TensorFlow 2.6.0, and the commit will be cherrypicked to TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 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.RaggedGather` can read outside the bounds of heap-allocated buffers when its arguments do not define a valid ragged tensor. The implementation reads the first dimension of a tensor shape before checking that the tensor has rank at least 1, and it does not check that `params_nested_splits` is non-empty.
Fix: The issue is patched in GitHub commit a2b743f6017d7b97af1fe49087ae15f0ac634373. 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-37635 affects TensorFlow versions where the sparse reduction operations do not validate reduction groups or indices against the input tensor bounds. This can trigger out-of-bounds accesses to heap-allocated data.
Fix: The issue is patched in GitHub commit 87158f43f05f2720a374f3e6d22a7aaa3a33f750. 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…
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.