{"id":"CVE-2022-48661","summary":"gpio: mockup: Fix potential resource leakage when register a chip","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: mockup: Fix potential resource leakage when register a chip\n\nIf creation of software node fails, the locally allocated string\narray is left unfreed. Free it on error path.","modified":"2026-03-20T12:21:41.021637Z","published":"2024-04-28T13:01:26.940Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48661.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/02743c4091ccfb246f5cdbbe3f44b152d5d12933"},{"type":"WEB","url":"https://git.kernel.org/stable/c/41f857033c44442a27f591fda8d986e7c9e42872"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b26723e058faaf11b532fb4aa16d6849d581790"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48661.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48661"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6fda593f3082ef1aa783ac13e89f673fd69a2cb6"},{"fixed":"9b26723e058faaf11b532fb4aa16d6849d581790"},{"fixed":"41f857033c44442a27f591fda8d986e7c9e42872"},{"fixed":"02743c4091ccfb246f5cdbbe3f44b152d5d12933"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48661.json"}}],"schema_version":"1.7.5"}