Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2022-35940— Int overflow in `RaggedRangeOp` in Tensoflow

Quick assessment

Affected
tensorflow tensorflow
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Google TensorFlow是美国谷歌(Google)公司的一套用于机器学习的端到端开源平台。 Google TensorFlow 存在输入验证错误漏洞,该漏洞源于 RaggedRangOp 函数的 limits 参数如果是一个非常大的浮点数,则可能会发生溢出。这会触发 InvalidArgument ,但也会引发导致程序结束的中止信号。该漏洞将在 2.10.0 版本, 2.9.1 版本, 2.8.1 版本, 2.7.2 版本中得到修复。

CVSS 5.9 · Medium EPSS 0.70% · P52

Possible ATT&CK Techniques 1 AI

T1211 · Exploitation for Stealth
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-35940

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Int overflow in `RaggedRangeOp` in Tensoflow
Source: CVE Program / CVE List V5
Vulnerability Description
TensorFlow is an open source platform for machine learning. The `RaggedRangOp` function takes an argument `limits` that is eventually used to construct a `TensorShape` as an `int64`. If `limits` is a very large float, it can overflow when converted to an `int64`. This triggers an `InvalidArgument` but also throws an abort signal that crashes the program. We have patched the issue in GitHub commit 37cefa91bee4eace55715eeef43720b958a01192. 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
整数溢出或超界折返
Source: CVE Program / CVE List V5
Vulnerability Title
Google TensorFlow 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Google TensorFlow是美国谷歌(Google)公司的一套用于机器学习的端到端开源平台。 Google TensorFlow 存在输入验证错误漏洞,该漏洞源于 RaggedRangOp 函数的 limits 参数如果是一个非常大的浮点数,则可能会发生溢出。这会触发 InvalidArgument ,但也会引发导致程序结束的中止信号。该漏洞将在 2.10.0 版本, 2.9.1 版本, 2.8.1 版本, 2.7.2 版本中得到修复。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
tensorflow tensorflow < 2.7.2 -

II. Public POCs for CVE-2022-35940

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-35940

请登录查看更多情报信息。

Patches & Fixes for CVE-2022-35940 (1)

Vendor Advisories for CVE-2022-35940 (1)

Other References for CVE-2022-35940 (1)

Same Patch Batch · tensorflow · 2022-09-16 · 59 CVEs total

CVE-2022-35938 7.0 HIGH OOB read in `Gather_nd` op in TensorFlow Lite Micro
CVE-2022-35939 7.0 HIGH Out of bounds write in `scatter_nd` op in TensorFlow Lite
CVE-2022-35937 7.0 HIGH OOB read in `Gather_nd` op in TensorFlow Lite
CVE-2022-35979 5.9 MEDIUM Segfault in `QuantizedRelu` and `QuantizedRelu6`
CVE-2022-35960 5.9 MEDIUM `CHECK` failure in `TensorListReserve` in TensorFlow
CVE-2022-35941 5.9 MEDIUM `CHECK` failure in `AvgPoolOp` in Tensorflow
CVE-2022-35952 5.9 MEDIUM `CHECK` failures in `UnbatchGradOp` in TensorFlow
CVE-2022-35959 5.9 MEDIUM `CHECK` failures in `AvgPool3DGrad` in TensorFlow
CVE-2022-35969 5.9 MEDIUM `CHECK` fail in `Conv2DBackpropInput` in TensorFlow
CVE-2022-35971 5.9 MEDIUM `CHECK` fail in `FakeQuantWithMinMaxVars` in TensorFlow
CVE-2022-35973 5.9 MEDIUM Segfault in `QuantizedMatMul` in TensorFlow
CVE-2022-35972 5.9 MEDIUM Segfault in `QuantizedBiasAdd` in TensorFlow
CVE-2022-35974 5.9 MEDIUM Segfault in `QuantizeDownAndShrinkRange` in TensorFlow
CVE-2022-35966 5.9 MEDIUM Segfault in `QuantizedAvgPool` in TensorFlow
CVE-2022-35981 5.9 MEDIUM `CHECK` fail in `FractionalMaxPoolGrad` in TensorFlow
CVE-2022-35982 5.9 MEDIUM Segfault in `SparseBincount` in TensorFlow
CVE-2022-35988 5.9 MEDIUM `CHECK` fail in `tf.linalg.matrix_rank` in TensorFlow
CVE-2022-35989 5.9 MEDIUM `CHECK` fail in `MaxPool` in TensorFlow
CVE-2022-35983 5.9 MEDIUM `CHECK` fail in `Save` and `SaveSlices` in TensorFlow
CVE-2022-35984 5.9 MEDIUM `CHECK` fail in `ParameterizedTruncatedNormal` in TensorFlow

Showing top 20 of 59 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2022-35940

No comments yet


Leave a comment