Home » Database

AVID-2026-R1138

Description

Overflow in tf.keras.losses.poisson in Tensorflow (CVE-2022-41887)

Details

TensorFlow is an open source platform for machine learning. 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. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9.

Reason for inclusion in AVID: CVE-2022-41887 describes an overflow in TensorFlow’s tf.keras.losses.poisson that can crash the system due to an int32 size overflow during broadcasting. This is a software vulnerability affecting a core AI/ML framework (TensorFlow) used to build/train/deploy AI systems. It resides in a dependency/framework component of AI software stacks, i.e., a software supply-chain issue for general-purpose AI systems. The description provides evidence of the vulnerability, affected versions, and a patch, satisfying criteria for a security/safety vulnerability with sufficient evidence.

References

Affected or Relevant Artifacts

  • Developer: tensorflow
  • Deployer: tensorflow
  • Artifact Details:
TypeName
Systemtensorflow

Impact

AVID Taxonomy Categorization

  • Risk domains: Security
  • SEP subcategories: S0100: Software Vulnerability
  • Lifecycle stages: L06: Deployment

CVSS

Version3.1
Vector StringCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H
Base Score4.8
Base Severity🟠 Medium
Attack VectorNETWORK
Attack Complexity🔴 High
Privileges Required🟢 Low
User InteractionREQUIRED
ScopeUNCHANGED
Confidentiality ImpactNONE
Integrity ImpactNONE
Availability Impact🔴 High

CWE

IDDescription
CWE-131CWE-131: Incorrect Calculation of Buffer Size

Other information

  • Report Type: Advisory
  • Credits:
  • Date Reported: 2022-11-18
  • Version: 0.3.3
  • AVID Entry