CVE-2022-21740

Source
https://cve.org/CVERecord?id=CVE-2022-21740
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21740.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21740
Aliases
Downstream
Related
Published
2022-02-03T14:30:47Z
Modified
2026-04-02T07:46:13.739157Z
Severity
  • 7.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H CVSS Calculator
Summary
Heap overflow in Tensorflow
Details

Tensorflow is an Open Source Machine Learning Framework. The implementation of SparseCountSparseOutput is vulnerable to a heap overflow. 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
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21740.json"
}
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
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

0.*
0.12.0-rc0
0.12.0-rc1
0.12.1
0.5.0
0.6.0
tflite-v0.*
tflite-v0.1.7
v0.*
v0.10.0
v0.10.0rc0
v0.11.0
v0.11.0rc0
v0.11.0rc1
v0.11.0rc2
v0.12.0
v0.6.0
v0.7.0
v0.7.1
v0.8.0
v0.8.0rc0
v0.9.0
v0.9.0rc0
v1.*
v1.0.0
v1.0.0-alpha
v1.0.0-rc0
v1.0.0-rc1
v1.0.0-rc2
v1.0.1
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.1
v2.4.2
v2.4.3
v2.4.4
v2.5.0
v2.5.0-rc0
v2.5.0-rc1
v2.5.0-rc2
v2.5.0-rc3
v2.5.1
v2.5.2
v2.6.0
v2.6.0-rc0
v2.6.0-rc1
v2.6.0-rc2
v2.6.1
v2.6.2
v2.7.0
v2.7.0-rc0
v2.7.0-rc1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21740.json"
vanir_signatures
[
    {
        "target": {
            "file": "tensorflow/core/kernels/count_ops.cc"
        },
        "digest": {
            "line_hashes": [
                "122268366615870984061731212483338613608",
                "331197975007086142495442295116876276889",
                "274333202759242867661362820132762296942",
                "24540839225558138880736723824630938445",
                "54986795225819630183321432706554493921",
                "111387036045776398925780042773652253108",
                "236414246192172195641386631347115688475",
                "331528481227994275889744815991125017247",
                "270153746900716505495932950264790376392",
                "12092929553094343785797268482198443203",
                "7874507959324440005089441570945882077",
                "70292989773184290943277274873153948233",
                "37784336467189883900985648367146805012",
                "78255415891508767832834393378684214991",
                "119301024285150303581569650604645531891",
                "242432251648936141967772996842232720327",
                "80743426556312547582870807565152435026",
                "305542167729994706683797306584931349203",
                "113972689815413783749537851093374806771",
                "15095870996015274044393628556655552557",
                "88406783310725338448377167891769338516",
                "176815940850939357411414247040828562788",
                "282861960725116743484462341347643923394",
                "245670380746282353972333627797044514944",
                "145240645846633392420339396997140337622",
                "142502283888192935441185518778031548263",
                "286146451268294583632579489631235618492",
                "242813962013336255070449395816118815813",
                "323975600079809876117292672000661218444",
                "148200533338745609053035860708214667501",
                "280770808928017248684546375780452873765",
                "167428460600871771954203503171272625576",
                "51280031490941488587456689041229912459",
                "61473214249927899287073148589492835079",
                "211611697522199923154704004340082255571",
                "314009107591415659434262482843296394448",
                "3878503606720120236402875860279767962"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/2b7100d6cdff36aa21010a82269bc05a6d1cc74a",
        "signature_version": "v1",
        "id": "CVE-2022-21740-f56d89b8"
    }
]