{"id":"CVE-2021-37666","published":"2021-08-12T21:40:16Z","modified":"2024-08-04T01:23:01Z","title":"Reference binding to nullptr in `RaggedTensorToVariant` in TensorFlow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can cause undefined behavior via binding a reference to null pointer in `tf.raw_ops.RaggedTensorToVariant`. The [implementation](https://github.com/tensorflow/tensorflow/blob/460e000de3a83278fb00b61a16d161b1964f15f4/tensorflow/core/kernels/ragged_tensor_to_variant_op.cc#L129) has an incomplete validation of the splits values, missing the case when the argument would be empty. We have patched the issue in GitHub commit be7a4de6adfbd303ce08be4332554dff70362612. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00173,"percentile":0.07001,"provenance":"source"},"cwes":[{"id":"CWE-824","name":"Access of Uninitialized Pointer"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-w4xf-2pqw-5mq7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/be7a4de6adfbd303ce08be4332554dff70362612","tags":["x_refsource_MISC"]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":1.4},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":[">= 2.5.0, < 2.5.1",">= 2.4.0, < 2.4.3","< 2.3.4"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.3.4",">=2.4.0, <2.4.3",">=2.5.0, <2.5.1",">=2.3.0, <2.3.4"],"patched":["2.3.4","2.4.3","2.5.1"],"from":["GHSA-w4xf-2pqw-5mq7","PYSEC-2021-288"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.3.4",">=2.4.0, <2.4.3",">=2.5.0, <2.5.1",">=2.3.0, <2.3.4"],"patched":["2.3.4","2.4.3","2.5.1"],"from":["GHSA-w4xf-2pqw-5mq7","PYSEC-2021-579"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.3.4",">=2.4.0, <2.4.3",">=2.5.0, <2.5.1",">=2.3.0, <2.3.4"],"patched":["2.3.4","2.4.3","2.5.1"],"from":["GHSA-w4xf-2pqw-5mq7","PYSEC-2021-777"],"provenance":"source"}],"summary":{"text":"The flaw is an incomplete validation of splits values in the RaggedTensorToVariant operation (tf.raw_ops.RaggedTensorToVariant) of TensorFlow, which can lead to a reference being bound to a null pointer when the argument is empty. An attacker who can supply input to this operation with locally accessible privileges and low complexity, requiring low-privilege authentication and no user interaction, can cause undefined behavior.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:02Z"},"euvd":{"id":"EUVD-2021-0392","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2021-29516","parents":[{"from":"CVE-2021-29516","to":"CVE-2021-37666","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/ragged_tensor_to_variant_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/b055b9c474cd376259dde8779908f9eeaf097d93","https://github.com/tensorflow/tensorflow/commit/be7a4de6adfbd303ce08be4332554dff70362612"],"basis":"shared function","functions":["RaggedTensorToVariantOp"]}]}],"children":[{"from":"CVE-2021-37666","to":"CVE-2022-36018","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/ragged_tensor_to_variant_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/be7a4de6adfbd303ce08be4332554dff70362612","https://github.com/tensorflow/tensorflow/commit/88f93dfe691563baa4ae1e80ccde2d5c7a143821"],"basis":"shared function","functions":["RaggedTensorToVariantOp"]}]}]}}