CVE-2022-50557

Source
https://cve.org/CVERecord?id=CVE-2022-50557
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50557.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50557
Downstream
Published
2025-10-22T13:23:18Z
Modified
2026-08-12T03:51:09Z
Summary
pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()
Details

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()

The thunderbay_add_functions() will free memory of thunderbay_funcs when everything is ok, but thunderbay_funcs will not be freed when thunderbay_add_functions() fails, then there will be a memory leak, so we need to add kfree() when thunderbay_add_functions() fails to fix it.

In addition, doing some cleaner works, moving kfree(funcs) from thunderbay_add_functions() to thunderbay_build_functions().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50557.json"
}
References

Affected packages

Git / 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
12422af8194df85243d68b11f8783de9d01e58dc
Fixed
3650943bab29d03ef147290451237713ed1942cd
Fixed
aae4846e8e49044cb51d0276bec2a3fc2d5cd8da
Fixed
83e1bcaf8cef26edaaf2a6098ef760f563683483

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50557.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50557.json"