# CVE-2023-52865: clk: mediatek: clk-mt6797: Add check for mtk_alloc_clk_data

- 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.24%, higher than 16% of CVEs (2026-12-02)
- Published: 2024-05-21T15:31:56.527Z
- Modified: 2026-06-17T06:43:46.193Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

clk: mediatek: clk-mt6797: Add check for mtk_alloc_clk_data

Add the check for the return value of mtk_alloc_clk_data() in order to
avoid NULL pointer dereference.

(As written by CVE List.)

## Affected

- Linux Linux: from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before c26feedbc561f2a3cee1a4f717e61bdbdfb4fa92; from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before 4c79cbfb8e9e2311be77182893fda5ea4068c836; from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before 2705c5b97f504e831ae1935c05f0e44f80dfa6b3; from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before 81b16286110728674dcf81137be0687c5055e7bf; from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before 3aefc6fcfbada57fac27f470602d5565e5b76cb4; from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before 357df1c2f6ace96defd557fad709ed1f9f70e16c; from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before be3f12f16038a558f08fa93cc32fa715746a5235; from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before 122ac6496e4975ddd7ec1edba4f6fc1e15e39478; from 96596aa06628e86ea0e1c08c34b0ccc7619e43ac before 606f6366a35a3329545e38129804d65ef26ed7d2; 4.12 (not affected: before 4.12; from 4.14.330 up to 4.14.*; from 4.19.299 up to 4.19.*; from 5.4.261 up to 5.4.*; from 5.10.201 up to 5.10.*; from 5.15.139 up to 5.15.*; from 6.1.63 up to 6.1.*; from 6.5.12 up to 6.5.*; from 6.6.2 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 4.12 before 4.14.330; from 4.15 before 4.19.299; from 4.20 before 5.4.261; from 5.5 before 5.10.201; from 5.11 before 5.15.139; from 5.16 before 6.1.63; from 6.2 before 6.5.12; from 6.6 before 6.6.2

## References

- <https://git.kernel.org/stable/c/c26feedbc561f2a3cee1a4f717e61bdbdfb4fa92> (patch)
- <https://git.kernel.org/stable/c/4c79cbfb8e9e2311be77182893fda5ea4068c836> (patch)
- <https://git.kernel.org/stable/c/2705c5b97f504e831ae1935c05f0e44f80dfa6b3> (patch)
- <https://git.kernel.org/stable/c/81b16286110728674dcf81137be0687c5055e7bf> (patch)
- <https://git.kernel.org/stable/c/3aefc6fcfbada57fac27f470602d5565e5b76cb4> (patch)
- <https://git.kernel.org/stable/c/357df1c2f6ace96defd557fad709ed1f9f70e16c> (patch)
- <https://git.kernel.org/stable/c/be3f12f16038a558f08fa93cc32fa715746a5235> (patch)
- <https://git.kernel.org/stable/c/122ac6496e4975ddd7ec1edba4f6fc1e15e39478> (patch)
- <https://git.kernel.org/stable/c/606f6366a35a3329545e38129804d65ef26ed7d2> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-52865 · Whole record: https://cve.day/CVE-2023-52865.json · Rebuilt by cve.day 2026-11-25T22:58:34.061Z
