In the Linux kernel, the following vulnerability has been resolved:
mtd: parsers: qcom: Fix missing free for pparts in cleanup
Mtdpart doesn't free pparts when a cleanup function is declared. Add missing free for pparts in cleanup function for smem to fix the leak.
[
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3eb5185896a68373714dc7d0009111744adc3345",
"deprecated": false,
"target": {
"function": "parse_qcomsmem_cleanup",
"file": "drivers/mtd/parsers/qcomsmempart.c"
},
"id": "CVE-2022-48776-1fa8299e",
"signature_version": "v1",
"digest": {
"function_hash": "161704041310456672493197880784827737140",
"length": 150.0
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3eb5185896a68373714dc7d0009111744adc3345",
"deprecated": false,
"target": {
"file": "drivers/mtd/parsers/qcomsmempart.c"
},
"id": "CVE-2022-48776-58aed694",
"signature_version": "v1",
"digest": {
"line_hashes": [
"318057897754198157294684778308252416571",
"221108035083467870641617855151636304392",
"241901124421876865994270930030387671102",
"298942326811386069276841612578259467528"
],
"threshold": 0.9
}
}
]