CVE-2021-29608CWE-131

Heap OOB and null pointer dereference in `RaggedTensorToTensor`

Medium · published May 14, 2021

CVSS v3.1
5.3
EPSS
0%
Percentile
13.4
In the wild
Unconfirmed
What it is

TensorFlow is an end-to-end open source platform for machine learning. Due to lack of validation in `tf.raw_ops.RaggedTensorToTensor`, an attacker can exploit an undefined behavior if input arguments are empty. The implementation(https://github.com/tensorflow/tensorflow/blob/656e7673b14acd7835dc778867f84916c6d1cac2/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L356-L360) only checks that one of the tensors is not empty, but does not check for the other ones. There are multiple `DCHECK` validations to prevent heap OOB, but these are no-op in release builds, hence they don't prevent anything. The fix will be included in TensorFlow 2.5.0. We will also cherrypick these commits on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
CVSS v4.0
Not supplied
EPSS
0.00234 · 13.4th percentile
Weakness
CWE-131 · Incorrect Calculation of Buffer Size
Published
2021-05-14T19:20Z
EPSS history
Timeline
  • 14 MAY 19:20Z
    Heap OOB and null pointer dereference in `RaggedTensorToTensor`
    cvelistv5