The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher.
[
{
"id": "CVE-2020-26572-70cc3a8b",
"source": "https://github.com/opensc/opensc/commit/9d294de90d1cc66956389856e60b6944b27b4817",
"digest": {
"line_hashes": [
"58466695333159636353363207331574836164",
"202577461546426578785310313971106836046",
"284255860012804969870862664979029655002",
"139437758083297902526057034584382767580"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "src/libopensc/card-tcos.c"
}
},
{
"id": "CVE-2020-26572-cb06db58",
"source": "https://github.com/opensc/opensc/commit/9d294de90d1cc66956389856e60b6944b27b4817",
"digest": {
"length": 1581.0,
"function_hash": "114247950551260681955303043934807423823"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "tcos_decipher",
"file": "src/libopensc/card-tcos.c"
}
}
]