Skip to content
MediumVulnerability

CVE-2022-29210: TensorFlow TensorKey hash function memory access flaw

Identifier
CVE-2022-29210
Published
Record updated
View JSON
Affected
  • tensorflow >= 2.8.0, < 2.8.1
  • tensorflow-cpu >= 2.8.0, < 2.8.1
  • tensorflow-gpu >= 2.8.0, < 2.8.1
Fixed in
2.8.1
  • tensorflow 2.8.1 released May 16, 2022, 5 days before disclosure
  • tensorflow-cpu 2.8.1 released May 16, 2022, 5 days before disclosure
  • tensorflow-gpu 2.8.1 released May 16, 2022, 5 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

TensorFlow version 2.8.0 has a flaw in the `TensorKey` hash function. It hashes the total estimated `AllocatedBytes()` and reads tensor bytes through `tensor.data()`, which does not match the contiguous buffer, causing ASAN failures.

Mitigation

This issue is patched in Tensorflow versions 2.9.0 and 2.8.1.