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
CVE-2020-15211 affects TensorFlow Lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1. The flatbuffer model format treats a tensor index of -1 as an optional tensor, but validation accepts it for any operator, including outputs. This lets a crafted model read and write outside the bounds of heap-allocated arrays, at a specific offset from the start of those arrays, giving limited read and write primitives.
Fix: Fixed in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, via commits 46d5b0852, 00302787b7, e11f5558, cd31fd0ce, 1970c21 and fff2c83.
NVD/CVE DatabaseCVE-2020-15210 affects tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1. When a TFLite saved model uses the same tensor as both input and output of an operator, a segmentation fault or memory corruption can occur, depending on the operator.
Fix: We have patched the issue in d58c96946b and will release patch releases for all versions between 1.15 and 2.3. Users are recommended to upgrade to TensorFlow 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
A crafted TFLite model in tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 can force a node to take as input a tensor backed by a `nullptr` buffer. By changing a buffer index in the flatbuffer serialization, an attacker converts a read-only tensor to read-write, and since nothing writes to it, the runtime dereferences a null pointer.
Fix: The issue is patched in commit 0b5662bc and released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
TensorFlow Lite versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 determine the common dimension size of two tensors with a DCHECK that is a no-op outside debug builds, and the function always returns the first tensor's dimension. An attacker can craft tensors where that value exceeds the second tensor's, causing out-of-bounds reads and writes because the interpreter assumes both tensors hold enough data.
Fix: The issue is patched in commit 8ee24e7949a203d234489f9da2c5bf45a7d5157d and released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, `ResolveAxis` converts negative axis values to positive indices, but the check that the converted index is valid exists only in debug builds, through a `DCHECK`. When that check does not trigger, execution continues with a negative index, which accesses data out of bounds and can cause segfaults or data corruption.
Fix: The issue is patched in commit 2d88f470dea2671b430884260f3626b1fe99830a and released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
CVE-2020-15205 affects TensorFlow versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1. The `data_splits` argument of `tf.raw_ops.StringNGrams` lacks validation, so crafted values can cause heap overflow errors and leak memory contents, which may include return addresses that can be used to defeat ASLR.
Fix: The issue is patched in commit 0462de5b544ed4731aa2fb23946ac22c01856b80 and released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
In eager mode, TensorFlow versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 do not set the session state. Calling `tf.raw_ops.GetSessionHandle` or `tf.raw_ops.GetSessionHandleV2` therefore triggers a null pointer dereference, because `ctx->session_state()` returns `nullptr` and the code dereferences it immediately, causing a segmentation fault.
Fix: Fixed in commit 9a133d73ae4b4664d22bd1aa6d654fec13c52ee1, released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 or 2.3.1.
CVE-2020-15203 affects TensorFlow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1. By controlling the `fill` argument of tf.strings.as_string, an attacker can trigger a format string vulnerability, because the internal format used in a `printf` call is constructed unsafely, which may result in a segmentation fault.
Fix: The issue is patched in commit 33be22c65d86256e6826666662e40dbdfe70ee83 and released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
TensorFlow versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 have an integer truncation flaw in the `Shard` API. Several call sites pass a lambda taking `int` or `int32` arguments where the API expects `int64`, so large parallel workloads truncate the values. Depending on how the lambda uses them, this can cause segfaults, out-of-bounds reads and writes, stack overflows, or data corruption.
Fix: Fixed in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1, via commits 27b417360cbd671ef55915e4bb6bb06af8b8a832 and ca8c013b5e97b1373b3bb1c97ea655e69f31a575.
TensorFlow versions before 2.3.1 contain a flaw in the `RaggedCountSparseOutput` implementation, which does not validate that its input arguments form a valid ragged tensor. Specifically, the `splits` tensor is not checked to produce a valid partitioning of `values`, so a `splits` tensor that does not end with a value at least `num_values` lets the `while` loop read outside the bounds of `split_values`, causing a heap buffer overflow (CVE-2020-15201).
Fix: Patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and released in TensorFlow version 2.3.1.
TensorFlow versions before 2.3.1 have a flaw in the `RaggedCountSparseOutput` implementation, which does not check that its inputs form a valid ragged tensor, in particular that the `splits` tensor partitions the `values` tensor correctly. Because of this, the code can cause a heap buffer overflow. If the first element of `splits_values` is not 0, accessing a missing hashmap in `per_batch_counts` from user code causes a segmentation fault.
Fix: The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and released in TensorFlow version 2.3.1.
In TensorFlow before 2.3.1, `RaggedCountSparseOutput` does not validate that its input arguments form a valid ragged tensor, and it does not check that the `splits` tensor has the minimum required number of elements. If a user passes an empty `splits` tensor or one with exactly one element, the `BatchedMap` structure initialized from it becomes `nullptr`, and the operating system raises a `SIGABRT` signal, crashing the process.
Fix: Patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and released in TensorFlow version 2.3.1.
CVE-2020-15198 affects TensorFlow before version 2.3.1. The `SparseCountSparseOutput` implementation does not check that the `indices` and `values` tensors have matching shapes, and because both are read in parallel, a mismatch can cause accesses outside the bounds of heap-allocated buffers.
Fix: Fixed in TensorFlow version 2.3.1, patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02.
NVD/CVE DatabaseIn TensorFlow before 2.3.1, the `SparseCountSparseOutput` implementation does not check that its input forms a valid sparse tensor, and in particular does not verify that the `indices` tensor has rank 2. A malicious user can pass a tensor of a different rank, triggering a `CHECK` assertion failure and a crash. Where users can control the components of the input sparse tensor, this enables denial of service in serving installations.
Fix: The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and released in TensorFlow version 2.3.1.
CVE-2020-15196 affects TensorFlow 2.3.0. The `SparseCountSparseOutput` and `RaggedCountSparseOutput` implementations do not check that the `weights` tensor matches the shape of the data, unlike `DenseCountSparseOutput`. An attacker who passes fewer weights than values can trigger a read outside the bounds of the heap buffer allocated for the weights.
Fix: The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and released in TensorFlow version 2.3.1.
CVE-2020-15195 affects TensorFlow versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1. In `SparseFillEmptyRowsGrad`, a double indexing pattern lets `reverse_index_map(i)` point outside the bounds of `grad_values`, causing a heap buffer overflow.
Fix: Patched in commit 390611e0d45c5793c7066110af37c8514e6a6c54 and released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 or 2.3.1.
NVD/CVE DatabaseCVE-2020-15194 affects TensorFlow versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1. In the `SparseFillEmptyRowsGrad` implementation, only `reverse_index_map_t` has its shape validated, while `grad_values_t` is accessed in a similar pattern without validation. A malicious user can pass a bad `grad_values_t` to trigger an assertion failure in `vec`, causing denial of service in serving installations.
Fix: The issue is patched in commit 390611e0d45c5793c7066110af37c8514e6a6c54 and released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
TensorFlow versions before 2.2.1 and 2.3.1 have a flaw in `dlpack.to_dlpack`. The pybind11 glue code assumes its argument is a tensor, but nothing stops callers from passing a Python object, so a `reinterpret_cast` produces a pointer to uninitialized memory, leading to further memory corruption.
Fix: The issue is patched in commit 22e07fb204386768e5bcbea563641ea11f96ceb8 and released in TensorFlow versions 2.2.1 and 2.3.1.
Tensorflow versions before 2.2.1 and 2.3.1 leak memory when a user passes a list of strings to `dlpack.to_dlpack`. The leak follows an expected validation failure because the `status` argument is not checked after the methods that can return an error status.
Fix: The issue is patched in commit 22e07fb204386768e5bcbea563641ea11f96ceb8 and is released in TensorFlow versions 2.2.1 or 2.3.1.
NVD/CVE DatabaseCVE-2020-15191 affects TensorFlow versions before 2.2.1 and 2.3.1. When a user passes an invalid argument to `dlpack.to_dlpack`, validation code binds variables to `nullptr` and sets a `status` variable to the error, but the `status` value is never checked. Code that follows then binds references to null pointers, which is undefined behavior that the `-fsanitize=null` compiler option reports as an error.
Fix: Fixed in TensorFlow versions 2.2.1 and 2.3.1, via commit 22e07fb204386768e5bcbea563641ea11f96ceb8.