p PatchFirst

PatchFirst · Vulnerabilidades recientes

Vulnerabilidades de tensorflow · Página 13

Vulnerabilidades publicadas para tensorflow en los últimos 30 días: 0. Incluidas en el catálogo KEV: 0.

Filtrar vulnerabilidades
Borrar filtros

Vulnerabilidades: 434

  1. CVE-2021-37679

    Alta · CVSS 7.1EPSS 0,18%Corrección disponible

    Heap OOB in nested `tf.map_fn` with `RaggedTensor`s in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions it is possible to nest a `tf.map_fn` within another `tf.map_fn` call. However, if the input tensor is a `RaggedTensor` and there is no function signature provided, code assumes the output is a fully specified tensor and fills output buffer with uninitialized contents from the heap. The `t` and `z` outputs should be identical, however this is not the case. The last row of `t` contains data from the heap which can be used to leak other memory information. The bug lies in the conversion from a `Variant` tensor to a `RaggedTensor`. The [implementation](htt

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  2. CVE-2021-37672

    Media · CVSS 5.5EPSS 0,17%Corrección disponible

    Heap OOB in `SdcaOptimizerV2` in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can read from outside of bounds of heap allocated data by sending specially crafted illegal arguments to `tf.raw_ops.SdcaOptimizerV2`. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/sdca_internal.cc#L320-L353) does not check that the length of `example_labels` is the same as the number of examples. We have patched the issue in GitHub commit a4e138660270e7599793fa438cd7b2fc2ce215a6. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this c

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  3. CVE-2021-37687

    Media · CVSS 5.5EPSS 0,19%Corrección disponible

    Heap OOB in TensorFlow Lite's `Gather*` implementations

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions TFLite's [`GatherNd` implementation](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/gather_nd.cc#L124) does not support negative indices but there are no checks for this situation. Hence, an attacker can read arbitrary data from the heap by carefully crafting a model with negative values in `indices`. Similar issue exists in [`Gather` implementation](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/gather.cc). We have patched th

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  4. CVE-2021-37685

    Media · CVSS 5.5EPSS 0,17%Corrección disponible

    Heap OOB in TensorFlow Lite

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions TFLite's [`expand_dims.cc`](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/expand_dims.cc#L36-L50) contains a vulnerability which allows reading one element outside of bounds of heap allocated data. If `axis` is a large negative value (e.g., `-100000`), then after the first `if` it would still be negative. The check following the `if` statement will pass and the `for` loop would read one element before the start of `input_dims.data` (when `i = 0`). We have patched the issue in GitHub commi

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  5. CVE-2021-37681

    Alta · CVSS 7.8EPSS 0,17%Corrección disponible

    Null pointer exception in TensorFlow Lite

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of SVDF in TFLite is [vulnerable to a null pointer error](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/lite/kernels/svdf.cc#L300-L313). The [`GetVariableInput` function](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/lite/kernels/kernel_util.cc#L115-L119) can return a null pointer but `GetTensorData` assumes that the argument is always a valid tensor. Furthermore, because `GetVariableInput` calls [`GetMutableInput`](https://github.

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  6. CVE-2021-37689

    Alta · CVSS 7.8EPSS 0,17%Corrección disponible

    Null pointer dereference in TensorFlow Lite MLIR optimizations

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can craft a TFLite model that would trigger a null pointer dereference, which would result in a crash and denial of service. This is caused by the MLIR optimization of `L2NormalizeReduceAxis` operator. The [implementation](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/compiler/mlir/lite/transforms/optimize.cc#L67-L70) unconditionally dereferences a pointer to an iterator to a vector without checking that the vector has elements. We have patched the issue in GitHub commit d6b57f461b39fd1aa8

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  7. CVE-2021-37688

    Alta · CVSS 7.8EPSS 0,17%Corrección disponible

    Null pointer dereference in TensorFlow Lite

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can craft a TFLite model that would trigger a null pointer dereference, which would result in a crash and denial of service. The [implementation](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/internal/optimized/optimized_ops.h#L268-L285) unconditionally dereferences a pointer. We have patched the issue in GitHub commit 15691e456c7dc9bd6be203b09765b063bf4a380c. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  8. CVE-2021-37686

    Media · CVSS 5.5EPSS 0,17%Corrección disponible

    Infinite loop in TensorFlow Lite

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the strided slice implementation in TFLite has a logic bug which can allow an attacker to trigger an infinite loop. This arises from newly introduced support for [ellipsis in axis definition](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/strided_slice.cc#L103-L122). An attacker can craft a model such that `ellipsis_end_idx` is smaller than `i` (e.g., always negative). In this case, the inner loop does not increase `i` and the `continue` statement causes execution to skip over the preincre

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.6.0rc2
    Publicación Actualización
  9. CVE-2021-37680

    Media · CVSS 5.5EPSS 0,15%Corrección disponible

    Division by zero in TFLite in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of fully connected layers in TFLite is [vulnerable to a division by zero error](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/lite/kernels/fully_connected.cc#L226). We have patched the issue in GitHub commit 718721986aa137691ee23f03638867151f74935f. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  10. CVE-2021-37675

    Media · CVSS 5.5EPSS 0,16%Corrección disponible

    Division by 0 in most convolution operators in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions most implementations of convolution operators in TensorFlow are affected by a division by 0 vulnerability where an attacker can trigger a denial of service via a crash. The shape inference [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/framework/common_shape_fns.cc#L577) is missing several validations before doing divisions and modulo operations. We have patched the issue in GitHub commit 8a793b5d7f59e37ac7f3cd0954a750a2fe76bad4. The fix will be included in TensorFlow 2.6.0. We wi

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  11. CVE-2021-37676

    Alta · CVSS 7.8EPSS 0,17%Corrección disponible

    Reference binding to nullptr in shape inference in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause undefined behavior via binding a reference to null pointer in `tf.raw_ops.SparseFillEmptyRows`. The shape inference [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/ops/sparse_ops.cc#L608-L634) does not validate that the input arguments are not empty tensors. We have patched the issue in GitHub commit 578e634b4f1c1c684d4b4294f9e5281b2133b3ed. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3,

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  12. CVE-2021-37671

    Alta · CVSS 7.8EPSS 0,17%Corrección disponible

    Reference binding to nullptr in map operations in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause undefined behavior via binding a reference to null pointer in `tf.raw_ops.Map*` and `tf.raw_ops.OrderedMap*` operations. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/map_stage_op.cc#L222-L248) has a check in place to ensure that `indices` is in ascending order, but does not check that `indices` is not empty. We have patched the issue in GitHub commit 532f5c5a547126c634fefd43bbad1dc6417678ac. The fix will be included in TensorFlow 2.6.0. We will

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  13. CVE-2021-37666

    Alta · CVSS 7.8EPSS 0,17%Corrección disponible

    Reference binding to nullptr in `RaggedTensorToVariant` in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause undefined behavior via binding a reference to null pointer in `tf.raw_ops.RaggedTensorToVariant`. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/ragged_tensor_to_variant_op.cc#L129) has an incomplete validation of the splits values, missing the case when the argument would be empty. We have patched the issue in GitHub commit be7a4de6adfbd303ce08be4332554dff70362612. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  14. CVE-2021-37667

    Alta · CVSS 7.8EPSS 0,17%Corrección disponible

    Reference binding to nullptr in unicode encoding in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause undefined behavior via binding a reference to null pointer in `tf.raw_ops.UnicodeEncode`. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/unicode_ops.cc#L533-L539) reads the first dimension of the `input_splits` tensor before validating that this tensor is not empty. We have patched the issue in GitHub commit 2e0ee46f1a47675152d3d865797a18358881d7a6. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  15. CVE-2021-37648

    Alta · CVSS 7.8EPSS 0,19%Corrección disponible

    Incorrect validation of `SaveV2` inputs in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the code for `tf.raw_ops.SaveV2` does not properly validate the inputs and an attacker can trigger a null pointer dereference. The [implementation](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/save_restore_v2_ops.cc) uses `ValidateInputs` to check that the input arguments are valid. This validation would have caught the illegal state represented by the reproducer above. However, the validation uses `OP_REQUIRES` which translates to setting the `Status` object of the current `OpKernelCont

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  16. CVE-2021-37652

    Alta · CVSS 7.8EPSS 0,17%Corrección disponible

    Use after free in boosted trees creation in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation for `tf.raw_ops.BoostedTreesCreateEnsemble` can result in a use after free error if an attacker supplies specially crafted arguments. The [implementation](https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/boosted_trees/resource_ops.cc#L55) uses a reference counted resource and decrements the refcount if the initialization fails, as it should. However, when the code was written, the resource was represented as a naked pointer but later refactoring has changed it to be a smar

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  17. CVE-2021-37646

    Media · CVSS 5.5EPSS 0,15%Corrección disponible

    Bad alloc in `StringNGrams` caused by integer conversion in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of `tf.raw_ops.StringNGrams` is vulnerable to an integer overflow issue caused by converting a signed integer value to an unsigned one and then allocating memory based on this value. The [implementation](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/string_ngrams_op.cc#L184) calls `reserve` on a `tstring` with a value that sometimes can be negative if user supplies negative `ngram_widths`. The `reserve` method calls `TF_TString_Reserve` which has an `unsigned long` argu

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  18. CVE-2021-37661

    Media · CVSS 5.5EPSS 0,15%Corrección disponible

    Crash caused by integer conversion to unsigned in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause a denial of service in `boosted_trees_create_quantile_stream_resource` by using negative arguments. The [implementation](https://github.com/tensorflow/tensorflow/blob/84d053187cb80d975ef2b9684d4b61981bca0c41/tensorflow/core/kernels/boosted_trees/quantile_ops.cc#L96) does not validate that `num_streams` only contains non-negative numbers. In turn, [this results in using this value to allocate memory](https://github.com/tensorflow/tensorflow/blob/84d053187cb80d975ef2b9684d4b61981bca0c41/tensorflow/core/kernels/boosted_trees/quantile

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  19. CVE-2021-37645

    Media · CVSS 5.5EPSS 0,15%Corrección disponible

    Integer overflow due to conversion to unsigned in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of `tf.raw_ops.QuantizeAndDequantizeV4Grad` is vulnerable to an integer overflow issue caused by converting a signed integer value to an unsigned one and then allocating memory based on this value. The [implementation](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/quantize_and_dequantize_op.cc#L126) uses the `axis` value as the size argument to `absl::InlinedVector` constructor. But, the constructor uses an unsigned type for the argument, so the implicit conversion tran

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización
  20. CVE-2021-37651

    Alta · CVSS 7.1EPSS 0,17%Corrección disponible

    Heap buffer overflow in `FractionalAvgPoolGrad` in TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation for `tf.raw_ops.FractionalAvgPoolGrad` can be tricked into accessing data outside of bounds of heap allocated buffers. The [implementation](https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/fractional_avg_pool_op.cc#L205) does not validate that the input tensor is non-empty. Thus, code constructs an empty `EigenDoubleMatrixMap` and then accesses this buffer with indices that are outside of the empty area. We have patched the issue in GitHub commit 0f931751fb20f565c4e94aa6df

    • Actualiza a 2.3.4
    • Actualiza a 2.4.3
    • Actualiza a 2.5.1
    Publicación Actualización

Comprueba tu servidor

Compara tu pila y las versiones instaladas con las bases actuales de vulnerabilidades.

Comprueba tu servidor →