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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-41195— Crash in `tf.math.segment_*` operations

CVSS 5.5 · Medium EPSS 0.04% · P11
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2021-41195

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
Crash in `tf.math.segment_*` operations
Source: NVD (National Vulnerability Database)
Vulnerability Description
TensorFlow is an open source platform for machine learning. In affected versions the implementation of `tf.math.segment_*` operations results in a `CHECK`-fail related abort (and denial of service) if a segment id in `segment_ids` is large. This is similar to CVE-2021-29584 (and similar other reported vulnerabilities in TensorFlow, localized to specific APIs): the implementation (both on CPU and GPU) computes the output shape using `AddDim`. However, if the number of elements in the tensor overflows an `int64_t` value, `AddDim` results in a `CHECK` failure which provokes a `std::abort`. Instead, code should use `AddDimWithStatus`. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
整数溢出或超界折返
Source: NVD (National Vulnerability Database)
Vulnerability Title
Google TensorFlow 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Google TensorFlow是美国谷歌(Google)公司的一套用于机器学习的端到端开源平台。 Google TensorFlow 存在输入验证错误漏洞,在受影响的版本中,如果 `segment_ids` 中的段 ID 很大,`tf.math.segment_*` 操作的实现会导致 `CHECK` 失败相关的中止(和拒绝服务)。
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

VendorProductAffected VersionsCPESubscribe
tensorflowtensorflow >= 2.6.0, < 2.6.1 -

II. Public POCs for CVE-2021-41195

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-41195

登录查看更多情报信息。

Same Patch Batch · tensorflow · 2021-11-05 · 34 CVEs total

CVE-2021-412088.8 HIGHIncomplete validation in boosted trees code
CVE-2021-412207.8 HIGHUse after free in `CollectiveReduceV2`
CVE-2021-412217.8 HIGHAccess to invalid memory during shape inference in `Cudnn*` ops
CVE-2021-412147.8 HIGHReference binding to `nullptr` in `tf.ragged.cross`
CVE-2021-412197.8 HIGHUndefined behavior via `nullptr` reference binding in sparse matrix multiplication
CVE-2021-412017.8 HIGHUnitialized access in `EinsumHelper::ParseEquation`
CVE-2021-412037.8 HIGHMissing validation during checkpoint loading
CVE-2021-412287.5 HIGHCode injection in `saved_model_cli`
CVE-2021-412247.1 HIGH`SparseFillEmptyRows` heap OOB read
CVE-2021-412237.1 HIGHHeap OOB read in `FusedBatchNorm` kernels
CVE-2021-412267.1 HIGHHeap OOB read in `SparseBinCount`
CVE-2021-412127.1 HIGHHeap OOB read in `tf.ragged.cross`
CVE-2021-412117.1 HIGHHeap OOB read in shape inference for `QuantizeV2`
CVE-2021-412057.1 HIGHHeap OOB read in all `tf.raw_ops.QuantizeAndDequantizeV*` ops
CVE-2021-412107.1 HIGHHeap OOB read in `tf.raw_ops.SparseCountSparseOutput`
CVE-2021-412067.0 HIGHIncomplete validation of shapes in multiple TF ops
CVE-2021-412276.6 MEDIUMArbitrary memory read in `ImmutableConst`
CVE-2021-412005.5 MEDIUMIncomplete validation in `tf.summary.create_file_writer`
CVE-2021-411975.5 MEDIUMCrashes due to overflow and `CHECK`-fail in ops with large tensor shapes
CVE-2021-411985.5 MEDIUMOverflow/crash in `tf.tile` when tiling tensor is large

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

IV. Related Vulnerabilities

V. Comments for CVE-2021-41195

No comments yet


Leave a comment