CVE-2022-35941
`CHECK` failure in `AvgPoolOp` in Tensorflow
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.9
`CHECK` failure in `AvgPoolOp` in Tensorflow
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.
- Record
CVE-2022-35941- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-617
- Updated
- 2026-11-02
EUVDEUVD-2022-6876
5.9
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.
- Record
EUVD-2022-6876- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-mgmh-g2v6-mqw5
5.9
TensorFlow vulnerable to `CHECK` failure in `AvgPoolOp`
Impact
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.
import tensorflow as tf
import numpy as np
value = np.ones([1, 1, 1, 1])
ksize = [1, 1e20, 1, 1]
strides = [1, 1, 1, 1]
padding = 'SAME'
data_format = 'NHWC'
tf.raw_ops.AvgPool(value=value, ksize=ksize, strides=strides, padding=padding, data_format=data_format)
Patches
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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Jingyi Shi.
- Record
GHSA-mgmh-g2v6-mqw5- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-617
- Updated
- 2026-11-02
NVD
5.9
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.
- Record
CVE-2022-35941- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-617
- Updated
- 2026-11-02
OSV
5.9
`CHECK` failure in `AvgPoolOp` in Tensorflow
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.
- Record
CVE-2022-35941- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-617
- Updated
- 2026-11-02
OSVGHSA-mgmh-g2v6-mqw5
5.9
TensorFlow vulnerable to `CHECK` failure in `AvgPoolOp`
Impact
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.
import tensorflow as tf
import numpy as np
value = np.ones([1, 1, 1, 1])
ksize = [1, 1e20, 1, 1]
strides = [1, 1, 1, 1]
padding = 'SAME'
data_format = 'NHWC'
tf.raw_ops.AvgPool(value=value, ksize=ksize, strides=strides, padding=padding, data_format=data_format)
Patches
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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Jingyi Shi.
- Record
GHSA-mgmh-g2v6-mqw5- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-617
- Updated
- 2026-11-02
Show 5 moreShow less
OSVPYSEC-2026-1019
5.9
TensorFlow vulnerable to `CHECK` failure in `AvgPoolOp`
Impact
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.
import tensorflow as tf
import numpy as np
value = np.ones([1, 1, 1, 1])
ksize = [1, 1e20, 1, 1]
strides = [1, 1, 1, 1]
padding = 'SAME'
data_format = 'NHWC'
tf.raw_ops.AvgPool(value=value, ksize=ksize, strides=strides, padding=padding, data_format=data_format)
Patches
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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Jingyi Shi.
- Record
PYSEC-2026-1019- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVPYSEC-2026-3215
5.9
TensorFlow vulnerable to `CHECK` failure in `AvgPoolOp`
Impact
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.
import tensorflow as tf
import numpy as np
value = np.ones([1, 1, 1, 1])
ksize = [1, 1e20, 1, 1]
strides = [1, 1, 1, 1]
padding = 'SAME'
data_format = 'NHWC'
tf.raw_ops.AvgPool(value=value, ksize=ksize, strides=strides, padding=padding, data_format=data_format)
Patches
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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Jingyi Shi.
- Record
PYSEC-2026-3215- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVPYSEC-2026-3351
5.9
TensorFlow vulnerable to `CHECK` failure in `AvgPoolOp`
Impact
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.
import tensorflow as tf
import numpy as np
value = np.ones([1, 1, 1, 1])
ksize = [1, 1e20, 1, 1]
strides = [1, 1, 1, 1]
padding = 'SAME'
data_format = 'NHWC'
tf.raw_ops.AvgPool(value=value, ksize=ksize, strides=strides, padding=padding, data_format=data_format)
Patches
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.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Jingyi Shi.
- Record
PYSEC-2026-3351- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBIT-tensorflow-2022-35941 No score
`CHECK` failure in `AvgPoolOp` in Tensorflow
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.
- Record
BIT-tensorflow-2022-35941- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12355-1 No score
tensorflow-lite-2.10.0-1.1 on GA media
These are all security issues fixed in the tensorflow-lite-2.10.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12355-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
tensorflowPyPI |
before 2.7.2 | 2.7.2 |
tensorflowPyPI |
2.8.0 up to 2.8.1 | 2.8.1 |
tensorflowPyPI |
2.9.0 up to 2.9.1 | 2.9.1 |
tensorflow-cpuPyPI |
before 2.7.2 | 2.7.2 |
tensorflow-cpuPyPI |
2.8.0 up to 2.8.1 | 2.8.1 |
tensorflow-cpuPyPI |
2.9.0 up to 2.9.1 | 2.9.1 |
tensorflow-gpuPyPI |
before 2.7.2 | 2.7.2 |
tensorflow-gpuPyPI |
2.8.0 up to 2.8.1 | 2.8.1 |
tensorflow-gpuPyPI |
2.9.0 up to 2.9.1 | 2.9.1 |
tensorflowBitnami |
2.7.0 up to 2.7.2, 2.8.0 up to 2.8.1, 2.9.0 up to 2.9.1 | 2.7.22.8.12.9.1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tensorflowPyPI |
before 2.7.2, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 |
2.7.2 |
tensorflowPyPI |
2.9.0 up to 2.9.2, plus listed versions 2.9.1 |
2.9.2 |
tensorflow-cpuPyPI |
before 2.7.2, plus listed versions 1.15.02.1.02.1.12.1.22.1.3 Show 27 moreShow less2.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.42.4.02.4.12.4.22.4.32.4.42.5.02.5.12.5.22.5.32.6.02.6.12.6.22.6.32.6.42.6.52.7.02.7.1 |
2.7.2 |
tensorflow-cpuPyPI |
2.9.0 up to 2.9.2, plus listed versions 2.9.1 |
2.9.2 |
tensorflow-gpuPyPI |
before 2.7.2, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 |
2.7.2 |
tensorflow-gpuPyPI |
2.9.0 up to 2.9.2, plus listed versions 2.9.1 |
2.9.2 |
tensorflow-gpuPyPI |
before 2.7.2, 2.8.0 up to 2.8.1, 2.9.0 up to 2.9.2, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 |
2.7.22.8.12.9.2 |
tensorflowPyPI |
before 2.7.2, 2.8.0 up to 2.8.1, 2.9.0 up to 2.9.2, plus listed versions 0.12.00.12.11.0.01.0.11.1.0 Show 45 moreShow less1.10.01.10.11.11.01.12.01.12.21.12.31.13.11.13.21.14.01.15.01.15.21.15.31.15.41.15.51.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.7.01.7.11.8.01.9.02.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.1.32.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.4 |
2.7.22.8.12.9.2 |
tensorflow-cpuPyPI |
before 2.7.2, 2.8.0 up to 2.8.1, 2.9.0 up to 2.9.2, plus listed versions 1.15.02.1.02.1.12.1.22.1.3 Show 28 moreShow less2.1.42.2.02.2.12.2.22.2.32.3.02.3.12.3.22.3.32.3.42.4.02.4.12.4.22.4.32.4.42.5.02.5.12.5.22.5.32.6.02.6.12.6.22.6.32.6.42.6.52.7.02.7.12.9.1 |
2.7.22.8.12.9.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-35941 is a medium vulnerability (CVSS 5.9) in Google Tensorflow, published September 16, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.72%, the 54th percentile. Fixed in tensorflow 2.7.2.
References
github.com/tensorflow/tensorflow/security/advisories/GHSA-mgmh-g2v6-mqw5
github.com/tensorflow/tensorflow/commit/3a6ac52664c6c095aa2b114e742b0aa17fdce78f
github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/avgpooling_op.cc
github.com/tensorflow/tensorflow/releases/tag/v2.10.0
nvd.nist.gov/vuln/detail/CVE-2022-35941
github.com/advisories/GHSA-mgmh-g2v6-mqw5
Show 64 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35941.json
github.com/tensorflow/tensorflow
pypi.org/project/tensorflow-gpu
pypi.org/project/tensorflow
pypi.org/project/tensorflow-cpu
suse.com/security/cve/CVE-2022-35934
suse.com/security/cve/CVE-2022-35935
suse.com/security/cve/CVE-2022-35937
suse.com/security/cve/CVE-2022-35938
suse.com/security/cve/CVE-2022-35939
suse.com/security/cve/CVE-2022-35940
suse.com/security/cve/CVE-2022-35941
suse.com/security/cve/CVE-2022-35952
suse.com/security/cve/CVE-2022-35959
suse.com/security/cve/CVE-2022-35960
suse.com/security/cve/CVE-2022-35963
suse.com/security/cve/CVE-2022-35964
suse.com/security/cve/CVE-2022-35965
suse.com/security/cve/CVE-2022-35966
suse.com/security/cve/CVE-2022-35967
suse.com/security/cve/CVE-2022-35968
suse.com/security/cve/CVE-2022-35969
suse.com/security/cve/CVE-2022-35970
suse.com/security/cve/CVE-2022-35971
suse.com/security/cve/CVE-2022-35972
suse.com/security/cve/CVE-2022-35973
suse.com/security/cve/CVE-2022-35974
suse.com/security/cve/CVE-2022-35979
suse.com/security/cve/CVE-2022-35981
suse.com/security/cve/CVE-2022-35982
suse.com/security/cve/CVE-2022-35983
suse.com/security/cve/CVE-2022-35984
suse.com/security/cve/CVE-2022-35985
suse.com/security/cve/CVE-2022-35986
suse.com/security/cve/CVE-2022-35987
suse.com/security/cve/CVE-2022-35988
suse.com/security/cve/CVE-2022-35989
suse.com/security/cve/CVE-2022-35990
suse.com/security/cve/CVE-2022-35991
suse.com/security/cve/CVE-2022-35992
suse.com/security/cve/CVE-2022-35993
suse.com/security/cve/CVE-2022-35994
suse.com/security/cve/CVE-2022-35995
suse.com/security/cve/CVE-2022-35996
suse.com/security/cve/CVE-2022-35997
suse.com/security/cve/CVE-2022-35998
suse.com/security/cve/CVE-2022-35999
suse.com/security/cve/CVE-2022-36000
suse.com/security/cve/CVE-2022-36001
suse.com/security/cve/CVE-2022-36002
suse.com/security/cve/CVE-2022-36003
suse.com/security/cve/CVE-2022-36004
suse.com/security/cve/CVE-2022-36005
suse.com/security/cve/CVE-2022-36011
suse.com/security/cve/CVE-2022-36012
suse.com/security/cve/CVE-2022-36013
suse.com/security/cve/CVE-2022-36014
suse.com/security/cve/CVE-2022-36015
suse.com/security/cve/CVE-2022-36016
suse.com/security/cve/CVE-2022-36017
suse.com/security/cve/CVE-2022-36018
suse.com/security/cve/CVE-2022-36019
suse.com/security/cve/CVE-2022-36026
suse.com/security/cve/CVE-2022-36027
Left out here: 84 versions. The JSON record has them.