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.
3,729 items
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.
NVD/CVE DatabaseTensorFlow'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 DatabaseThe TrySimplify implementation in TensorFlow's Grappler arithmetic optimizer dereferences a null pointer in corner cases where a node with no inputs is optimized, causing undefined behavior. The flaw is tracked as CVE-2021-29616 and affects supported TensorFlow releases.
Fix: Fix will be included in TensorFlow 2.5.0. The commit will also be cherry-picked to TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
NVD/CVE DatabaseTensorFlow's `ParseAttrValue` function, in attr_value_util.cc, can be driven into a stack overflow through recursion when given a specially crafted input. The flaw is tracked as CVE-2021-29615 and affects supported TensorFlow releases.
Fix: The fix will be included in TensorFlow 2.5.0. The commit will also be cherry-picked to TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
NVD/CVE DatabaseCVE-2021-29614 affects the padded version of `tf.io.decode_raw` in TensorFlow. When `fixed_length` is combined with wider datatypes, the output pointer advances by `fixed_length * sizeof(T)` bytes but only at most `fixed_length` bytes are copied from the input. This causes incorrect decoding and out-of-bounds writes that crash the Python interpreter, and the source states that more severe attacks are possible.
Fix: The fix will be included in TensorFlow 2.5.0. The commit will also be cherrypicked to TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
CVE-2021-29613 is an incomplete validation flaw in `tf.raw_ops.CTCLoss` in TensorFlow. It allows an attacker to trigger an out-of-bounds read from the heap, classified as CWE-125 and CWE-665. The source states that TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4 are also affected and still in supported range.
Fix: The fix will be included in TensorFlow 2.5.0. Commits are also being cherry-picked to TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
TensorFlow's Eigen implementation of `tf.raw_ops.BandedTriangularSolve` allows an attacker to trigger a heap buffer overflow. The op's `ValidateInputTensors` check does not verify that the two input tensors are non-empty, and the op does not check `ctx->status()` after calling helpers that use `OP_REQUIRES`, so the validation that exists is ineffective.
Fix: 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.
TensorFlow's `SparseReshape` operation has incomplete input validation. It does not check that its arguments describe a valid sparse tensor, so malformed input triggers a `CHECK` failure that causes a denial of service. The affected versions are TensorFlow 2.4.2 and 2.3.3, along with earlier releases prior to the fix.
Fix: The fix will be included in TensorFlow 2.5.0. The commit will also be cherry-picked to TensorFlow 2.4.2 and TensorFlow 2.3.3.