{"id":"CVE-2022-35941","published":"2022-09-16T19:45:14Z","modified":"2025-04-23T17:04:10Z","title":"`CHECK` failure in `AvgPoolOp` in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"TensorFlow is an open source platform for machine learning. The `AvgPoolOp` function takes an argument `ksize` that must be positive but is not checked. A negative `ksize` can trigger a `CHECK` failure and crash the program. We have patched the issue in GitHub commit 3a6ac52664c6c095aa2b114e742b0aa17fdce78f. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds to this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00737,"percentile":0.55403,"provenance":"source"},"cwes":[{"id":"CWE-617","name":"Reachable Assertion"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-mgmh-g2v6-mqw5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/3a6ac52664c6c095aa2b114e742b0aa17fdce78f","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/avgpooling_op.cc#L56-L98","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":11.08},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 2.7.2",">= 2.8.0, < 2.8.1",">= 2.9.0, < 2.9.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:00:06.734992Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.2"],"patched":["2.7.2","2.8.1","2.9.2"],"from":["GHSA-mgmh-g2v6-mqw5","PYSEC-2026-3215"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.2"],"patched":["2.7.2","2.8.1","2.9.2"],"from":["GHSA-mgmh-g2v6-mqw5","PYSEC-2026-3351"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.2"],"patched":["2.7.2","2.8.1","2.9.2"],"from":["GHSA-mgmh-g2v6-mqw5","PYSEC-2026-1019"],"provenance":"source"}],"summary":{"text":"The TensorFlow platform's AvgPoolOp function fails to validate that its ksize argument is positive, so a negative value triggers a CHECK failure in the component. An attacker able to reach the affected TensorFlow code over a network, without authentication or user interaction and under default configuration, can send a negative ksize and crash the program, causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:53Z"},"euvd":{"id":"EUVD-2022-6876","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2022-35941","children":[{"from":"CVE-2022-35941","to":"CVE-2023-25664","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/avgpooling_op.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/3a6ac52664c6c095aa2b114e742b0aa17fdce78f","https://github.com/tensorflow/tensorflow/commit/ddaac2bdd099bec5d7923dea45276a7558217e5b"],"basis":"shared function","functions":["AvgPoolingGradOp"]}]}]}}