CVE-2022-21729: Overflow and uncaught divide by zero in Tensorflow
(updated )
The implementation of UnravelIndex
is vulnerable to a division by zero caused by an integer overflow bug:
import tensorflow as tf
tf.raw_ops.UnravelIndex(indices=-0x100000,dims=[0x100000,0x100000])
References
- github.com/advisories/GHSA-34f9-hjfq-rr8j
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-53.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-108.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/unravel_index_op.cc
- github.com/tensorflow/tensorflow/commit/58b34c6c8250983948b5a781b426f6aa01fd47af
- github.com/tensorflow/tensorflow/security/advisories/GHSA-34f9-hjfq-rr8j
- nvd.nist.gov/vuln/detail/CVE-2022-21729
Detect and mitigate CVE-2022-21729 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 →