{"id":"CVE-2022-29203","summary":"Integer overflow in `SpaceToBatchND` in TensorFlow","details":"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.raw_ops.SpaceToBatchND` (in all backends such as XLA and handwritten kernels) is vulnerable to an integer overflow: The result of this integer overflow is used to allocate the output tensor, hence we get a denial of service via a `CHECK`-failure (assertion failure), as in TFSA-2021-198. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.","aliases":["BIT-tensorflow-2022-29203","GHSA-jjm6-4vf7-cjh4","PYSEC-2026-1012","PYSEC-2026-3207","PYSEC-2026-3344"],"modified":"2026-08-18T16:21:58.272708Z","published":"2022-05-20T22:50:11Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-190"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29203.json"},"references":[{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.6.4"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.7.2"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.8.1"},{"type":"WEB","url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29203.json"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-198.md"},{"type":"ADVISORY","url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-jjm6-4vf7-cjh4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29203"},{"type":"FIX","url":"https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tensorflow/tensorflow","events":[{"introduced":"0"},{"fixed":"33ed2b11cb8e879d86c371700e6573db1814a69e"},{"introduced":"c256c071bb26e1e13b4666d1b3e229e110bc914a"},{"fixed":"dd7b8a3c1714d0052ce4b4a2fd8dcef927439a24"},{"introduced":"ce35e5c3a8efdb8161c6a85c8fb9ffb5bbdc9ffd"},{"fixed":"acd56b8bcb72b163c834ae4f18469047b001fadf"},{"fixed":"0516d4d8bced506cae97dc3cb45dbd2fe4311f26"},{"fixed":"8a20d54a3c1bfa38c03ea99a2ad3c1b0a45dfa95"}],"database_specific":{"cpe":["cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*","cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:*","cpe:2.3:a:google:tensorflow:2.8.0:-:*:*:*:*:*:*","cpe:2.3:a:google:tensorflow:2.8.0:rc0:*:*:*:*:*:*","cpe:2.3:a:google:tensorflow:2.8.0:rc1:*:*:*:*:*:*","cpe:2.3:a:google:tensorflow:2.9.0:rc0:*:*:*:*:*:*","cpe:2.3:a:google:tensorflow:2.9.0:rc1:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"fixed":"2.6.4"},{"introduced":"2.7.0"},{"fixed":"2.7.2"},{"introduced":"2.7.0-rc0"},{"last_affected":"2.7.0-rc0"},{"introduced":"2.7.0-rc1"},{"last_affected":"2.7.0-rc1"},{"introduced":"2.8.0-NA"},{"last_affected":"2.8.0-NA"},{"introduced":"2.8.0-rc0"},{"last_affected":"2.8.0-rc0"},{"introduced":"2.8.0-rc1"},{"last_affected":"2.8.0-rc1"},{"introduced":"2.9.0-rc0"},{"last_affected":"2.9.0-rc0"},{"introduced":"2.9.0-rc1"},{"last_affected":"2.9.0-rc1"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"]}}],"versions":["2.7.0-rc0","2.7.0-rc1","2.8.0-NA","2.8.0-rc0","2.8.0-rc1","2.9.0-rc0","2.9.0-rc1","v2.9.0-rc2","v2.9.0-rc1","v2.6.3","v2.7.1","v2.9.0-rc0","v2.8.0","v2.8.0-rc1","v2.6.2","v2.8.0-rc0","v2.7.0","v2.6.1","v2.6.0","v2.6.0-rc2","v2.6.0-rc1","v2.6.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":{"vanir_signatures":[{"target":{"file":"tensorflow/core/kernels/spacetobatch_op.cc"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["17718085908520515107325851092809267098","100518190061585209743272272407313854375","219576023251389293359837702686207124426","84694306866138457362654534632095757784","51372332237449159011864489942835790588","274189993518247512168765481683543318053","195534684524187407523107047399496492982","112430630496530627995690967552695815665","33117649505453962199405658304646998908","106610045825724295510559805522878687420","125575692645271117381956794172362760799","273933688189289192062201521965133452768","150260384742925615266140781595949429103","284571824162753493148410510495409575183","331963711679278445960732951144560447117","218585203851727535600856806338065858775","150672828458825547610171688233933951646","118345193977764138620240676688526042316","80069495370107174864122275041983046009"]},"id":"CVE-2022-29203-22c2eb8b","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"},{"target":{"file":"tensorflow/core/framework/shape_inference.cc","function":"InferenceContext::Multiply"},"deprecated":false,"digest":{"function_hash":"244608232376349290355275370198825272882","length":673},"id":"CVE-2022-29203-4ccf78a3","signature_type":"Function","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"},{"digest":{"function_hash":"11519380059127676155829356355540856491","length":2946},"id":"CVE-2022-29203-72788656","signature_type":"Function","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf","target":{"file":"tensorflow/compiler/tf2xla/kernels/spacetobatch_op.cc","function":"SpaceToBatch"},"deprecated":false},{"source":"https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf","target":{"file":"tensorflow/core/kernels/spacetobatch_op.cc","function":"SpaceToBatchOpCompute"},"deprecated":false,"digest":{"function_hash":"311557338129562187630573912197409089867","length":3701},"id":"CVE-2022-29203-99d3fd22","signature_type":"Function","signature_version":"v1"},{"deprecated":false,"digest":{"line_hashes":["180931306337023767081292087613466298962","50742862269200454104534819673739982137","118517565880425433876754403540691906058","202062702390424477015856265284857277273","248716087921289306879161593799308882201","152995802069657011399118940642630662232","129470876752129267078572594184059292075","24886298497828954109026485075299783837","237955875609890945008376412736518577137","292531565003349466933507066103911653471","160786535535478670681132414188677668449","9082738128263018614241009073271097751","62347839365166248092989209599749666136","2745340606011281618657879117146825926","323480060254551625087190847870356846202","54912044755040583884144205162831626854","7138437991244903286287711919486798518","28583145229833160004125826387923437348","208521765559288840760924969878955473012","76263909524580169897990506459677848762","205344369897553234786474683217369267816","156397671296120044247697265854916406925","284076562308781589796780044997315142642"],"threshold":0.9},"id":"CVE-2022-29203-a82455f3","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf","target":{"file":"tensorflow/compiler/tf2xla/kernels/spacetobatch_op.cc"}},{"id":"CVE-2022-29203-aa10613e","signature_type":"Line","signature_version":"v1","source":"https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf","target":{"file":"tensorflow/core/framework/shape_inference.cc"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["163200288079871937361632418310663185541","133096278431153779393909512307039290929","319767082537894838227723998957548553946","139785361767140929825706846173804984323","300551714494120540444413724295513711717","158348036416159102080705256765102653211","326821126047948735940996775343904925400","19029843005429777095249604076239156568"]}}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-29203.json","vanir_signatures_modified":"2026-08-18T16:21:58Z"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}