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,677 items
A heap buffer overflow in tf.raw_ops.SparseSplit in TensorFlow lets an attacker read or write past a heap buffer. The flaw is that the implementation in sparse_tensor.h indexes an array using an offset the user controls. TensorFlow 2.5.0, along with TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4, are affected.
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-29557 affects TensorFlow, an open source machine learning platform. An attacker can trigger a denial of service through a floating-point exception in `tf.raw_ops.SparseMatMul`, caused by a division by zero in Eigen code when the `b` tensor is empty.
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, which are also affected and still in supported range.
CVE-2021-29556 affects TensorFlow, an open source machine learning platform. An attacker can trigger a denial of service through an FPE runtime error in `tf.raw_ops.Reverse`, because the implementation divides by the first dimension of the tensor argument.
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, which are affected and still in supported range.
CVE-2021-29555 affects TensorFlow's `tf.raw_ops.FusedBatchNorm`. An attacker can trigger a denial of service through a FPE runtime error, because the implementation divides based on the last dimension of the `x` tensor, which the user controls.
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-29553 affects TensorFlow. The `tf.raw_ops.QuantizeAndDequantizeV3` operation does not validate the user-supplied `axis` attribute before using it to index the array backing the `input` argument. An attacker can therefore read data outside the bounds of a heap-allocated buffer.
Fix: Fixed 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, which are also affected and still in supported range.
TensorFlow's UnsortedSegmentJoin operator assumes its num_segments tensor argument is a valid scalar. An attacker who controls that argument can pass an empty tensor, which invalidates a CHECK in .scalar<T>()() and terminates the process, causing a denial of service.
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 DatabaseThe `MatrixTriangularSolve` implementation in TensorFlow does not stop kernel execution when one validation condition fails. The fix ships in TensorFlow 2.5.0, and the commit will also be cherry-picked to TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4, which are affected and still supported.
Fix: Fixed in TensorFlow 2.5.0. The fix will also be cherry-picked to TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
NVD/CVE DatabaseTensorFlow's tf.raw_ops.FractionalAvgPool can be made to divide by zero at runtime. An attacker who controls input_size and pooling_ratio can make the computed output_size zero, because the DCHECK_GT guard is a no-op in released builds. The resulting modulo-by-zero in GeneratePoolingSequence crashes the process, causing denial of service.
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.
TensorFlow, an open source machine learning platform, has a flaw in `tf.raw_ops.QuantizedBatchNormWithGlobalNormalization`. The implementation computes a modulo operation without checking that the divisor is not zero, and an attacker can make `vector_num_elements` equal 0 through input shapes, causing a runtime division by zero error and denial of service.
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.
TensorFlow's `tf.raw_ops.QuantizedBatchNormWithGlobalNormalization` contains a flaw where the implementation does not validate all constraints in the op's contract. An attacker can trigger a runtime division by zero, causing denial of service.
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.
TensorFlow's `tf.raw_ops.QuantizedBatchNormWithGlobalNormalization` reads outside its buffer bounds when any input is empty, because the implementation assumes inputs are non-empty and accesses index 0 of an empty `.flat<T>()` buffer. An attacker can trigger a segfault, causing denial of service.
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.
CVE-2021-29546 affects TensorFlow. An attacker can trigger an integer division by zero undefined behavior in `tf.raw_ops.QuantizedBiasAdd`. The Eigen kernel in `quantization_utils.h` divides by the element count of the smaller input, based on shape, without checking that the count is not zero.
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, which are also affected and still in the supported range.
CVE-2021-29545 affects TensorFlow, an open source machine learning platform. An attacker can trigger a denial of service through a `CHECK`-fail when converting sparse tensors to CSR Sparse matrices, caused by a double redirection that accesses a heap-allocated array. When `indices(i, 0) + 1` falls outside the bounds of `csr_row_ptr`, the code writes outside the bounds of heap-allocated data.
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.
CVE-2021-29544 is a denial of service flaw in TensorFlow. An attacker can trigger a `CHECK` failure in `tf.raw_ops.QuantizeAndDequantizeV4Grad` because the implementation does not validate the rank of the `input_*` tensors, which are then passed to `QuantizeAndDequantizePerChannelGradientImpl`. That method requires rank 1 and fails the check otherwise.
Fix: The fix will be included in TensorFlow 2.5.0. The commit will also be cherrypicked to TensorFlow 2.4.2, described as the only other affected version.
CVE-2021-29543 affects TensorFlow's tf.raw_ops.CTCGreedyDecoder. A CHECK_LT in the implementation aborts the program when an input invariant fails, instead of returning a valid error to the user. An attacker can trigger this abnormal termination to cause a denial of service.
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, which are also affected and still in the supported range.
CVE-2021-29542 is a heap buffer overflow in TensorFlow's `tf.raw_ops.StringNGrams` operation. Crafted inputs where `num_tokens` is 0 and `data_start_index=0` with left padding cause the implementation to read `data[-1]`.
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 DatabaseA null pointer dereference in `tf.raw_ops.StringNGrams` in TensorFlow lets an attacker trigger a crash. The implementation does not fully validate the `data_splits` argument, so `ngrams_data` becomes a null pointer when the computed output has zero or negative size, and later writes to the output tensor dereference it.
Fix: The fix will be included in TensorFlow 2.5.0. The commit will also be cherry-picked to TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, which are also affected and still in supported range.
CVE-2021-29540 is a heap buffer overflow in TensorFlow's `Conv2DBackpropFilter` operation. The implementation computes the size of the filter tensor but does not check that it matches the number of elements in `filter_sizes`, so later reads and writes use the computed value instead of the actual element count, letting an attacker trigger the overflow.
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, which are affected and still in supported range.
A segfault occurs when calling `tf.raw_ops.ImmutableConst` with a `dtype` of `tf.resource` or `tf.variant`, because the implementation assumes the tensor contents are pure scalars. The issue is patched in commit 4f663d4b8f0bec1b48da6fa091a7d29609980fa4 and will ship in TensorFlow 2.5.0, and nightly packages built after that commit include the fix.
Fix: Patched in commit 4f663d4b8f0bec1b48da6fa091a7d29609980fa4; fixed in TensorFlow 2.5.0 and in TensorFlow nightly packages after this commit.
CVE-2021-29538 affects TensorFlow's `Conv2DBackpropFilter` operation. When all tensor shapes passed in are empty, `work_unit_size` becomes 0, and the code divides by it without checking first. An attacker who controls the input shapes can trigger a runtime exception, enabling denial of service.
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 Database