TensorFlow 2.10 NP Array Shape Error CVE202241884
CVE-2022-41884 Published on November 18, 2022

Seg fault in `ndarray_tensor_bridge` due to zero and large inputs in Tensorflow
TensorFlow is an open source platform for machine learning. If a numpy array is created with a shape such that one element is zero and the others sum to a large number, an error will be raised. We have patched the issue in GitHub commit 2b56169c16e375c521a3bc8ea658811cc0793784. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.

Github Repository NVD

Vulnerability Analysis

CVE-2022-41884 is exploitable with network access, requires user interaction and a small amount of user privileges. This vulnerability is consided to have a high level of attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2022-41884. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
HIGH
Privileges Required:
LOW
User Interaction:
REQUIRED
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
HIGH

Weakness Type

Always-Incorrect Control Flow Implementation

The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated. This weakness captures cases in which a particular code segment is always incorrect with respect to the algorithm that it is implementing. For example, if a C programmer intends to include multiple statements in a single block but does not include the enclosing braces (CWE-483), then the logic is always incorrect. This issue is in contrast to most weaknesses in which the code usually behaves correctly, except when it is externally manipulated in malicious ways.


Products Associated with CVE-2022-41884

Want to know whenever a new CVE is published for Google Tensorflow? stack.watch will email you.

 

Affected Versions

tensorflow:

Vulnerable Packages

The following package name and versions may be associated with CVE-2022-41884

Package Manager Vulnerable Package Versions Fixed In
pip tensorflow < 2.8.4 2.8.4
pip tensorflow >= 2.9.0, < 2.9.3 2.9.3
pip tensorflow >= 2.10.0, < 2.10.1 2.10.1
pip tensorflow-cpu < 2.8.4 2.8.4
pip tensorflow-gpu < 2.8.4 2.8.4
pip tensorflow-cpu >= 2.9.0, < 2.9.3 2.9.3
pip tensorflow-gpu >= 2.9.0, < 2.9.3 2.9.3
pip tensorflow-cpu >= 2.10.0, < 2.10.1 2.10.1
pip tensorflow-gpu >= 2.10.0, < 2.10.1 2.10.1

Exploit Probability

EPSS
0.17%
Percentile
38.23%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.