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/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2022/49xxx/CVE-2022-49627.json"
}[
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49627-1661bc60",
"target": {
"function": "ima_init_crypto",
"file": "security/integrity/ima/ima_crypto.c"
},
"digest": {
"function_hash": "143293663695724659151817963845413449004",
"length": 2329.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@830de9667b3ada0a75a3f098dfc7159709fe397b"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49627-1fc538f5",
"target": {
"function": "ima_init_crypto",
"file": "security/integrity/ima/ima_crypto.c"
},
"digest": {
"function_hash": "143293663695724659151817963845413449004",
"length": 2329.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@601ae26aa2802a4c10c94d7388a99eabdbefab2b"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49627-3166d788",
"target": {
"file": "security/integrity/ima/ima_crypto.c"
},
"digest": {
"line_hashes": [
"88908990161508103813330422534836196131",
"291623286157946635135787711648868086763",
"261002437097362198874623812425159821101",
"6619544370963012292991975835118243074"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@067d2521874135267e681c19d42761c601d503d6"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49627-3ce4651a",
"target": {
"file": "security/integrity/ima/ima_crypto.c"
},
"digest": {
"line_hashes": [
"88908990161508103813330422534836196131",
"291623286157946635135787711648868086763",
"261002437097362198874623812425159821101",
"6619544370963012292991975835118243074"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@830de9667b3ada0a75a3f098dfc7159709fe397b"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49627-87ebf1f7",
"target": {
"function": "ima_init_crypto",
"file": "security/integrity/ima/ima_crypto.c"
},
"digest": {
"function_hash": "143293663695724659151817963845413449004",
"length": 2329.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@067d2521874135267e681c19d42761c601d503d6"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49627-99f56331",
"target": {
"file": "security/integrity/ima/ima_crypto.c"
},
"digest": {
"line_hashes": [
"88908990161508103813330422534836196131",
"291623286157946635135787711648868086763",
"261002437097362198874623812425159821101",
"6619544370963012292991975835118243074"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@601ae26aa2802a4c10c94d7388a99eabdbefab2b"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49627-b5d0b6af",
"target": {
"file": "security/integrity/ima/ima_crypto.c"
},
"digest": {
"line_hashes": [
"88908990161508103813330422534836196131",
"291623286157946635135787711648868086763",
"261002437097362198874623812425159821101",
"6619544370963012292991975835118243074"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1d9702ceb4a091da6bee380627596d1fba09274"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-49627-e8257301",
"target": {
"function": "ima_init_crypto",
"file": "security/integrity/ima/ima_crypto.c"
},
"digest": {
"function_hash": "143293663695724659151817963845413449004",
"length": 2329.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c1d9702ceb4a091da6bee380627596d1fba09274"
}
]