Security mailing lists by PureSourceCode

CVE-2022-29211

MEDIUM 5.5CVSS 3.1

Segfault if `tf.histogram_fixed_width` is called with NaN values in TensorFlow

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, the implementation of tf.histogram_fixed_width is vulnerable to a crash when the values array contain Not a Number (NaN) elements. The implementation assumes that all floating point operations are defined and then converts a floating point result to an integer index. If values contains NaN then the result of the division is still NaN and the cast to int32 would result in a crash. This only occurs on the CPU implementation. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

Published
21 May 2022
Last modified
13 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-20
Also known as
BIT-tensorflow-2022-29211GHSA-xrp2-fhq4-4q3wPYSEC-2026-1048PYSEC-2026-3260PYSEC-2026-3382
Sources
NVDJSONOSV GHSA-xrp2-fhq4-4q3wJSONOSV PYSEC-2026-1048JSONOSV PYSEC-2026-3260JSONOSV PYSEC-2026-3382JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
OSV PyPA CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 2.1 AV:L/AC:L/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
< 2.6.4 2.6.4
NVD google tensorflow
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
>= 2.7.0, < 2.7.2 2.7.2
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*
= 2.7.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*
= 2.7.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.8.0:-:*:*:*:*:*:*
= 2.8.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.8.0:rc0:*:*:*:*:*:*
= 2.8.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.8.0:rc1:*:*:*:*:*:*
= 2.8.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.9.0:rc0:*:*:*:*:*:*
= 2.9.0
NVD google tensorflow
cpe:2.3:a:google:tensorflow:2.9.0:rc1:*:*:*:*:*:*
= 2.9.0
OSV PyPI tensorflow < 2.6.4 2.6.4
OSV PyPI tensorflow >= 2.7.0, < 2.7.2 2.7.2
OSV PyPI tensorflow >= 2.8.0, < 2.8.1 2.8.1
OSV PyPI tensorflow-cpu < 2.6.4 2.6.4
OSV PyPI tensorflow-cpu >= 2.7.0, < 2.7.2 2.7.2
OSV PyPI tensorflow-cpu >= 2.8.0, < 2.8.1 2.8.1
OSV PyPI tensorflow-gpu < 2.6.4 2.6.4
OSV PyPI tensorflow-gpu >= 2.7.0, < 2.7.2 2.7.2
OSV PyPI tensorflow-gpu >= 2.8.0, < 2.8.1 2.8.1
OSV PyPI tensorflow-gpu < 2.6.4; >= 2.7.0, < 2.7.2; >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1
OSV PyPI tensorflow < 2.6.4; >= 2.7.0, < 2.7.2; >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1
OSV PyPI tensorflow-cpu < 2.6.4; >= 2.7.0, < 2.7.2; >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 May 2022)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.