Browse / AI Framework and Platform Flaws / CVE-2022-35997
TensorFlow vulnerable to `CHECK` fail in `tf.sparse.cross`
- Class
- AI Framework and Platform Flaws (filed by a model that read the source)
- Technique
- Denial of service
- Affected
- tensorflow-cpu, tensorflow (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 0.5% chance of exploitation in 30 days
How it works, in short
A non-scalar separator passed to tf.sparse.cross triggers a failed internal CHECK, crashing the process with a single call. (Our summary, written by a model. The source text is below.)
Details
Impact
If tf.sparse.cross receives an input separator that is not a scalar, it gives a CHECK fail that can be used to trigger a denial of service attack.
import tensorflow as tf
tf.sparse.cross(inputs=[],name='a',separator=tf.constant(['a', 'b'],dtype=tf.string))
Patches
We have patched the issue in GitHub commit 83dcb4dbfa094e33db084e97c4d0531a559e0ebf.
The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Kang Hong Jin.
References
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-p7hr-f446-x6qf
- https://nvd.nist.gov/vuln/detail/CVE-2022-35997
- https://github.com/tensorflow/tensorflow/commit/83dcb4dbfa094e33db084e97c4d0531a559e0ebf
- https://github.com/tensorflow/tensorflow
- https://github.com/tensorflow/tensorflow/releases/tag/v2.10.0
Source: GitHub Advisory Database, used under CC BY 4.0.