Vulnerability Details : CVE-2022-35938
TensorFlow is an open source platform for machine learning. The `GatherNd` function takes arguments that determine the sizes of inputs and outputs. If the inputs given are greater than or equal to the sizes of the outputs, an out-of-bounds memory read or a crash is triggered. This issue has been patched in GitHub commit 4142e47e9e31db481781b955ed3ff807a781b494. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.
Products affected by CVE-2022-35938
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.10:rc1:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.10:rc2:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.10:rc3:*:*:*:*:*:*
- cpe:2.3:a:google:tensorflow:2.10:rc0:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-35938
0.14%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 49 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-35938
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.1
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
3.9
|
5.2
|
NIST | |
7.0
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H |
2.2
|
4.7
|
GitHub, Inc. |
CWE ids for CVE-2022-35938
-
The product reads data past the end, or before the beginning, of the intended buffer.Assigned by: security-advisories@github.com (Primary)
References for CVE-2022-35938
-
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-3m3g-pf5v-5hpj
OOB read in `Gather_nd` op in TF Lite Micro · Advisory · tensorflow/tensorflow · GitHubPatch;Third Party Advisory
-
https://github.com/tensorflow/tflite-micro/commit/4142e47e9e31db481781b955ed3ff807a781b494
GatherNd verifies that an index is valid before reading. (#1286) · tensorflow/tflite-micro@4142e47 · GitHubPatch;Third Party Advisory
-
https://github.com/tensorflow/tflite-micro/blob/1bc98621180a350eb4e8d3318ea8e228c7559b37/tensorflow/lite/micro/kernels/gather_nd.cc#L143-L154
tflite-micro/gather_nd.cc at 1bc98621180a350eb4e8d3318ea8e228c7559b37 · tensorflow/tflite-micro · GitHubThird Party Advisory
Jump to