{"id":"CVE-2022-29204","published":"2022-05-20T22:40:13Z","modified":"2025-04-22T17:58:11Z","title":"Missing validation causes denial of service in TensorFlow via `Conv3DBackpropFilterV2`","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.UnsortedSegmentJoin` does not fully validate the input arguments. This results in a `CHECK`-failure which can be used to trigger a denial of service attack. The code assumes `num_segments` is a positive scalar but there is no validation. Since this value is used to allocate the output tensor, a negative value would result in a `CHECK`-failure (assertion failure), as per 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.00354,"percentile":0.29916,"provenance":"source"},"cwes":[{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"},{"id":"CWE-20","name":"Improper Input Validation"}],"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-hx9q-2mx4-m4pg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/20cb18724b0bf6c09071a3f53434c4eec53cc147","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/commit/84563f265f28b3c36a15335c8b005d405260e943","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/kernels/unsorted_segment_join_op.cc#L83-L14","tags":["x_refsource_MISC"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":5.98},{"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:46.088493Z","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-hx9q-2mx4-m4pg","PYSEC-2026-3203"],"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-hx9q-2mx4-m4pg","PYSEC-2026-3342"],"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-hx9q-2mx4-m4pg","PYSEC-2026-1010"],"provenance":"source"}],"summary":{"text":"The flaw is missing input validation in TensorFlow's tf.raw_ops.UnsortedSegmentJoin implementation, where a negative num_segments value is used to allocate the output tensor and triggers a CHECK-failure. An attacker with local access and low privileges, and no user interaction, can trigger this crash by supplying a negative num_segments value, causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:11Z"},"euvd":{"id":"EUVD-2022-4238","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2021-29552","parents":[{"from":"CVE-2021-29552","to":"CVE-2022-29204","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/unsorted_segment_join_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/704866eabe03a9aeda044ec91a8d0c83fc1ebdbe","https://github.com/tensorflow/tensorflow/commit/20cb18724b0bf6c09071a3f53434c4eec53cc147","https://github.com/tensorflow/tensorflow/commit/84563f265f28b3c36a15335c8b005d405260e943"],"basis":"shared function","functions":["UnsortedSegmentJoinOp"]}]},{"from":"CVE-2022-29197","to":"CVE-2022-29204","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/unsorted_segment_join_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/13d38a07ce9143e044aa737cfd7bb759d0e9b400","https://github.com/tensorflow/tensorflow/commit/20cb18724b0bf6c09071a3f53434c4eec53cc147","https://github.com/tensorflow/tensorflow/commit/84563f265f28b3c36a15335c8b005d405260e943"],"basis":"shared function","functions":["UnsortedSegmentJoinOp"]},{"kind":"similar","provenance":"machine","score":0.77,"basis":"same product + CWE + description similarity"}]}]}}