CWE
20 475
Advisory Published
Updated

CVE-2022-29207: Undefined behavior when users supply invalid resource handles in TensorFlow

First published: Fri May 20 2022(Updated: )

TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, multiple TensorFlow operations misbehave in eager mode when the resource handle provided to them is invalid. In graph mode, it would have been impossible to perform these API calls, but migration to TF 2.x eager mode opened up this vulnerability. If the resource handle is empty, then a reference is bound to a null pointer inside TensorFlow codebase (various codepaths). This is undefined behavior. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
TensorFlow Keras<2.6.4
TensorFlow Keras>=2.7.0<2.7.2
TensorFlow Keras=2.7.0-rc0
TensorFlow Keras=2.7.0-rc1
TensorFlow Keras=2.8.0
TensorFlow Keras=2.8.0-rc0
TensorFlow Keras=2.8.0-rc1
TensorFlow Keras=2.9.0-rc0
TensorFlow Keras=2.9.0-rc1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2022-29207?

    CVE-2022-29207 is considered a medium severity vulnerability affecting TensorFlow operations due to improper handling of invalid resource handles.

  • How do I fix CVE-2022-29207?

    To fix CVE-2022-29207, upgrade to TensorFlow versions 2.6.4, 2.7.2, 2.8.1, or 2.9.0 or later.

  • Which versions of TensorFlow are affected by CVE-2022-29207?

    CVE-2022-29207 affects TensorFlow versions prior to 2.6.4, including versions 2.6.0 to 2.8.0.

  • What type of attacks can CVE-2022-29207 lead to?

    CVE-2022-29207 may lead to unexpected behavior or crashes in applications utilizing TensorFlow.

  • Is CVE-2022-29207 a critical vulnerability?

    No, CVE-2022-29207 is not classified as a critical vulnerability, but it still poses potential risks if left unaddressed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203