In the Linux kernel, the following vulnerability has been resolved:
integrity: Fix memory leakage in keyring allocation error path
Key restriction is allocated in integrityinitkeyring(). However, if keyring allocation failed, it is not freed, causing memory leaks.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50395.json",
"cna_assigner": "Linux"
}[
{
"signature_type": "Function",
"digest": {
"function_hash": "230691666088333196101208707364430330505",
"length": 491.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@29d6c69ba4b96a1de0376e44e5f8b38b13ec8803",
"id": "CVE-2022-50395-020791c7",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c",
"function": "integrity_init_keyring"
}
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"194760295094281331769680049471287424472",
"13649148686403190304098265490713245671",
"317775839600251895384501835488856551292",
"187897251895635842543278794181682191637",
"148830381932220512850638299083744693041",
"99547831237904716485899476335955550596",
"202754455445120866470472071472287110394",
"292570657792785161740903947744533763351"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3bd737289c26be3cee4b9afaf61ef784a2af9d6e",
"id": "CVE-2022-50395-18dae6c2",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c"
}
},
{
"signature_type": "Function",
"digest": {
"function_hash": "240104674594290768170194505063191366229",
"length": 571.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c591c48842f08d30ec6b8416757831985ed9a315",
"id": "CVE-2022-50395-32043a92",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c",
"function": "integrity_init_keyring"
}
},
{
"signature_type": "Function",
"digest": {
"function_hash": "230691666088333196101208707364430330505",
"length": 491.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3bd737289c26be3cee4b9afaf61ef784a2af9d6e",
"id": "CVE-2022-50395-485d7bac",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c",
"function": "integrity_init_keyring"
}
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"194760295094281331769680049471287424472",
"13649148686403190304098265490713245671",
"317775839600251895384501835488856551292",
"159392241319640804410196099877111815095",
"148768529709543544746491802960813487436",
"99547831237904716485899476335955550596",
"105428583091645676289390340076334502037",
"56766254224915214359997206436109154663"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c591c48842f08d30ec6b8416757831985ed9a315",
"id": "CVE-2022-50395-5a17ba33",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c"
}
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"194760295094281331769680049471287424472",
"13649148686403190304098265490713245671",
"317775839600251895384501835488856551292",
"159392241319640804410196099877111815095",
"148768529709543544746491802960813487436",
"99547831237904716485899476335955550596",
"105428583091645676289390340076334502037",
"56766254224915214359997206436109154663"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39419ef7af0916cc3620ecf1ed42d29659109bf3",
"id": "CVE-2022-50395-60cac154",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c"
}
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"194760295094281331769680049471287424472",
"13649148686403190304098265490713245671",
"317775839600251895384501835488856551292",
"187897251895635842543278794181682191637",
"148830381932220512850638299083744693041",
"99547831237904716485899476335955550596",
"105428583091645676289390340076334502037",
"56766254224915214359997206436109154663"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@29d6c69ba4b96a1de0376e44e5f8b38b13ec8803",
"id": "CVE-2022-50395-986e7719",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c"
}
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"194760295094281331769680049471287424472",
"13649148686403190304098265490713245671",
"317775839600251895384501835488856551292",
"159392241319640804410196099877111815095",
"148768529709543544746491802960813487436",
"99547831237904716485899476335955550596",
"105428583091645676289390340076334502037",
"56766254224915214359997206436109154663"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@57e49ad12f8f5df0c48e1710c54b147a05a10c32",
"id": "CVE-2022-50395-a4115eb4",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c"
}
},
{
"signature_type": "Function",
"digest": {
"function_hash": "230691666088333196101208707364430330505",
"length": 491.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b7c44885a07c5ee7f9bf3aa3c9c72fb110c8d22",
"id": "CVE-2022-50395-b6e07216",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c",
"function": "integrity_init_keyring"
}
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"194760295094281331769680049471287424472",
"13649148686403190304098265490713245671",
"317775839600251895384501835488856551292",
"187897251895635842543278794181682191637",
"148830381932220512850638299083744693041",
"99547831237904716485899476335955550596",
"202754455445120866470472071472287110394",
"292570657792785161740903947744533763351"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b7c44885a07c5ee7f9bf3aa3c9c72fb110c8d22",
"id": "CVE-2022-50395-c7e50221",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c"
}
},
{
"signature_type": "Function",
"digest": {
"function_hash": "240104674594290768170194505063191366229",
"length": 571.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39419ef7af0916cc3620ecf1ed42d29659109bf3",
"id": "CVE-2022-50395-de2dff28",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c",
"function": "integrity_init_keyring"
}
},
{
"signature_type": "Function",
"digest": {
"function_hash": "240104674594290768170194505063191366229",
"length": 571.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@57e49ad12f8f5df0c48e1710c54b147a05a10c32",
"id": "CVE-2022-50395-f3a1f92d",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "security/integrity/digsig.c",
"function": "integrity_init_keyring"
}
}
]