PyPI: tensorflow-rocm

CVE-2022-41887

Safety vulnerability ID: SFTY-20221118-81880

Safety legacy ID: pyup.io-57566

Tensorflow-rocm 2.9.3 and 2.10.1 include a fix for CVE-2022-41887: 'tf.keras.losses.poisson' receives a 'y_pred' and 'y_true' that are passed through 'functor::mul' in 'BinaryOp'. If the resulting dimensions overflow an 'int32', TensorFlow will crash due to a size mismatch during broadcast assignment. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Overflow in `tf.keras.losses.poisson`

Advisory

Tensorflow-rocm 2.9.3 and 2.10.1 include a fix for CVE-2022-41887: 'tf.keras.losses.poisson' receives a 'y_pred' and 'y_true' that are passed through 'functor::mul' in 'BinaryOp'. If the resulting dimensions overflow an 'int32', TensorFlow will crash due to a size mismatch during broadcast assignment. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3

Affected Package

Affecting tensorflow-rocm package, versions<2.9.3>=2.10.0rc0,<2.10.1

Also affects

---

How to Fix

Upgradetensorflow-rocmto2.9.32.10.1.540or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more