CVE-2020-15202
September 25, 2020
In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, the "Shard" API in TensorFlow expects the last argument to be a function taking two "int64" (i.e., "long long") arguments. However, there are several places in TensorFlow where a lambda taking "int" or "int32" arguments is being used. In these cases, if the amount of work to be parallelized is large enough, integer truncation occurs. Depending on how the two arguments of the lambda are used, this can result in segfaults, read/write outside of heap allocated arrays, stack overflows, or data corruption. The issue is patched in commits 27b417360cbd671ef55915e4bb6bb06af8b8a832 and ca8c013b5e97b1373b3bb1c97ea655e69f31a575, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
Affected Packages
tensorflow-gpu (PYTHON):
Affected version(s) =2.2.0 <2.2.1Fix Suggestion:
Update to version 2.2.1tensorflow-gpu (PYTHON):
Affected version(s) =2.3.0 <2.3.1Fix Suggestion:
Update to version 2.3.1tensorflow-cpu (PYTHON):
Affected version(s) =2.3.0 <2.3.1Fix Suggestion:
Update to version 2.3.1tensorflow-gpu (PYTHON):
Affected version(s) >=2.0.0 <2.0.3Fix Suggestion:
Update to version 2.0.3tensorflow (PYTHON):
Affected version(s) =2.2.0 <2.2.1Fix Suggestion:
Update to version 2.2.1tensorflow-gpu (PYTHON):
Affected version(s) >=2.1.0 <2.1.2Fix Suggestion:
Update to version 2.1.2tensorflow (PYTHON):
Affected version(s) >=2.1.0 <2.1.2Fix Suggestion:
Update to version 2.1.2tensorflow-cpu (PYTHON):
Affected version(s) >=2.1.0 <2.1.2Fix Suggestion:
Update to version 2.1.2tensorflow-cpu (PYTHON):
Affected version(s) =2.2.0 <2.2.1Fix Suggestion:
Update to version 2.2.1tensorflow (PYTHON):
Affected version(s) =2.3.0 <2.3.1Fix Suggestion:
Update to version 2.3.1tensorflow (PYTHON):
Affected version(s) >=2.0.0 <2.0.3Fix Suggestion:
Update to version 2.0.3tensorflow-gpu (PYTHON):
Affected version(s) >=0.12.0rc0 <1.15.4Fix Suggestion:
Update to version 1.15.4tensorflow (PYTHON):
Affected version(s) >=0.11.0rc2 <1.15.4Fix Suggestion:
Update to version 1.15.4Related ResourcesĀ (10)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
CVSS v2
Base Score:
6.8
Access Vector
NETWORK
Access Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
Weakness Type (CWE)
EPSS
Base Score:
0.50