{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50557","id":"CVE-2022-50557","title":"pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()","description":"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_fun","descriptionLong":"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().","published":"2025-10-22T13:23:18.131Z","updated":"2026-10-28T02:30:42.958174670Z","reserved":"2025-10-22T13:20:23.758Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"12422af8194df85243d68b11f8783de9d01e58dc","lessThan":"3650943bab29d03ef147290451237713ed1942cd","status":"affected","versionType":"git"},{"version":"12422af8194df85243d68b11f8783de9d01e58dc","lessThan":"aae4846e8e49044cb51d0276bec2a3fc2d5cd8da","status":"affected","versionType":"git"},{"version":"12422af8194df85243d68b11f8783de9d01e58dc","lessThan":"83e1bcaf8cef26edaaf2a6098ef760f563683483","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","lessThan":"5.17","status":"unaffected","versionType":"semver"},{"version":"6.0.16","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1.2","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3650943bab29d03ef147290451237713ed1942cd","tags":["web"]},{"url":"https://git.kernel.org/stable/c/aae4846e8e49044cb51d0276bec2a3fc2d5cd8da","tags":["web"]},{"url":"https://git.kernel.org/stable/c/83e1bcaf8cef26edaaf2a6098ef760f563683483","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50557.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50557","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00211,"epssPercentile":0.11522,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50557","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50557","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50557","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50557","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}