{"id":"CVE-2022-29203","published":"2022-05-20T22:50:11Z","modified":"2025-04-22T17:58:03Z","title":"Integer overflow in `SpaceToBatchND` in TensorFlow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"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, the implementation of `tf.raw_ops.SpaceToBatchND` (in all backends such as XLA and handwritten kernels) is vulnerable to an integer overflow: The result of this integer overflow is used to allocate the output tensor, hence we get a denial of service via a `CHECK`-failure (assertion failure), as in TFSA-2021-198. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00341,"percentile":0.28286,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-198.md","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-jjm6-4vf7-cjh4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf","tags":["x_refsource_MISC"]}],"priority":{"score":9.5,"factors":[{"name":"EPSS percentile","points":5.66},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 2.6.4",">= 2.7.0rc0, < 2.7.2",">= 2.8.0rc0, < 2.8.1",">= 2.9.0rc0, < 2.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:46:42.511586Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.6.4",">=2.7.0, <2.7.2",">=2.8.0, <2.8.1"],"patched":["2.6.4","2.7.2","2.8.1"],"from":["GHSA-jjm6-4vf7-cjh4","PYSEC-2026-3207"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.6.4",">=2.7.0, <2.7.2",">=2.8.0, <2.8.1"],"patched":["2.6.4","2.7.2","2.8.1"],"from":["GHSA-jjm6-4vf7-cjh4","PYSEC-2026-3344"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.6.4",">=2.7.0, <2.7.2",">=2.8.0, <2.8.1"],"patched":["2.6.4","2.7.2","2.8.1"],"from":["GHSA-jjm6-4vf7-cjh4","PYSEC-2026-1012"],"provenance":"source"}],"summary":{"text":"An integer overflow in the SpaceToBatchND operation of TensorFlow, present in all of its backends (including XLA and handwritten kernels), causes the output tensor size to be computed incorrectly. An attacker with local access and low privileges can trigger a denial of service through a CHECK failure (assertion failure) by invoking tf.raw_ops.SpaceToBatchND with crafted inputs, and no user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:26Z"},"euvd":{"id":"EUVD-2022-4388","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2020-15203","parents":[{"from":"CVE-2020-15203","to":"CVE-2022-29203","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/BUILD"],"commits":["https://github.com/tensorflow/tensorflow/commit/33be22c65d86256e6826666662e40dbdfe70ee83","https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"],"basis":"shared function","functions":["tf_kernel_library"]}]},{"from":"CVE-2021-41203","to":"CVE-2022-29203","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/framework/BUILD"],"commits":["https://github.com/tensorflow/tensorflow/commit/368af875869a204b4ac552b9ddda59f6a46a56ec","https://github.com/tensorflow/tensorflow/commit/abcced051cb1bd8fb05046ac3b6023a7ebcc4578","https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"],"basis":"rarely changed file"}]},{"from":"CVE-2022-23564","to":"CVE-2022-29203","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/framework/BUILD"],"commits":["https://github.com/tensorflow/tensorflow/commit/14fea662350e7c26eb5fe1be2ac31704e5682ee6","https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"],"basis":"shared function","functions":["cc_library"]}]},{"from":"CVE-2022-23572","to":"CVE-2022-29203","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/framework/shape_inference.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/cb164786dc891ea11d3a900e90367c339305dc7b","https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"],"basis":"rarely changed file"}]},{"from":"CVE-2022-23580","to":"CVE-2022-29203","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/framework/shape_inference.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/1361fb7e29449629e1df94d44e0427ebec8c83c7","https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2022-29203","to":"CVE-2022-35982","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/BUILD"],"commits":["https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf","https://github.com/tensorflow/tensorflow/commit/40adbe4dd15b582b0210dfbf40c243a62f5119fa"],"basis":"shared function","functions":["tf_kernel_library"]}]}]}}