{"id":"CVE-2022-21735","summary":"Division by zero in Tensorflow","details":"Tensorflow is an Open Source Machine Learning Framework. The implementation of `FractionalMaxPool` can be made to crash a TensorFlow process via a division by 0. 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.","aliases":["BIT-tensorflow-2022-21735","GHSA-87v6-crgm-2gfj","PYSEC-2022-114","PYSEC-2022-59","PYSEC-2026-3134"],"modified":"2026-10-28T10:25:09.611715611Z","published":"2022-02-03T12:53:48Z","related":["openSUSE-SU-2024:12116-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21735.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/fractional_max_pool_op.cc#L36-L192"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21735.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-87v6-crgm-2gfj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21735"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/ba4e8ac4dc2991e350d5cc407f8598c8d4ee70fb"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"last_affected":"957590ea15cc03ee2e00fc61934647d54836676f"},{"introduced":"919f693420e35d00c8d0a42100837ae3718f7927"},{"last_affected":"c2363d6d025981c661f8cbecf4c73ca7fbf38caf"},{"introduced":"c256c071bb26e1e13b4666d1b3e229e110bc914a"},{"fixed":"ba4e8ac4dc2991e350d5cc407f8598c8d4ee70fb"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"last_affected":"2.5.2"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.6.0"},{"last_affected":"2.6.2"}]},{"cpe":"cpe:2.3:a:google:tensorflow:2.7.0:*:*:*:*:*:*:*","range":[{"introduced":"2.7.0"},{"last_affected":"2.7.0"}],"source":"CPE_STRING"},{"range":[{"fixed":"ba4e8ac4dc2991e350d5cc407f8598c8d4ee70fb"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["2.7.0","v2.5.2","v2.6.2","v2.6.1","v2.6.0","v2.5.1","v2.5.0","v2.5.0-rc3","v2.5.0-rc2","v2.5.0-rc1","v2.5.0-rc0","v1.12.1","v1.9.0-rc2","v1.6.0-rc1","v1.1.0-rc2","v1.1.0-rc1","0.6.0","0.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21735.json","vanir_signatures":[{"id":"CVE-2022-21735-bb19a229","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/ba4e8ac4dc2991e350d5cc407f8598c8d4ee70fb","target":{"file":"tensorflow/core/kernels/fractional_max_pool_op.cc"},"deprecated":false,"digest":{"line_hashes":["30258575323381258973554969203419717594","224989720836097103210602957432137464041","95700369928321232904301882265064987986","326914006267577133644273017424435833843"],"threshold":0.9}}],"vanir_signatures_modified":"2026-10-28T10:25:09Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}