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 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.
NVD/CVE DatabaseIn 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.
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.
TensorFlow's `tf.raw_ops.SparseDenseCwiseDiv` contains a division by 0 error in affected versions. The implementation uses a common class for all binary operations but does not handle the division by 0 case separately.
Fix: Patched in GitHub commit d9204be9f49520cdaaeb2541d1dc5187b23f31d9. 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-29619 affects TensorFlow, an open source machine learning platform. Passing invalid arguments, such as those found through fuzzing, to `tf.raw_ops.SparseCountSparseOutput` causes a segfault. The source states that TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4 are also affected and remain in supported range.
Fix: The fix will be included in TensorFlow 2.5.0. The source also says the commit will be cherrypicked onto TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
CVE-2021-29618 affects TensorFlow, an open source machine learning platform. Passing a complex argument to `tf.transpose` together with `conjugate=True` causes a crash.
Fix: The fix will be included in TensorFlow 2.5.0. The commit will also be cherrypicked to TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4.
NVD/CVE DatabaseCVE-2021-29617 is a denial of service flaw in TensorFlow, an open source machine learning platform. An attacker can trigger a `CHECK`-fail in `tf.strings.substr` by supplying invalid arguments. The fix will ship in TensorFlow 2.5.0, with cherry-picked backports planned for 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
Fix: The fix will be included in TensorFlow 2.5.0, with the same commit cherry-picked to TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
NVD/CVE Database