Incorrect Calculation of Buffer Size Affecting tensorflow-cpu package, versions [,2.9.3)[2.10.0,2.10.1)[2.11.0rc0,2.11.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-TENSORFLOWCPU-3136270
  • published20 Nov 2022
  • disclosed20 Nov 2022
  • creditPattarakrit Rattankul

Introduced: 20 Nov 2022

CVE-2022-41887  (opens in a new tab)
CWE-131  (opens in a new tab)

How to fix?

Upgrade tensorflow-cpu to version 2.9.3, 2.10.1, 2.11.0 or higher.

Overview

tensorflow-cpu is a machine learning framework.

Affected versions of this package are vulnerable to Incorrect Calculation of Buffer Size via tf.keras.losses.poisson which receives a y_pred and y_true that are passed through functor::mul in BinaryOp. If the resulting dimensions overflow an int32, TensorFlow will crash due to a size mismatch during broadcast assignment.

CVSS Scores

version 3.1