Advisories
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
1,675 items
CVE-2021-37686 affects TensorFlow Lite's strided slice implementation, which contains a logic bug introduced with new support for ellipsis in axis definition. An attacker can craft a model where `ellipsis_end_idx` is smaller than `i`, so the inner loop never increments `i` and the `continue` statement skips the outer loop's preincrement, causing an infinite loop. TensorFlow 2.6.0 is the only affected version.
Fix: We have patched the issue in GitHub commit dfa22b348b70bb89d6d6ec0ff53973bacb4f4695.
NVD/CVE DatabaseTensorFlow's TFLite implementation of SVDF is vulnerable to a null pointer error. The GetVariableInput function can return a null pointer, but GetTensorData assumes its argument is always a valid tensor, and GetMutableInput can also return nullptr, which can trigger a null pointer exception in the tensor->is_variable expression.
Fix: Patched in GitHub commit 5b048e87e4e55990dae6b547add4dae59f4e1c76. 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 TFLite implementation of fully connected layers contains a division by zero error in affected versions. The maintainers patched it in GitHub commit 718721986aa137691ee23f03638867151f74935f.
Fix: Fix 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.
NVD/CVE DatabaseCVE-2021-37676 affects TensorFlow versions in which an attacker can trigger undefined behavior by binding a reference to a null pointer in tf.raw_ops.SparseFillEmptyRows. The shape inference implementation does not check that input arguments are not empty tensors.
Fix: Patched in GitHub commit 578e634b4f1c1c684d4b4294f9e5281b2133b3ed. The fix will be included in TensorFlow 2.6.0 and cherrypicked to TensorFlow 2.5.1, 2.4.3, and 2.3.4.
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.
CVE-2021-37671 affects TensorFlow versions before the fix. An attacker can trigger undefined behavior by binding a reference to a null pointer in the tf.raw_ops.Map* and tf.raw_ops.OrderedMap* operations. The check that indices is in ascending order does not verify that indices is non-empty.
Fix: Fixed in GitHub commit 532f5c5a547126c634fefd43bbad1dc6417678ac, which 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.
TensorFlow's tf.raw_ops.UnicodeEncode reads the first dimension of the input_splits tensor before checking that the tensor is not empty. An attacker can use this to cause undefined behavior by binding a reference to a null pointer, tracked as CVE-2021-37667.
Fix: Patched in GitHub commit 2e0ee46f1a47675152d3d865797a18358881d7a6. 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.
CVE-2021-37666 affects TensorFlow. An attacker can cause undefined behavior in tf.raw_ops.RaggedTensorToVariant by binding a reference to a null pointer. The flaw stems from incomplete validation of the splits values, which misses the case where the argument is empty.
Fix: The issue is patched in GitHub commit be7a4de6adfbd303ce08be4332554dff70362612. 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…
CVE-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.
TensorFlow versions affected by CVE-2021-37664 let an attacker read outside the bounds of heap-allocated data. The flaw is triggered by specially crafted illegal arguments to `BoostedTreesSparseCalculateBestFeatureSplit`, because the implementation does not check that each value in `stats_summary_indices` is in range.
Fix: Patched in GitHub commit e84c975313e8e8e38bb2ea118196369c45c51378. 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.
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…
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 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.