
Cloud Vulnerability DB
A community-led vulnerabilities database
TensorFlow, an end-to-end open source platform for machine learning, was found to contain a vulnerability (CVE-2021-29530) that allows an attacker to trigger a null pointer dereference by providing an invalid permutation to tf.raw_ops.SparseMatrixSparseCholesky. The vulnerability was discovered on May 14, 2021, affecting TensorFlow versions prior to 2.5.0 (TF Advisory, NVD).
The vulnerability stems from improper validation of input arguments in the implementation. The issue occurs because the ValidateInputs function uses the OP_REQUIRES macro, which only exits the current function when validation fails. Since OP_REQUIRES is a macro that expands to a return statement, calling it in a helper function only ends the helper function's execution earlier, but the kernel continues execution, making all expected validations ineffective (TF Commit). The CVSS v3.1 base score for this vulnerability is 7.8 HIGH (NVD).
When exploited, this vulnerability can lead to a null pointer dereference, potentially causing a denial of service condition in applications using the affected TensorFlow versions. The vulnerability affects the machine learning operations specifically when using the SparseMatrixSparseCholesky operation (TF Advisory).
The vulnerability can be triggered by providing an invalid permutation to tf.raw_ops.SparseMatrixSparseCholesky. A proof-of-concept exploit has been documented that demonstrates how an attacker can trigger the null pointer dereference using specific input parameters (TF Advisory).
The vulnerability has been patched in TensorFlow 2.5.0. The fix has also been backported to TensorFlow versions 2.4.2, 2.3.3, 2.2.3, and 2.1.4. Users are advised to upgrade to these patched versions. The fix involves modifying the validation process to either explicitly check context->status() or convert ValidateInputs to return a Status (TF Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."