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


0.0
medium

Snyk CVSS

    Attack Complexity High
    User Interaction Required
    Availability High

    Threat Intelligence

    EPSS 0.1% (41st percentile)
Expand this section
NVD
7.5 high

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 ID SNYK-UNMANAGED-TENSORFLOWTENSORFLOW-3136271
  • published 20 Nov 2022
  • disclosed 20 Nov 2022
  • credit Pattarakrit Rattankul

How to fix?

Upgrade tensorflow/tensorflow to version 2.9.3, 2.10.1, 2.11.0 or higher.

Overview

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.