In the Linux kernel, the following vulnerability has been resolved:
ima: Fix potential memory leak in imainitcrypto()
On failure to allocate the SHA1 tfm, IMA fails to initialize and exits without freeing the imaalgoarray. Add the missing kfree() for imaalgoarray to avoid the potential memory leak.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49627.json"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49627.json"
[
{
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "security/integrity/ima/ima_crypto.c",
"function": "ima_init_crypto"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@830de9667b3ada0a75a3f098dfc7159709fe397b",
"digest": {
"length": 2329.0,
"function_hash": "143293663695724659151817963845413449004"
},
"id": "CVE-2022-49627-1661bc60"
},
{
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "security/integrity/ima/ima_crypto.c",
"function": "ima_init_crypto"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@601ae26aa2802a4c10c94d7388a99eabdbefab2b",
"digest": {
"length": 2329.0,
"function_hash": "143293663695724659151817963845413449004"
},
"id": "CVE-2022-49627-1fc538f5"
},
{
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "security/integrity/ima/ima_crypto.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@067d2521874135267e681c19d42761c601d503d6",
"digest": {
"line_hashes": [
"88908990161508103813330422534836196131",
"291623286157946635135787711648868086763",
"261002437097362198874623812425159821101",
"6619544370963012292991975835118243074"
],
"threshold": 0.9
},
"id": "CVE-2022-49627-3166d788"
},
{
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "security/integrity/ima/ima_crypto.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@830de9667b3ada0a75a3f098dfc7159709fe397b",
"digest": {
"line_hashes": [
"88908990161508103813330422534836196131",
"291623286157946635135787711648868086763",
"261002437097362198874623812425159821101",
"6619544370963012292991975835118243074"
],
"threshold": 0.9
},
"id": "CVE-2022-49627-3ce4651a"
},
{
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "security/integrity/ima/ima_crypto.c",
"function": "ima_init_crypto"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@067d2521874135267e681c19d42761c601d503d6",
"digest": {
"length": 2329.0,
"function_hash": "143293663695724659151817963845413449004"
},
"id": "CVE-2022-49627-87ebf1f7"
},
{
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "security/integrity/ima/ima_crypto.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@601ae26aa2802a4c10c94d7388a99eabdbefab2b",
"digest": {
"line_hashes": [
"88908990161508103813330422534836196131",
"291623286157946635135787711648868086763",
"261002437097362198874623812425159821101",
"6619544370963012292991975835118243074"
],
"threshold": 0.9
},
"id": "CVE-2022-49627-99f56331"
},
{
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "security/integrity/ima/ima_crypto.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1d9702ceb4a091da6bee380627596d1fba09274",
"digest": {
"line_hashes": [
"88908990161508103813330422534836196131",
"291623286157946635135787711648868086763",
"261002437097362198874623812425159821101",
"6619544370963012292991975835118243074"
],
"threshold": 0.9
},
"id": "CVE-2022-49627-b5d0b6af"
},
{
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "security/integrity/ima/ima_crypto.c",
"function": "ima_init_crypto"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1d9702ceb4a091da6bee380627596d1fba09274",
"digest": {
"length": 2329.0,
"function_hash": "143293663695724659151817963845413449004"
},
"id": "CVE-2022-49627-e8257301"
}
]