CVE-2022-21725
Division by zero in Tensorflow
Overview
Description
Tensorflow is an Open Source Machine Learning Framework. The estimator for the cost of some convolution operations can be made to execute a division by 0. The function fails to check that the stride argument is strictly positive. Hence, the fix is to add a check for the stride argument to ensure it is valid. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-369
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | tensorflow | <2.5.3>=2.6.0, <2.6.3>=2.7.0, <2.7.1 | 2.5.32.6.32.7.1 |
| PyPI | tensorflow | <2.5.3>=2.6.0, <2.6.3>=2.7.0, <2.7.1 | 2.5.32.6.32.7.1 |
| PyPI | tensorflow-cpu | <2.5.3>=2.6.0, <2.6.3>=2.7.0, <2.7.1 | 2.5.32.6.32.7.1 |
| PyPI | tensorflow-gpu | <2.5.3>=2.6.0, <2.6.3>=2.7.0, <2.7.1 | 2.5.32.6.32.7.1 |
Open a package to see all its vulnerabilities.
Operating systems · 1 fix
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | tensorflow-lite +1 | 2.9.1-1.1 | openSUSE-SU-2024:12116-1 |
References
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-49.yaml
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-104.yaml
- github.com https://github.com/tensorflow/tensorflow
- github.com https://github.com/tensorflow/tensorflow/blob/ffa202a17ab7a4a10182b746d230ea66f021fe16/tensorflow/core/grappler/costs/op_level_cost_estimator.cc#L189-L198
- github.com https://github.com/tensorflow/tensorflow/commit/3218043d6d3a019756607643cf65574fbfef5d7a
- github.com https://github.com/tensorflow/tensorflow/security/advisories/GHSA-v3f7-j968-4h5f
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-21725
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.