TensorFlow is an end-to-end open source platform for machine learning. In affected versions all TFLite operations that use quantization can be made to use unitialized values. For example. The issue stems from the fact that quantization.params is only valid if quantization.type is different that kTfLiteNoQuantization. However, these checks are missing in large parts of the code. We have patched the issue in GitHub commits 537bc7c723439b9194a358f64d871dd326c18887, 4a91f2069f7145aab6ba2d8cfe41be8a110c18a5 and 8933b8a21280696ab119b63263babdb54c298538. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.3.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.4.0"
},
{
"fixed": "2.4.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.5.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.5.0"
},
{
"last_affected": "2.5.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.6.0:rc0:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0-rc0"
},
{
"last_affected": "2.6.0-rc0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.6.0:rc1:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0-rc1"
},
{
"last_affected": "2.6.0-rc1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:2.6.0:rc2:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0-rc2"
},
{
"last_affected": "2.6.0-rc2"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "4a91f2069f7145aab6ba2d8cfe41be8a110c18a5"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "537bc7c723439b9194a358f64d871dd326c18887"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "8933b8a21280696ab119b63263babdb54c298538"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37682.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"7440970209546815505108574224335915766",
"289228390789262120964198350171036451934",
"178299282040712775987615130438989458340",
"339679172152280146636858840907386247935",
"157243637482430417441545842130104104959",
"100046886174609522381984083873442141844",
"203526503650303551201029318832412833916",
"145739016148654751369601556371772170412",
"56351524074353220174472935832872247465",
"43887104110698686301837452352901593126",
"251757078923024656285455457580210319660",
"336799296180172673672172672535376495237",
"99677249298953833768107270114241618342",
"37468892159900445872768491469670413096",
"181495940270344708086105417339164967943",
"11961904636848955661137604320110969319",
"323132364002612901809775586534793662709"
],
"threshold": 0.9
},
"id": "CVE-2021-37682-19a22dd8",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/4a91f2069f7145aab6ba2d8cfe41be8a110c18a5",
"target": {
"file": "tensorflow/lite/kernels/unidirectional_sequence_lstm.cc"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"138269880239765134982444528225961485487",
"281957078064200027425136853801733622467",
"64932240666871905396331142478735368387",
"41536503977427223682044133887533590369",
"2762147040504501512349809088185451695",
"121552092614269428820137499061484798539",
"186287551362289775216431540182155413417",
"10786984281098133597584345173936635926",
"63123936725946969531180821686134261653",
"246805977689749908939191409014443872087",
"291451516082816589936924752010076669125",
"8837040242218694641698824316513669353"
],
"threshold": 0.9
},
"id": "CVE-2021-37682-35fa95db",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/8933b8a21280696ab119b63263babdb54c298538",
"target": {
"file": "tensorflow/lite/kernels/depthwise_conv.cc"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "64663185004761799010438763046534651364",
"length": 2387
},
"id": "CVE-2021-37682-3a00236e",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/8933b8a21280696ab119b63263babdb54c298538",
"target": {
"file": "tensorflow/lite/kernels/depthwise_conv.cc",
"function": "EvalHybridPerChannel"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"251678184988760506119570617856943077602",
"96028089168129468480733784138207319780",
"206161579350164089448286926466803288200",
"69008098661117488507277591248021020417",
"210938701036288702363855349490255376324",
"283048774340724746520139326930594104544",
"105618668709466217276159733640012048809",
"121936318193007732775642270980337709331",
"140289007449253926492484768295059685650",
"256869882914575070959982598421899059276",
"100765556484039192579184371215127255159"
],
"threshold": 0.9
},
"id": "CVE-2021-37682-613236f7",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/537bc7c723439b9194a358f64d871dd326c18887",
"target": {
"file": "tensorflow/lite/kernels/svdf.cc"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "185109233487065727847356531918468503449",
"length": 3229
},
"id": "CVE-2021-37682-64717c18",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/4a91f2069f7145aab6ba2d8cfe41be8a110c18a5",
"target": {
"file": "tensorflow/lite/kernels/unidirectional_sequence_lstm.cc",
"function": "PopulatePrecomputedZPTimesWeightsWithBias"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "211027057744197061863497483170586030987",
"length": 7874
},
"id": "CVE-2021-37682-91b3662b",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/4a91f2069f7145aab6ba2d8cfe41be8a110c18a5",
"target": {
"file": "tensorflow/lite/kernels/unidirectional_sequence_lstm.cc",
"function": "PopulateQuantizedLstmParams8x8_16"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "122186058277500859490914053197639802403",
"length": 5503
},
"id": "CVE-2021-37682-dcf3d8b2",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/537bc7c723439b9194a358f64d871dd326c18887",
"target": {
"file": "tensorflow/lite/kernels/svdf.cc",
"function": "Prepare"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "29055977934307684731821865276269329452",
"length": 5481
},
"id": "CVE-2021-37682-f4cf5c80",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/tensorflow/tensorflow/commit/8933b8a21280696ab119b63263babdb54c298538",
"target": {
"file": "tensorflow/lite/kernels/depthwise_conv.cc",
"function": "Prepare"
}
}
]
"2026-10-20T14:28:21Z"