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.
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a843925e0287eebb4aa808666bf22c664dfe4c53",
"digest": {
"line_hashes": [
"132988387272611610747512406339907004982",
"291058135487289151189992484273130164889",
"200845195163242166733900819596826414669",
"82999802412553096897204863553762741588",
"10628141205541748405173672556419213343",
"101343746269115271467205486500637512951",
"130908132099141474786979775564794244907",
"313023145762231090991907268756948827603",
"20325688312388163234041393936651942123",
"109661648929278900841513709436645734451",
"313302237130952621805752403114362807853",
"331673489805957647693638203578363096631",
"280293647965542615508855298862035475995",
"69717298772598212197632336347558932377",
"274372484628993924733995205276904259063"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"id": "CVE-2022-49566-4191569b",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0f967fdc09955221a1951a279481b0bf4d359941",
"digest": {
"line_hashes": [
"132988387272611610747512406339907004982",
"291058135487289151189992484273130164889",
"200845195163242166733900819596826414669",
"82999802412553096897204863553762741588",
"10628141205541748405173672556419213343",
"101343746269115271467205486500637512951",
"130908132099141474786979775564794244907",
"313023145762231090991907268756948827603",
"20325688312388163234041393936651942123",
"109661648929278900841513709436645734451",
"313302237130952621805752403114362807853",
"331673489805957647693638203578363096631",
"280293647965542615508855298862035475995",
"69717298772598212197632336347558932377",
"274372484628993924733995205276904259063"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"id": "CVE-2022-49566-58642638",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80a52e1ee7757b742f96bfb0d58f0c14eb6583d0",
"digest": {
"length": 497.0,
"function_hash": "221577224487971688667009232263788487502"
},
"signature_type": "Function",
"signature_version": "v1",
"id": "CVE-2022-49566-9815806a",
"target": {
"function": "qat_rsa_exit_tfm",
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80a52e1ee7757b742f96bfb0d58f0c14eb6583d0",
"digest": {
"line_hashes": [
"132988387272611610747512406339907004982",
"291058135487289151189992484273130164889",
"200845195163242166733900819596826414669",
"82999802412553096897204863553762741588",
"10628141205541748405173672556419213343",
"101343746269115271467205486500637512951",
"130908132099141474786979775564794244907",
"313023145762231090991907268756948827603",
"20325688312388163234041393936651942123",
"109661648929278900841513709436645734451",
"313302237130952621805752403114362807853",
"331673489805957647693638203578363096631",
"280293647965542615508855298862035475995",
"69717298772598212197632336347558932377",
"274372484628993924733995205276904259063"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"id": "CVE-2022-49566-c655f6be",
"target": {
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0f967fdc09955221a1951a279481b0bf4d359941",
"digest": {
"length": 497.0,
"function_hash": "221577224487971688667009232263788487502"
},
"signature_type": "Function",
"signature_version": "v1",
"id": "CVE-2022-49566-ee1e7b0d",
"target": {
"function": "qat_rsa_exit_tfm",
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a843925e0287eebb4aa808666bf22c664dfe4c53",
"digest": {
"length": 497.0,
"function_hash": "221577224487971688667009232263788487502"
},
"signature_type": "Function",
"signature_version": "v1",
"id": "CVE-2022-49566-f24516f6",
"target": {
"function": "qat_rsa_exit_tfm",
"file": "drivers/crypto/qat/qat_common/qat_asym_algs.c"
}
}
]