Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-pfjj-m3jj-9jc9

Опубликовано: 09 фев. 2022
Источник: github
Github: Прошло ревью
CVSS4: 7.2
CVSS3: 7.6

Описание

Undefined behavior in SparseTensorSliceDataset

Impact

The implementation of SparseTensorSliceDataset has an undefined behavior: under certain condition it can be made to dereference a nullptr value:

import tensorflow as tf import numpy as np tf.raw_ops.SparseTensorSliceDataset( indices=[[]], values=[], dense_shape=[1,1])

The 3 input arguments represent a sparse tensor. However, there are some preconditions that these arguments must satisfy but these are not validated in the implementation.

Patches

We have patched the issue in GitHub commit 965b97e4a9650495cda5a8c210ef6684b4b9eceb.

The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability has been reported by Faysal Hossain Shezan from University of Virginia.

Пакеты

Наименование

tensorflow

pip
Затронутые версииВерсия исправления

< 2.5.3

2.5.3

Наименование

tensorflow

pip
Затронутые версииВерсия исправления

>= 2.6.0, < 2.6.3

2.6.3

Наименование

tensorflow

pip
Затронутые версииВерсия исправления

= 2.7.0

2.7.1

Наименование

tensorflow-cpu

pip
Затронутые версииВерсия исправления

< 2.5.3

2.5.3

Наименование

tensorflow-cpu

pip
Затронутые версииВерсия исправления

>= 2.6.0, < 2.6.3

2.6.3

Наименование

tensorflow-cpu

pip
Затронутые версииВерсия исправления

= 2.7.0

2.7.1

Наименование

tensorflow-gpu

pip
Затронутые версииВерсия исправления

< 2.5.3

2.5.3

Наименование

tensorflow-gpu

pip
Затронутые версииВерсия исправления

>= 2.6.0, < 2.6.3

2.6.3

Наименование

tensorflow-gpu

pip
Затронутые версииВерсия исправления

= 2.7.0

2.7.1

EPSS

Процентиль: 48%
0.0025
Низкий

7.2 High

CVSS4

7.6 High

CVSS3

Дефекты

CWE-476

Связанные уязвимости

CVSS3: 7.6
nvd
около 4 лет назад

Tensorflow is an Open Source Machine Learning Framework. The implementation of `SparseTensorSliceDataset` has an undefined behavior: under certain condition it can be made to dereference a `nullptr` value. The 3 input arguments to `SparseTensorSliceDataset` represent a sparse tensor. However, there are some preconditions that these arguments must satisfy but these are not validated in the implementation. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.

CVSS3: 7.6
debian
около 4 лет назад

Tensorflow is an Open Source Machine Learning Framework. The implement ...

EPSS

Процентиль: 48%
0.0025
Низкий

7.2 High

CVSS4

7.6 High

CVSS3

Дефекты

CWE-476