# CVE-2022-50523: clk: rockchip: Fix memory leak in rockchip_clk_register_pll()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-07T15:19:16.595Z
- Modified: 2026-06-17T05:23:43.270Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

clk: rockchip: Fix memory leak in rockchip_clk_register_pll()

If clk_register() fails, @pll->rate_table may have allocated memory by
kmemdup(), so it needs to be freed, otherwise will cause memory leak
issue, this patch fixes it.

(As written by CVE List.)

## Affected

- Linux Linux: from 90c590254051f511299538c158e12fdad41ce163 before 20201c3a0a32f127fa4bdf379d6ac01c2978702d; from 90c590254051f511299538c158e12fdad41ce163 before 86e1e080ad14c5fb6c14a5f0eb530b1b38cbc968; from 90c590254051f511299538c158e12fdad41ce163 before f02c1d8dc8d880cbaaf9094b4f396fe868ee23ff; from 90c590254051f511299538c158e12fdad41ce163 before 26b94635f1c84d7f6cb482179125cb17e59c90a5; from 90c590254051f511299538c158e12fdad41ce163 before f4d70c139d313948e02360304a6cbcd3a4f5deb5; from 90c590254051f511299538c158e12fdad41ce163 before 5b0a1f1247cd42ac5e0d369f8dbb58762692edee; from 90c590254051f511299538c158e12fdad41ce163 before dcd4ba068b194c6ef0071491aa3f12bec8c14d5b; from 90c590254051f511299538c158e12fdad41ce163 before f2ffb8653ea85ae39ce44347751fcc4c3e41f6bb; from 90c590254051f511299538c158e12fdad41ce163 before 739a6a6bbdb793bd57938cb24aa5a6df89983546; 3.17 (not affected: before 3.17; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 3.17 before 4.9.337; from 4.10 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## References

- <https://git.kernel.org/stable/c/20201c3a0a32f127fa4bdf379d6ac01c2978702d> (patch)
- <https://git.kernel.org/stable/c/86e1e080ad14c5fb6c14a5f0eb530b1b38cbc968> (patch)
- <https://git.kernel.org/stable/c/f02c1d8dc8d880cbaaf9094b4f396fe868ee23ff> (patch)
- <https://git.kernel.org/stable/c/26b94635f1c84d7f6cb482179125cb17e59c90a5> (patch)
- <https://git.kernel.org/stable/c/f4d70c139d313948e02360304a6cbcd3a4f5deb5> (patch)
- <https://git.kernel.org/stable/c/5b0a1f1247cd42ac5e0d369f8dbb58762692edee> (patch)
- <https://git.kernel.org/stable/c/dcd4ba068b194c6ef0071491aa3f12bec8c14d5b> (patch)
- <https://git.kernel.org/stable/c/f2ffb8653ea85ae39ce44347751fcc4c3e41f6bb> (patch)
- <https://git.kernel.org/stable/c/739a6a6bbdb793bd57938cb24aa5a6df89983546> (patch)

## Sources

- CVE List: [CVE-2022-50523](https://www.cve.org/CVERecord?id=CVE-2022-50523), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50523](https://nvd.nist.gov/vuln/detail/CVE-2022-50523), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50523 · Whole record: https://cve.day/CVE-2022-50523.json · Rebuilt by cve.day 2026-11-25T22:58:21.257Z
