CVE-2021-41213
CVSS V2 Medium 4.3
CVSS V3 Medium 5.5
Description
TensorFlow is an open source platform for machine learning. In affected versions the code behind `tf.function` API can be made to deadlock when two `tf.function` decorated Python functions are mutually recursive. This occurs due to using a non-reentrant `Lock` Python object. Loading any model which contains mutually recursive functions is vulnerable. An attacker can cause denial of service by causing users to load such models and calling a recursive `tf.function`, although this is not a frequent scenario. 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.
Overview
- CVE ID
- CVE-2021-41213
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-11-05T23:15:08
- Last Modified Date
- 2022-10-20T21:25:47
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* | 1 | OR | 2.4.0 | 2.4.4 |
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* | 1 | OR | 2.5.0 | 2.5.2 |
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* | 1 | OR | 2.6.0 | 2.6.1 |
cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:google:tensorflow:2.7.0:rc1:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:N/I:N/A:P
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- NONE
- Availability Impact
- PARTIAL
- Base Score
- 4.3
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Attack Vector
- LOCAL
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- UNCHANGED
- Confidentiality Impact
- NONE
- Availability Impact
- HIGH
- Base Score
- 5.5
- Base Severity
- MEDIUM
- Exploitability Score
- 1.8
- Impact Score
- 3.6
References
Reference URL | Reference Tags |
---|---|
https://github.com/tensorflow/tensorflow/commit/afac8158d43691661ad083f6dd9e56f327c1dcb7 | Patch Third Party Advisory |
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h67m-xg8f-fxcf | Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-41213 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41213 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:47:50 | Added to TrackCVE | |||
2022-12-05 13:59:18 | 2021-11-05T23:15Z | 2021-11-05T23:15:08 | CVE Published Date | updated |
2022-12-05 13:59:18 | 2022-10-20T21:25:47 | CVE Modified Date | updated | |
2022-12-05 13:59:18 | Analyzed | Vulnerability Status | updated |