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
TensorFlow's Go bindings can segfault during garbage collection of a string tensor whose encoding failed, for example because of mismatched dimensions. The `C.TF_TString_Dealloc` call in the finalizer assumes encoding succeeded, and tensor structure is only checked at encoding time to avoid a performance penalty. The affected versions are TensorFlow 2.5.1 and earlier versions of the same line.
Fix: Patched in GitHub commit 8721ba96e5760c229217b594f6d2ba332beedf22. The fix is included in TensorFlow 2.6.0 and cherry-picked to TensorFlow 2.5.1.
NVD/CVE DatabaseTensorFlow, an open source machine learning platform, has a flaw in which a crafted TFLite model triggers a division by zero in the LSH implementation (lsh_projection.cc). The issue is tracked as CVE-2021-37691 and affects multiple supported versions.
Fix: Patched in GitHub commit 0575b640091680cfb70f4dd93e70658de43b94f9. The fix will be included in TensorFlow 2.6.0 and cherry-picked to TensorFlow 2.5.1, 2.4.3, and 2.3.4.
TensorFlow's TFLite `GatherNd` implementation does not handle negative values in `indices` and performs no checks for them. An attacker can craft a model with negative indices to read arbitrary data from the heap. The same issue exists in the `Gather` implementation.
Fix: The fix is in GitHub commits bb6a0383ed553c286f87ca88c207f6774d5c4a8f and eb921122119a6b6e470ee98b89e65d721663179d. It will be included in TensorFlow 2.6.0, and the commit will also be cherry-picked to TensorFlow 2.5.1…
TensorFlow's TFLite `expand_dims.cc` kernel contains a flaw that lets a large negative `axis` value, such as -100000, pass the bounds check. The `for` loop then reads one element before the start of heap-allocated `input_dims.data`, when `i = 0`. The issue is fixed in GitHub commit d94ffe08a65400f898241c0374e9edc6fa8ed257.
Fix: Fixed in GitHub commit d94ffe08a65400f898241c0374e9edc6fa8ed257. 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-37684 affects TensorFlow's TFLite pooling implementations in affected versions. The code performs no checks that divisors are non-zero, so a division by 0 error can occur.
Fix: Patched in GitHub commit dfa22b348b70bb89d6d6ec0ff53973bacb4f4695. 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.
NVD/CVE DatabaseTensorFlow's TFLite division implementation in affected versions is vulnerable to a division by zero error. The code does not check whether the divisor tensor contains zero elements. The issue is tracked as CVE-2021-37683.
Fix: Fix committed in GitHub commit 1e206baedf8bef0334cca3eb92bab134ef525a28. 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 TFLite operations that use quantization can be made to read uninitialized values. The flaw stems from missing checks on `quantization.type` before `quantization.params` is used, across large parts of the code. The issue affects the listed TensorFlow versions and is still within the supported range.
Fix: Patched in GitHub commits 537bc7c723439b9194a358f64d871dd326c18887, 4a91f2069f7145aab6ba2d8cfe41be8a110c18a5 and 8933b8a21280696ab119b63263babdb54c298538.
TensorFlow affected versions allow a `tf.map_fn` to be nested within another `tf.map_fn` call. When the input is a `RaggedTensor` and no function signature is provided, the output buffer is filled with uninitialized heap contents, so the last row of `t` can expose other memory information. The flaw lies in the conversion from a `Variant` tensor to a `RaggedTensor`, whose implementation does not check that all inner shapes match, and this can also cause data loss if the input tensor is altered.
Patched in GitHub commit 4e2565483d0ffcadc719bd44893fb7f609bb5f12. 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 and Keras can be tricked into arbitrary code execution when deserializing a Keras model from YAML format. The implementation uses `yaml.unsafe_load`, which can execute arbitrary code on the input. The YAML format support has been removed for now.
Fix: Patched in GitHub commit 23d6383eb6c14084a8fc3bdf164043b974818012. 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.
CVE-2021-37677 affects the shape inference code for `tf.raw_ops.Dequantize` in TensorFlow. Invalid `axis` values that are neither `-1` nor greater than `-1` are not validated, so an attacker who supplies such arguments can trigger a segfault and a denial of service.
Fix: We have patched the issue in GitHub commit da857cfa0fde8f79ad0afdbc94e88b5d4bbec764. The fix will be included in TensorFlow 2.6.0, and the commit will be cherrypicked onto TensorFlow 2.5.1, TensorFlow 2.4.3, and…
CVE-2021-37674 affects TensorFlow versions that lack validation in `tf.raw_ops.MaxPoolGrad`. The `maxpooling_op.cc` implementation does not check the `orig_input` and `orig_output` tensors, so an attacker can trigger a segmentation fault and a denial of service. The source notes that the earlier fixes for CVE-2021-29579 were incomplete.
Fix: Patched in GitHub commit 136b51f10903e044308cf77117c0ed9871350475. 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.
CVE-2021-37673 affects TensorFlow versions where `tf.raw_ops.MapStage` fails a `CHECK` when the `key` input is not a valid non-empty tensor. An attacker can trigger this to cause a denial of service, because the implementation in map_stage_op.cc does not validate that input.
Fix: Patched in GitHub commit d7de67733925de196ec8863a33445b73f9562d1d. 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-37672 affects TensorFlow. In affected versions, an attacker can read outside the bounds of heap-allocated data by sending specially crafted illegal arguments to `tf.raw_ops.SdcaOptimizerV2`. The implementation does not check that the length of `example_labels` matches the number of examples.
Fix: Patched in GitHub commit a4e138660270e7599793fa438cd7b2fc2ce215a6. 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-37670 affects TensorFlow versions before the fix. An attacker can read outside the bounds of heap-allocated data by sending specially crafted illegal arguments to `tf.raw_ops.UpperBound`, because the implementation does not validate the rank of the `sorted_input` argument. A similar issue exists in `tf.raw_ops.LowerBound`.
Fix: Patched in GitHub commit 42459e4273c2e47a3232cc16c4f4fff3b3a35c38. 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 versions before the fix allow an attacker to cause denial of service in applications serving models that use tf.raw_ops.NonMaxSuppressionV5. A negative user-supplied output_size is implicitly converted to an unsigned size_t when resizing a std::vector, which triggers a division by 0 and a crash. The same issue appears in CombinedNonMaxSuppression.
Fix: Patched in GitHub commits 3a7362750d5c372420aa8f0caf7bf5b5c3d0f52d and b5cdbf12ffcaaffecf98f22a6be5a64bb96e4f58. The fix will be included in TensorFlow 2.6.0, and the commits will be cherry-picked to TensorFlow 2.5.1…
CVE-2021-37668 affects TensorFlow, an open source machine learning platform. An attacker can cause a denial of service in applications serving models by calling `tf.raw_ops.UnravelIndex` in a way that triggers a division by 0, because the implementation does not check that the tensor subsumed by `dims` is not empty.
Fix: Patched in GitHub commit a776040a5e7ebf76eeb7eb923bf1ae417dd4d233. 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 TensorFlow 2.3.4.
TensorFlow's MKL implementation of requantization fails to fully validate its inputs. In `mkl_requantization_range_per_channel_op.cc`, the `input` tensor's dimensions are not checked, and `MklRequantizePerChannelOp` in `mkl_requantize_per_channel_op.cc` similarly skips full validation of its input arguments. An attacker can trigger undefined behavior by binding a reference to a null pointer, or read data outside the bounds of heap-allocated arrays.
Fix: Patched in GitHub commits 9e62869465573cb2d9b5053f1fa02a81fce21d69 and 203214568f5bc237603dbab6e1fd389f1572f5c9. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1…
TensorFlow's `tf.raw_ops.QuantizeV2` performs incomplete validation, so an attacker can trigger undefined behavior by binding a reference to a null pointer, or read data outside heap-allocated arrays. The implementation does not check that `min_range` and `max_range` have the same non-zero number of elements, nor that `axis` is in range for the rank of `input` and the range lengths match the `axis` dimension.
Fix: Patched in GitHub commit 6da6620efad397c85493b8f8667b821403516708. 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 MLIR optimization of the `L2NormalizeReduceAxis` operator unconditionally dereferences an iterator to a vector without checking that the vector has elements. An attacker can exploit this by crafting a TFLite model that triggers a null pointer dereference, causing a crash and denial of service.
Fix: Patched in GitHub commit d6b57f461b39fd1aa8c1b870f1b974aac3554955. 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.
A crafted TFLite model in affected TensorFlow versions triggers a null pointer dereference in the optimized_ops.h implementation, which unconditionally dereferences a pointer. The result is a crash and denial of service. The flaw is patched in GitHub commit 15691e456c7dc9bd6be203b09765b063bf4a380c.
Fix: 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.