CVE-2022-21741

Source
https://cve.org/CVERecord?id=CVE-2022-21741
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21741.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21741
Aliases
Downstream
Related
Published
2022-02-03T14:27:31Z
Modified
2026-03-10T23:50:13.522312Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Division by zero in TFLite
Details

Tensorflow is an Open Source Machine Learning Framework. ### Impact An attacker can craft a TFLite model that would trigger a division by zero in the implementation of depthwise convolutions. The parameters of the convolution can be user controlled and are also used within a division operation to determine the size of the padding that needs to be added before applying the convolution. There is no check before this division that the divisor is strictly positive. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21741.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.5.2"
        },
        {
            "introduced": "2.6.0"
        },
        {
            "last_affected": "2.6.2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.7.0"
        }
    ]
}

Affected versions

v2.*
v2.6.0
v2.6.1
v2.6.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21741.json"
vanir_signatures
[
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "202855400175116201651609350277890752736",
                "93829148425785969806087086439373471241",
                "114886178470535643250803223717885354391",
                "321342500234098009591385730760524196734"
            ]
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/e5b0eec199c2d03de54fd6a7fd9275692218e2bc",
        "signature_type": "Line",
        "id": "CVE-2022-21741-ab713987",
        "target": {
            "file": "tensorflow/lite/kernels/depthwise_conv.cc"
        }
    },
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "49823621115035619546680909075594592724",
            "length": 5631.0
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/e5b0eec199c2d03de54fd6a7fd9275692218e2bc",
        "signature_type": "Function",
        "id": "CVE-2022-21741-ea5b70fe",
        "target": {
            "file": "tensorflow/lite/kernels/depthwise_conv.cc",
            "function": "Prepare"
        }
    }
]