{"id":"CVE-2021-29548","details":"TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a runtime division by zero error and denial of service in `tf.raw_ops.QuantizedBatchNormWithGlobalNormalization`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/55a97caa9e99c7f37a0bbbeb414dc55553d3ae7f/tensorflow/core/kernels/quantized_batch_norm_op.cc) does not validate all constraints specified in the op's contract(https://www.tensorflow.org/api_docs/python/tf/raw_ops/QuantizedBatchNormWithGlobalNormalization). 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.","aliases":["BIT-tensorflow-2021-29548","GHSA-p45v-v4pw-77jr","PYSEC-2021-185","PYSEC-2021-476","PYSEC-2021-674"],"modified":"2026-10-20T14:10:46.406673294Z","published":"2021-05-14T20:15:12.807Z","database_specific":{},"references":[{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-p45v-v4pw-77jr"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"fixed":"0931ea3d985bb9c8fdd054a5e29c4129623c849b"},{"introduced":"2b96f3662bd776e277f86997659e61046b56c315"},{"fixed":"cfe0c80169ae984bcdc99ff6de7444164aaa8e07"},{"introduced":"b36436b087bd8e8701ef51718179037cccdfc26e"},{"fixed":"3929ffacfbef7c431e8397920d040aaf47acff19"},{"introduced":"582c8d236cb079023657287c318ff26adb239002"},{"fixed":"1923123d32ea41d92b70a27a3f6ecf0763b56f6c"},{"fixed":"d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.1.4"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.2.0"},{"fixed":"2.2.3"}],"source":"CPE_RANGE"},{"range":[{"introduced":"2.3.0"},{"fixed":"2.3.3"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.4.0"},{"fixed":"2.4.2"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b"}]}]}}],"versions":["v2.1.3","v2.2.2","v2.3.2","v2.4.1","v2.1.2","v2.2.1","v2.4.0","v2.3.1","v2.2.0","v2.1.1","v2.3.0","v2.1.0","v2.1.0-rc0","v2.1.0-rc2","v2.1.0-rc1","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-2021-29548.json","vanir_signatures":[{"target":{"file":"tensorflow/core/kernels/quantized_batch_norm_op.cc"},"deprecated":false,"digest":{"line_hashes":["176618047136456417880005532924269322386","297047972375586089626536842260205915101","86200857832530856272713735861939086941","128459269962812644813524439573502370374","234004257098849043291372428099319489604","241579587392670441474268375065918101774","161063756124405785828275356797381227591","37244088738306890189939361308459926176","316467082556001404614516698981229802163","135937994080295905309159847098386748770","167120151489323212762499174682729280990","219490438250623205816948631995075558366","242888050880428708846886754973363308772","72111755195317785167421845503711011011","131068498761825027470444422476444652228","185457261491039634984875476907287325232","238957868349673335557020188134440930668","227576154549641252975969184476197098428","181823546976821326746531119399087937682","77817855725171497703242639549410228571","121111861639199729372945519955015565610"],"threshold":0.9},"id":"CVE-2021-29548-9d06ae6e","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/d6ed5bcfe1dcab9e85a4d39931bd18d99018e75b"}],"vanir_signatures_modified":"2026-10-20T14:10:46Z"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}