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:18.131Z
Modified
2026-04-02T08:28:38.256080Z
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 thunderbaybuildfunctions()

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

In addition, doing some cleaner works, moving kfree(funcs) from thunderbayaddfunctions() to thunderbaybuildfunctions().

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"