{"id":"CVE-2022-23568","summary":"Integer overflows in Tensorflow","details":"Tensorflow is an Open Source Machine Learning Framework. The implementation of `AddManySparseToTensorsMap` is vulnerable to an integer overflow which results in a `CHECK`-fail when building new `TensorShape` objects (so, an assert failure based denial of service). We are missing some validation on the shapes of the input tensors as well as directly constructing a large `TensorShape` with user-provided dimensions. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.","aliases":["BIT-tensorflow-2022-23568","GHSA-6445-fm66-fvq2","PYSEC-2022-132","PYSEC-2022-77","PYSEC-2026-3114"],"modified":"2026-11-11T13:23:32.165275150Z","published":"2022-02-03T11:42:54Z","related":["openSUSE-SU-2024:12116-1"],"database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23568.json"},"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/blob/5100e359aef5c8021f2e71c7b986420b85ce7b3d/tensorflow/core/kernels/sparse_tensors_map_ops.cc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23568.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-6445-fm66-fvq2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23568"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/a68f68061e263a88321c104a6c911fe5598050a8"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/b51b82fe65ebace4475e3c54eb089c18a4403f1c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"last_affected":"957590ea15cc03ee2e00fc61934647d54836676f"},{"introduced":"919f693420e35d00c8d0a42100837ae3718f7927"},{"last_affected":"c2363d6d025981c661f8cbecf4c73ca7fbf38caf"},{"introduced":"c256c071bb26e1e13b4666d1b3e229e110bc914a"},{"fixed":"a68f68061e263a88321c104a6c911fe5598050a8"},{"fixed":"b51b82fe65ebace4475e3c54eb089c18a4403f1c"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"last_affected":"2.5.2"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","range":[{"introduced":"2.6.0"},{"last_affected":"2.6.2"}]},{"cpe":"cpe:2.3:a:google:tensorflow:2.7.0:*:*:*:*:*:*:*","range":[{"introduced":"2.7.0"},{"last_affected":"2.7.0"}],"source":"CPE_STRING"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"a68f68061e263a88321c104a6c911fe5598050a8"}]},{"range":[{"fixed":"b51b82fe65ebace4475e3c54eb089c18a4403f1c"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["2.7.0","v2.5.2","v2.6.2","v2.6.1","v2.6.0","v2.5.1","v2.5.0","v2.5.0-rc3","v2.5.0-rc2","v2.5.0-rc1","v2.5.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-23568.json","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["1916320298243102584025024750263374024","35449852513721191541938736872749883083","94704653744799295778282228916853195599","90782869577920000729386962271308614960","159660448577675185634506232296022634059","271678515998113461572926982213879518609","153507673257187833278881022132977775755","335304293759646856619188097775852772768","172711881097256903987086810631727071930","1057365754443510397089463995009005669","6121657541216024196430016317489639300","261107628249824969052188937521599789018","90174896525408352503070475947196279530","284801088653653921412481821550561918431","155930848257103541429553865838578542528","255660574535846796483485139733376239632","130658294137913467246403788664631168512"],"threshold":0.9},"id":"CVE-2022-23568-3df331c1","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/a68f68061e263a88321c104a6c911fe5598050a8","target":{"file":"tensorflow/core/kernels/sparse_tensors_map_ops.cc"}},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/b51b82fe65ebace4475e3c54eb089c18a4403f1c","target":{"file":"tensorflow/core/kernels/sparse_tensors_map_ops.cc"},"deprecated":false,"digest":{"line_hashes":["265644563810654423997952110115735446917","199092258899759427011834934590088043439","273799204618203839016962192202507516810","274240550417606452018995826851780201888","286553552431803406318413469602760611860","70794811992705679125895950538381993042","26032853408865728688644943636618945869","224567319889835106294581392797616880853","246774452280801819238276889499155033134","30973783299040098915459306942772596767","164969300218441939239658719226234989905"],"threshold":0.9},"id":"CVE-2022-23568-99dda9b1"}],"vanir_signatures_modified":"2026-11-11T13:23:32Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}