{"id":"CVE-2022-41890","summary":"`CHECK` fail in `BCast` overflow in Tensorflow","details":"TensorFlow is an open source platform for machine learning. If `BCast::ToShape` is given input larger than an `int32`, it will crash, despite being supposed to handle up to an `int64`. An example can be seen in `tf.experimental.numpy.outer` by passing in large input to the input `b`. We have patched the issue in GitHub commit 8310bf8dd188ff780e7fc53245058215a05bdbe5. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.","aliases":["BIT-tensorflow-2022-41890","GHSA-h246-cgh4-7475","PYSEC-2026-1001","PYSEC-2026-3194","PYSEC-2026-3333"],"modified":"2026-10-28T10:31:27.009165293Z","published":"2022-11-18T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41890.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-704"]},"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/util/bcast.h"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41890.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h246-cgh4-7475"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41890"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/8310bf8dd188ff780e7fc53245058215a05bdbe5"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"fixed":"1b8f5c396f0c016ebe81fe1af029e6f205c926a4"},{"introduced":"8a20d54a3c1bfa38c03ea99a2ad3c1b0a45dfa95"},{"fixed":"a5ed5f39b675a1c6f315e0caf3ad4b38478fa571"},{"introduced":"359c3cdfc5fabac82b3c70b3b6de2b0a8c16874f"},{"fixed":"fdfc646704c37bdf450525f6ced9d80df86e4993"},{"fixed":"8310bf8dd188ff780e7fc53245058215a05bdbe5"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"2.8.4"}]},{"range":[{"introduced":"2.9.0"},{"fixed":"2.9.3"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.10.0"},{"fixed":"2.10.1"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"8310bf8dd188ff780e7fc53245058215a05bdbe5"}]}]}}],"versions":["v2.8.3","v2.9.2","v2.10.0","v2.8.2","v2.9.1","v2.8.1","v2.9.0","v2.8.0","v2.8.0-rc1","v2.8.0-rc0","v1.12.1","v1.9.0-rc2","v1.6.0-rc1","v1.1.0-rc2","v1.1.0-rc1","0.6.0","0.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41890.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/8310bf8dd188ff780e7fc53245058215a05bdbe5","target":{"file":"tensorflow/core/util/bcast_test.cc"},"deprecated":false,"digest":{"line_hashes":["327087075182438875085019195274325107252","58386138813758630261372769564807815794","19668097151310674045453145142817045160","311573600766342741201012665712375974984"],"threshold":0.9},"id":"CVE-2022-41890-171c3011","signature_type":"Line"},{"id":"CVE-2022-41890-8e5daa33","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/8310bf8dd188ff780e7fc53245058215a05bdbe5","target":{"file":"tensorflow/core/util/bcast.h"},"deprecated":false,"digest":{"line_hashes":["103231541405872442699318155843836437399","143107332851684356341020665259747850352","75805856726964373578819986165866026082","135122641067535638252716468157208683224","216059485186961870027160374730533781749","277786675353042090626203082456914725308","35422592491058915612205537330927170447","233156514952530182066233814541200495141"],"threshold":0.9}},{"id":"CVE-2022-41890-a0df2011","signature_type":"Function","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/8310bf8dd188ff780e7fc53245058215a05bdbe5","target":{"function":"BCastList","file":"tensorflow/core/util/bcast.h"},"deprecated":false,"digest":{"function_hash":"319765282793207540326705030289951324416","length":3642}},{"target":{"file":"tensorflow/core/util/bcast_test.cc","function":"TEST"},"deprecated":false,"digest":{"function_hash":"150369344800093192976150055305300857287","length":738},"id":"CVE-2022-41890-eb5e4330","signature_type":"Function","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/8310bf8dd188ff780e7fc53245058215a05bdbe5"}],"vanir_signatures_modified":"2026-10-28T10:31:27Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H"}]}