{"id":"CVE-2022-29205","summary":"Segfault due to missing support for quantized types in TensorFlow","details":"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.","aliases":["BIT-tensorflow-2022-29205","GHSA-54ch-gjq5-4976"],"modified":"2026-04-10T04:47:09.473523Z","published":"2022-05-20T22:25:14Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29205.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-476","CWE-908"]},"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/python/eager/pywrap_tfe_src.cc#L296-L320"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/python/eager/pywrap_tfe_src.cc#L480-L482"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29205.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-54ch-gjq5-4976"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29205"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/237822b59fc504dda2c564787f5d3ad9c4aa62d9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"fixed":"33ed2b11cb8e879d86c371700e6573db1814a69e"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.6.4"}]}},{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"ce35e5c3a8efdb8161c6a85c8fb9ffb5bbdc9ffd"},{"fixed":"dd7b8a3c1714d0052ce4b4a2fd8dcef927439a24"}],"database_specific":{"versions":[{"introduced":"2.7.0rc0"},{"fixed":"2.7.2"}]}},{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"804ef7223ef08fd14c274b4a4044cc4aeee68863"},{"fixed":"0516d4d8bced506cae97dc3cb45dbd2fe4311f26"}],"database_specific":{"versions":[{"introduced":"2.8.0rc0"},{"fixed":"2.8.1"}]}},{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"8727d035e7aa593720d16a5f57f70f3b5a93bd00"},{"fixed":"8a20d54a3c1bfa38c03ea99a2ad3c1b0a45dfa95"}],"database_specific":{"versions":[{"introduced":"2.9.0rc0"},{"fixed":"2.9.0"}]}}],"versions":["0.5.0","0.6.0","v1.1.0-rc1","v1.1.0-rc2","v1.12.1","v1.6.0-rc1","v1.9.0-rc2","v2.6.0","v2.6.0-rc0","v2.6.0-rc1","v2.6.0-rc2","v2.6.1","v2.6.2","v2.6.3","v2.7.0","v2.7.0-rc0","v2.7.0-rc1","v2.7.1","v2.8.0","v2.8.0-rc0","v2.8.0-rc1","v2.9.0-rc0","v2.9.0-rc1","v2.9.0-rc2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29205.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}