{"id":"CVE-2022-35966","published":"2022-09-16T20:35:15Z","modified":"2025-04-23T17:03:18Z","title":"Segfault in `QuantizedAvgPool` in TensorFlow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"TensorFlow is an open source platform for machine learning. If `QuantizedAvgPool` is given `min_input` or `max_input` tensors of a nonzero rank, it results in a segfault that can be used to trigger a denial of service attack. We have patched the issue in GitHub commit 7cdf9d4d2083b739ec81cfdace546b0c99f50622. 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 for 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.00503,"percentile":0.4397,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-4w68-4x85-mjj9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/7cdf9d4d2083b739ec81cfdace546b0c99f50622","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":8.79},{"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-23T13:59:40.722296Z","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.1"],"patched":["2.7.2","2.8.1","2.9.1"],"from":["GHSA-4w68-4x85-mjj9","PYSEC-2026-3103"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.1"],"patched":["2.7.2","2.8.1","2.9.1"],"from":["GHSA-4w68-4x85-mjj9","PYSEC-2026-3273"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.1"],"patched":["2.7.2","2.8.1","2.9.1"],"from":["GHSA-4w68-4x85-mjj9","PYSEC-2026-949"],"provenance":"source"}],"summary":{"text":"The QuantizedAvgPool operation in TensorFlow, a machine learning platform, contains an input validation flaw: it does not properly handle its min_input or max_input tensors when they have a nonzero rank. An attacker who can reach the affected TensorFlow process over the network, with no authentication needed, can send crafted input that triggers a segmentation fault and denial of service, though exploiting it reliably requires a high-complexity attack and no user interaction is needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:50Z"},"euvd":{"id":"EUVD-2022-6697","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2022-21739","parents":[{"from":"CVE-2022-21739","to":"CVE-2022-35966","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/kernels/quantized_pooling_ops.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/53b0dd6dc5957652f35964af16b892ec9af4a559","https://github.com/tensorflow/tensorflow/commit/7cdf9d4d2083b739ec81cfdace546b0c99f50622"],"basis":"shared function","functions":["QuantizedMaxPoolingOp"]}]}]}}