CVE-2022-29205
MEDIUM 5.5CVSS 3.1Segfault due to missing support for quantized types
TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, there is a potential for segfault / denial of service in TensorFlow by calling tf.compat.v1.* ops which don't yet have support for quantized types, which was added after migration to TensorFlow 2.x. In these scenarios, since the kernel is missing, a nullptr value is passed to ParseDimensionValue for the py_value argument. Then, this is dereferenced, resulting in segfault. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.
- Published
- 20 May 2022
- Last modified
- 13 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-476CWE-908
- Also known as
- BIT-tensorflow-2022-29205GHSA-54ch-gjq5-4976PYSEC-2026-3104PYSEC-2026-3274PYSEC-2026-950
- Sources
- NVDJSONOSV GHSA-54ch-gjq5-4976JSONOSV PYSEC-2026-3104JSONOSV PYSEC-2026-3274JSONOSV PYSEC-2026-950JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
< 2.6.4 | 2.6.4 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 2.7.0, < 2.7.2 | 2.7.2 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:* |
= 2.7.0 | ||
| NVD | tensorflowcpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:* |
= 2.7.0 | ||
| NVD | tensorflowcpe:2.3:a:google:tensorflow:2.8.0:-:*:*:*:*:*:* |
= 2.8.0 | ||
| NVD | tensorflowcpe:2.3:a:google:tensorflow:2.8.0:rc0:*:*:*:*:*:* |
= 2.8.0 | ||
| NVD | tensorflowcpe:2.3:a:google:tensorflow:2.8.0:rc1:*:*:*:*:*:* |
= 2.8.0 | ||
| NVD | tensorflowcpe:2.3:a:google:tensorflow:2.9.0:rc0:*:*:*:*:*:* |
= 2.9.0 | ||
| NVD | tensorflowcpe:2.3:a:google:tensorflow:2.9.0:rc1:*:*:*:*:*:* |
= 2.9.0 | ||
| OSV | PyPI | tensorflow | < 2.6.4 | 2.6.4 |
| OSV | PyPI | tensorflow | >= 2.7.0, < 2.7.2 | 2.7.2 |
| OSV | PyPI | tensorflow | >= 2.8.0, < 2.8.1 | 2.8.1 |
| OSV | PyPI | tensorflow-cpu | < 2.6.4 | 2.6.4 |
| OSV | PyPI | tensorflow-cpu | >= 2.7.0, < 2.7.2 | 2.7.2 |
| OSV | PyPI | tensorflow-cpu | >= 2.8.0, < 2.8.1 | 2.8.1 |
| OSV | PyPI | tensorflow-gpu | < 2.6.4 | 2.6.4 |
| OSV | PyPI | tensorflow-gpu | >= 2.7.0, < 2.7.2 | 2.7.2 |
| OSV | PyPI | tensorflow-gpu | >= 2.8.0, < 2.8.1 | 2.8.1 |
| OSV | PyPI | tensorflow | < 2.6.4; >= 2.7.0, < 2.7.2; >= 2.8.0, < 2.8.1 | 2.6.4, 2.7.2, 2.8.1 |
| OSV | PyPI | tensorflow-cpu | < 2.6.4; >= 2.7.0, < 2.7.2; >= 2.8.0, < 2.8.1 | 2.6.4, 2.7.2, 2.8.1 |
| OSV | PyPI | tensorflow-gpu | < 2.6.4; >= 2.7.0, < 2.7.2; >= 2.8.0, < 2.8.1 | 2.6.4, 2.7.2, 2.8.1 |
References
- https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/python/eager/pywrap_tfe_src.cc#L296-L320 · Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/python/eager/pywrap_tfe_src.cc#L480-L482 · Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/commit/237822b59fc504dda2c564787f5d3ad9c4aa62d9 · Patch, Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4 · Release Notes, Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2 · Release Notes, Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1 · Release Notes, Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0 · Release Notes, Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-54ch-gjq5-4976 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-29205 · ADVISORY
- https://github.com/tensorflow/tensorflow · PACKAGE
- https://pypi.org/project/tensorflow · PACKAGE
- https://github.com/advisories/GHSA-54ch-gjq5-4976 · ADVISORY
- https://pypi.org/project/tensorflow-cpu · PACKAGE
- https://pypi.org/project/tensorflow-gpu · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 20 May 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)