Skip to content
MediumVulnerability

CVE-2022-41887: TensorFlow crash from integer overflow in tf.keras.losses.poisson

Identifier
CVE-2022-41887
Published
Record updated
View JSON
Affected
  • tensorflow < 2.9.3, fixed in 2.9.3, released November 16, 2022, 3 days before disclosure
  • tensorflow >= 2.10.0, < 2.10.1, fixed in 2.10.1, released November 16, 2022, 3 days before disclosure
  • tensorflow-cpu < 2.9.3, fixed in 2.9.3, released November 16, 2022, 3 days before disclosure
  • and 3 more
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

CVE-2022-41887 affects TensorFlow's `tf.keras.losses.poisson`. When the `y_pred` and `y_true` inputs passed through `functor::mul` in `BinaryOp` produce dimensions that overflow an `int32`, TensorFlow crashes from a size mismatch during broadcast assignment.

Mitigation

Patched in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix ships in TensorFlow 2.11, and the commit will be cherry-picked to TensorFlow 2.10.1 and 2.9.3. It will not be cherry-picked to TensorFlow 2.8.x, because that line depends on Eigen behavior that changed between 2.8 and 2.9.