Search
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
1,519 items
CVE-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.
NVD/CVE DatabaseIn 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…
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.
CVE-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.