In the Linux kernel, the following vulnerability has been resolved:
gpio: mockup: Fix potential resource leakage when register a chip
If creation of software node fails, the locally allocated string array is left unfreed. Free it on error path.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48661.json",
"cna_assigner": "Linux"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48661.json"
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "6476092796289621249425423682260677837",
"length": 1136.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02743c4091ccfb246f5cdbbe3f44b152d5d12933",
"signature_type": "Function",
"id": "CVE-2022-48661-1aed8fc5",
"target": {
"file": "drivers/gpio/gpio-mockup.c",
"function": "gpio_mockup_register_chip"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"162021675816071253502138957970288937062",
"142081004131214879015032146170057583426",
"10208590841129696115120482867361904245",
"181368090909730417552867649157413123459",
"140045165562299911200844661639203976494"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02743c4091ccfb246f5cdbbe3f44b152d5d12933",
"signature_type": "Line",
"id": "CVE-2022-48661-380abc2d",
"target": {
"file": "drivers/gpio/gpio-mockup.c"
}
}
]