Vulnerability Description
TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a heap buffer overflow in Eigen implementation of `tf.raw_ops.BandedTriangularSolve`. The implementation(https://github.com/tensorflow/tensorflow/blob/eccb7ec454e6617738554a255d77f08e60ee0808/tensorflow/core/kernels/linalg/banded_triangular_solve_op.cc#L269-L278) calls `ValidateInputTensors` for input validation but fails to validate that the two tensors are not empty. Furthermore, since `OP_REQUIRES` macro only stops execution of current function after setting `ctx->status()` to a non-OK value, callers of helper functions that use `OP_REQUIRES` must check value of `ctx->status()` before continuing. This doesn't happen in this op's implementation(https://github.com/tensorflow/tensorflow/blob/eccb7ec454e6617738554a255d77f08e60ee0808/tensorflow/core/kernels/linalg/banded_triangular_solve_op.cc#L219), hence the validation that is present is also not effective. 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.
CVSS Score
LOW
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Tensorflow | < 2.1.4 |
Related Weaknesses (CWE)
References
- https://github.com/tensorflow/tensorflow/commit/0ab290774f91a23bebe30a358fde4e53PatchThird Party Advisory
- https://github.com/tensorflow/tensorflow/commit/ba6822bd7b7324ba201a28b2f278c29aPatchThird Party Advisory
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-2xgj-xhgf-ggjvExploitPatchThird Party Advisory
- https://github.com/tensorflow/tensorflow/commit/0ab290774f91a23bebe30a358fde4e53PatchThird Party Advisory
- https://github.com/tensorflow/tensorflow/commit/ba6822bd7b7324ba201a28b2f278c29aPatchThird Party Advisory
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-2xgj-xhgf-ggjvExploitPatchThird Party Advisory
FAQ
What is CVE-2021-29612?
CVE-2021-29612 is a vulnerability with a CVSS score of 3.6 (LOW). TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a heap buffer overflow in Eigen implementation of `tf.raw_ops.BandedTriangularSolve`. The implementation(...
How severe is CVE-2021-29612?
CVE-2021-29612 has been rated LOW with a CVSS base score of 3.6/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-29612?
Check the references section above for vendor advisories and patch information. Affected products include: Google Tensorflow.