In the Linux kernel, the following vulnerability has been resolved:
crypto: qat - fix memory leak in RSA
When an RSA key represented in form 2 (as defined in PKCS #1 V2.1) is used, some components of the private key persist even after the TFM is released. Replace the explicit calls to free the buffers in qatrsaexittfm() with a call to qatrsaclearctx() which frees all buffers referenced in the TFM context.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49566.json"
}[
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49566-4191569b",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"132988387272611610747512406339907004982",
"291058135487289151189992484273130164889",
"200845195163242166733900819596826414669",
"82999802412553096897204863553762741588",
"10628141205541748405173672556419213343",
"101343746269115271467205486500637512951",
"130908132099141474786979775564794244907",
"313023145762231090991907268756948827603",
"20325688312388163234041393936651942123",
"109661648929278900841513709436645734451",
"313302237130952621805752403114362807853",
"331673489805957647693638203578363096631",
"280293647965542615508855298862035475995",
"69717298772598212197632336347558932377",
"274372484628993924733995205276904259063"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a843925e0287eebb4aa808666bf22c664dfe4c53"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49566-58642638",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"132988387272611610747512406339907004982",
"291058135487289151189992484273130164889",
"200845195163242166733900819596826414669",
"82999802412553096897204863553762741588",
"10628141205541748405173672556419213343",
"101343746269115271467205486500637512951",
"130908132099141474786979775564794244907",
"313023145762231090991907268756948827603",
"20325688312388163234041393936651942123",
"109661648929278900841513709436645734451",
"313302237130952621805752403114362807853",
"331673489805957647693638203578363096631",
"280293647965542615508855298862035475995",
"69717298772598212197632336347558932377",
"274372484628993924733995205276904259063"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0f967fdc09955221a1951a279481b0bf4d359941"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49566-9815806a",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c",
"function": "qat_rsa_exit_tfm"
},
"digest": {
"length": 497.0,
"function_hash": "221577224487971688667009232263788487502"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80a52e1ee7757b742f96bfb0d58f0c14eb6583d0"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49566-c655f6be",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"132988387272611610747512406339907004982",
"291058135487289151189992484273130164889",
"200845195163242166733900819596826414669",
"82999802412553096897204863553762741588",
"10628141205541748405173672556419213343",
"101343746269115271467205486500637512951",
"130908132099141474786979775564794244907",
"313023145762231090991907268756948827603",
"20325688312388163234041393936651942123",
"109661648929278900841513709436645734451",
"313302237130952621805752403114362807853",
"331673489805957647693638203578363096631",
"280293647965542615508855298862035475995",
"69717298772598212197632336347558932377",
"274372484628993924733995205276904259063"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80a52e1ee7757b742f96bfb0d58f0c14eb6583d0"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49566-ee1e7b0d",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c",
"function": "qat_rsa_exit_tfm"
},
"digest": {
"length": 497.0,
"function_hash": "221577224487971688667009232263788487502"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0f967fdc09955221a1951a279481b0bf4d359941"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49566-f24516f6",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c",
"function": "qat_rsa_exit_tfm"
},
"digest": {
"length": 497.0,
"function_hash": "221577224487971688667009232263788487502"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a843925e0287eebb4aa808666bf22c664dfe4c53"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49566.json"