{"id":"CVE-2021-29525","published":"2021-05-14T19:12:43Z","modified":"2024-08-03T22:11:05Z","title":"Division by 0 in `Conv2DBackpropInput`","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a division by 0 in `tf.raw_ops.Conv2DBackpropInput`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/b40060c9f697b044e3107917c797ba052f4506ab/tensorflow/core/kernels/conv_grad_input_ops.h#L625-L655) does a division by a quantity that is controlled by the caller. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00201,"percentile":0.05697,"provenance":"source"},"cwes":[{"id":"CWE-369","name":"Divide By Zero"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-xm2v-8rrw-w9pm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/2be2cdf3a123e231b16f766aa0e27d56b4606535","tags":["x_refsource_MISC"]}],"priority":{"score":2.9,"factors":[{"name":"EPSS percentile","points":1.14},{"name":"CVSS severity","points":1.75}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 2.1.4",">= 2.2.0, < 2.2.3",">= 2.3.0, < 2.3.3",">= 2.4.0, < 2.4.2"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.1.4",">=2.2.0, <2.2.3",">=2.3.0, <2.3.3",">=2.4.0, <2.4.2"],"patched":["2.1.4","2.2.3","2.3.3","2.4.2"],"from":["GHSA-xm2v-8rrw-w9pm","PYSEC-2021-162"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.1.4",">=2.2.0, <2.2.3",">=2.3.0, <2.3.3",">=2.4.0, <2.4.2"],"patched":["2.1.4","2.2.3","2.3.3","2.4.2"],"from":["GHSA-xm2v-8rrw-w9pm","PYSEC-2021-453"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.1.4",">=2.2.0, <2.2.3",">=2.3.0, <2.3.3",">=2.4.0, <2.4.2"],"patched":["2.1.4","2.2.3","2.3.3","2.4.2"],"from":["GHSA-xm2v-8rrw-w9pm","PYSEC-2021-651"],"provenance":"source"}],"summary":{"text":"A division-by-zero flaw exists in the Conv2DBackpropInput operation of TensorFlow, specifically in its conv_grad_input_ops implementation, where a divisor is derived from a value the caller controls. An attacker with local access and low privileges can trigger it by invoking tf.raw_ops.Conv2DBackpropInput with crafted inputs, with high attack complexity and no user interaction required, leading to a crash (availability impact).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:49Z"},"euvd":{"id":"EUVD-2021-0266","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2021-29525","children":[{"from":"CVE-2021-29525","to":"CVE-2022-35969","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/conv_grad_input_ops.h"],"commits":["https://github.com/tensorflow/tensorflow/commit/2be2cdf3a123e231b16f766aa0e27d56b4606535","https://github.com/tensorflow/tensorflow/commit/50156d547b9a1da0144d7babe665cf690305b33c"],"basis":"shared function","functions":["Conv2DCustomBackpropInputOp"]}]},{"from":"CVE-2021-29525","to":"CVE-2022-35999","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/conv_grad_input_ops.h"],"commits":["https://github.com/tensorflow/tensorflow/commit/2be2cdf3a123e231b16f766aa0e27d56b4606535","https://github.com/tensorflow/tensorflow/commit/27a65a43cf763897fecfa5cdb5cc653fc5dd0346"],"basis":"shared function","functions":["Conv2DCustomBackpropInputOp"]}]}]}}