{"id":"CVE-2022-50557","published":"2025-10-22T13:23:18Z","modified":"2026-05-11T19:21:43Z","title":"pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()\n\nThe thunderbay_add_functions() will free memory of thunderbay_funcs\nwhen everything is ok, but thunderbay_funcs will not be freed when\nthunderbay_add_functions() fails, then there will be a memory leak,\nso we need to add kfree() when thunderbay_add_functions() fails to\nfix it.\n\nIn addition, doing some cleaner works, moving kfree(funcs) from\nthunderbay_add_functions() to thunderbay_build_functions().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00211,"percentile":0.11319,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3650943bab29d03ef147290451237713ed1942cd","tags":[]},{"url":"https://git.kernel.org/stable/c/aae4846e8e49044cb51d0276bec2a3fc2d5cd8da","tags":[]},{"url":"https://git.kernel.org/stable/c/83e1bcaf8cef26edaaf2a6098ef760f563683483","tags":[]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":2.26}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 12422af8194df85243d68b11f8783de9d01e58dc, < 3650943bab29d03ef147290451237713ed1942cd",">= 12422af8194df85243d68b11f8783de9d01e58dc, < aae4846e8e49044cb51d0276bec2a3fc2d5cd8da",">= 12422af8194df85243d68b11f8783de9d01e58dc, < 83e1bcaf8cef26edaaf2a6098ef760f563683483"]},{"vendor":"Linux","product":"Linux","versions":["5.17"]}],"euvd":{"id":"EUVD-2022-55671","exploited":false,"provenance":"source"}}