All items
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
1,509 items
TensorFlow's tf.raw_ops.SparseCountSparseOutput crashes with a segmentation fault when the dense shape argument contains a negative value. The count_ops.cc kernel assumes the first dense shape element is positive and uses it to initialize a BatchedMap<T> std::vector, so the broken invariants trigger the crash.
Fix: Ensuring that the dense_shape argument is a valid tensor shape (all elements non-negative) solves this issue. The fix will be included in TensorFlow 2.5.0, and the commit will also be cherry-picked to TensorFlow 2.4.2…
NVD/CVE DatabaseCVE-2021-29520 affects TensorFlow's `tf.raw_ops.Conv3DBackprop*` operations. Missing validation between their arguments can cause heap buffer overflows, because the implementation in `conv_grad_shape_utils.cc` assumes the `input`, `filter_sizes` and `out_backprop` tensors share the same shape while accessing them in parallel.
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 still in supported range.
The API of `tf.raw_ops.SparseCross` in TensorFlow accepts input combinations that trigger a `CHECK`-failure, causing denial of service. The implementation is tricked into treating a `tstring` tensor that actually contains integral elements, a type confusion. The fix will ship in TensorFlow 2.5.0, with cherry-picks to 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
Fix: Fixing the type confusion by preventing mixing `DT_STRING` and `DT_INT64` types. Fixed in TensorFlow 2.5.0, with the commit also cherry-picked to TensorFlow 2.4.2, 2.3.3, 2.2.3 and 2.1.4.
CVE-2021-29517 affects TensorFlow's `Conv3D` implementation. A malicious user can trigger a division by 0 through the `filter` input, because the code performs a modulo operation on user-controlled values in `conv_ops_3d.cc`. Invalid tensor shapes can also trigger an Eigen assertion that crashes the program.
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's `tf.raw_ops.RaggedTensorToVariant` operation dereferences a null pointer when called with an invalid, empty ragged tensor. The implementation never checks that the ragged tensor argument is non-empty, so `batched_ragged.splits(0)` reads from `nullptr`. The flaw is tracked as CVE-2021-29516.
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.
A heap buffer overflow in TensorFlow's `RaggedBincount` op occurs when the `splits` argument does not specify a valid `SparseTensor`. An attacker can set `splits(0)` to 7, which keeps `batch_idx` at 0 and writes to `out(-1, bin)`, before the output tensor's heap buffer.
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, which are also affected.
NVD/CVE DatabaseTensorFlow, an open source machine learning platform, is affected by a type confusion flaw in the conversion from Python arrays to C++ arrays in ndarray_tensor.cc. Calling TF operations with non-numeric tensors where numeric tensors are expected results in null pointer dereferences.
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, which are affected and still within the supported range.
TensorFlow, an open source machine learning platform, is affected by CVE-2021-29554. An attacker can trigger a denial of service through a FPE runtime error in `tf.raw_ops.DenseCountSparseOutput`. The implementation computes a divisor from user-supplied `values` data without checking that it is 0 before dividing, so a zero value yields the error.
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, which are also affected.
TensorFlow's RaggedBincount op has a heap buffer overflow when the splits argument is not a valid SparseTensor. An attacker who controls splits, set to a single element of 0, causes the while loop to read splits(1), outside the buffer bounds. The fix ships in TensorFlow 2.5.0, with cherry-picks to 2.4.2 and 2.3.3, which are also affected.
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.
CVE-2020-26270 affects TensorFlow versions running an LSTM/GRU model on the CUDA backend. When the LSTM/GRU layer receives a zero-length input, a CHECK failure occurs, which can cause a denial of service if users can control that input.
Fix: This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
NVD/CVE DatabaseCVE-2020-26269 affects TensorFlow release candidate versions 2.4.0rc*, where the general implementation that matches filesystem paths to a globbing pattern can access the array holding the directories out of bounds. The parallel implementation of GetMatchingPaths assumes invariants and preconditions that the PRs #40861 and #44310 never verified. The issue impacts only the master branch and the 2.4 release candidates.
Fix: This is patched in version 2.4.0. The final release of the 2.4 release will be patched.
In affected versions of TensorFlow, the tf.raw_ops.ImmutableConst operation returns a constant tensor backed by a memory mapped file that is assumed immutable. When the tensor type is not an integral type, the operation writes to that memory area and crashes the Python interpreter. Once the file holds enough bytes for the tensor, the snippet causes a segmentation fault, because the allocator does not override the virtual method needed to be marked as returning an opaque handle.
This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
CVE-2020-26267 affects TensorFlow versions where the tf.raw_ops.DataFormatVecPermute API does not validate its src_format and dst_format attributes. The code assumes these arguments define a permutation of NHWC, so malformed input can cause uninitialized memory accesses, out-of-bounds reads and crashes. The weakness is classified as CWE-125, Out-of-bounds Read.
Fix: This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
CVE-2020-26266 affects certain versions of TensorFlow. In some cases, a saved model can trigger use of uninitialized values during code execution. The cause is that tensor buffers are filled with the type's default value, but the quantized floating point types in Eigen are not default initialized.
Fix: This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
NVD/CVE DatabaseIn affected versions of TensorFlow, loading a saved model can access uninitialized memory while building the computation graph. The MakeEdge function does not check that output_index and input_index fall inside the arrays they index, so out-of-bounds heap reads can occur, and with a far-away index they can leak addresses from the library.
Fix: Fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
NVD/CVE DatabaseCVE-2020-15266 affects TensorFlow before version 2.4.0. When the `boxes` argument of `tf.image.crop_and_resize` has a very large value, the CPU kernel receives it as a C++ `nan` floating point value. Operating on this value is undefined behavior that later produces a segmentation fault.
Fix: The issue is patched in eccb7ec454e6617738554a255d77f08e60ee0808, and TensorFlow 2.4.0 will be released containing the patch. TensorFlow nightly packages after this commit also have the issue resolved.
CVE-2020-15265 affects TensorFlow versions before 2.4.0. Passing an invalid `axis` value to `tf.quantization.quantize_and_dequantize` makes the C++ kernel access a dimension outside the input tensor's rank. The bounds check is only a DCHECK, which is a no-op in normal builds, so the out-of-bounds array access can cause a segfault.
Fix: The issue is patched in commit eccb7ec454e6617738554a255d77f08e60ee0808, and TensorFlow 2.4.0 will be released containing the patch. TensorFlow nightly packages built after this commit also have the issue resolved.
In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can trigger a write out of bounds or a segmentation fault when segment ids are not sorted. The code assumes increasing order and sizes the output tensor from the last element, so it allocates too little memory and writes past the output array. The write can serve as a write gadget in future memory corruption exploits.
Fix: Fixed in TensorFlow versions 2.2.1 and 2.3.1 (patch commit 204945b19e44b57906c9344c0d00120eeeae178a). Workaround for statically stored segment ids: add a custom `Verifier` to the model loading code to ensure the segment…
TensorFlow Lite versions before 2.2.1 and 2.3.1 are affected by CVE-2020-15213. Models that use segment sum can trigger an out of memory allocation, causing a denial of service. The output tensor's dimensionality is taken from the last element of the segment ids tensor, so an attacker can supply a very large value to force a large allocation.
Fix: Fixed in commit 204945b19e44b57906c9344c0d00120eeeae178a, released in TensorFlow 2.2.1 and 2.3.1. A potential workaround is a custom `Verifier` that limits the maximum value in the segment ids tensor, which only covers…
In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can write outside the bounds of heap-allocated buffers when the segment ids tensor contains negative elements. Users with access to `segment_ids_data` can alter `output_index` and write beyond the `output_data` buffer, which may cause a segmentation fault or further memory corruption that can be chained with other vulnerabilities.
Fix: Fixed in TensorFlow versions 2.2.1 and 2.3.1 (patch commit 204945b19e44b57906c9344c0d00120eeeae178a). Workaround for segment ids stored statically in the model: add a custom `Verifier` to the model loading code to…