
Cloud Vulnerability DB
A community-led vulnerabilities database
In TensorFlow versions before 2.2.1 and 2.3.1, if a user passes an invalid argument to dlpack.to_dlpack, the expected validations will cause variables to bind to nullptr while setting a status variable to the error condition. This vulnerability was discovered in September 2020 and affects the DLPack format conversion functionality (TF Release, GitHub Advisory).
The vulnerability exists in the DLPack conversion code where the status argument is not properly checked after calling TFE_TensorHandleDevicePointer() and GetDlDataType(). This leads to code binding references to null pointers when processing shape and stride arrays. The issue manifests in tensorflow/c/eager/dlpack.cc where dlm_tensor->dl_tensor.shape and dlm_tensor->dl_tensor.strides are assigned values without proper null checks, resulting in undefined behavior that is detected when compiling with -fsanitize=null (GitHub Advisory).
The vulnerability can lead to undefined behavior and potential segmentation faults when invalid arguments are passed to the dlpack.to_dlpack function. This could potentially be exploited to cause application crashes or other undefined behavior in systems using the affected TensorFlow versions (TF Release).
The vulnerability requires passing invalid arguments to the dlpack.to_dlpack function. It was discovered during variant analysis of a related vulnerability, suggesting it may be exploitable under specific conditions (GitHub Advisory).
The issue has been patched in TensorFlow versions 2.2.1 and 2.3.1. Users are recommended to upgrade to these patched versions. The fix includes proper validation of status checks and handling of null pointers in the DLPack conversion code (TF Release, GitHub 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."