# CVE-2024-27037: clk: zynq: Prevent null pointer dereference caused by kmalloc failure

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-05-01T12:53:50.227Z
- Modified: 2026-06-17T07:19:01.227Z
- 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: zynq: Prevent null pointer dereference caused by kmalloc failure

The kmalloc() in zynq_clk_setup() will return null if the
physical memory has run out. As a result, if we use snprintf()
to write data to the null address, the null pointer dereference
bug will happen.

This patch uses a stack variable to replace the kmalloc().

(As written by CVE List.)

## Affected

- Linux Linux: from 0ee52b157b8ed88550ddd6291e54bb4bfabde364 before 01511ac7be8e45f80e637f6bf61af2d3d2dee9db; from 0ee52b157b8ed88550ddd6291e54bb4bfabde364 before 8c4889a9ea861d7be37463c10846eb75e1b49c9d; from 0ee52b157b8ed88550ddd6291e54bb4bfabde364 before 0801c893fd48cdba66a3c8f44c3fe43cc67d3b85; from 0ee52b157b8ed88550ddd6291e54bb4bfabde364 before ca976c6a592f789700200069ef9052493c0b73d8; from 0ee52b157b8ed88550ddd6291e54bb4bfabde364 before 58a946ab43501f2eba058d24d96af0ad1122475b; from 0ee52b157b8ed88550ddd6291e54bb4bfabde364 before 7938e9ce39d6779d2f85d822cc930f73420e54a6; 3.11 (not affected: before 3.11; from 5.15.153 up to 5.15.*; from 6.1.83 up to 6.1.*; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 3.11 before 5.15.153; from 5.16 before 6.1.83; from 6.2 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## References

- <https://git.kernel.org/stable/c/01511ac7be8e45f80e637f6bf61af2d3d2dee9db> (patch)
- <https://git.kernel.org/stable/c/8c4889a9ea861d7be37463c10846eb75e1b49c9d> (patch)
- <https://git.kernel.org/stable/c/0801c893fd48cdba66a3c8f44c3fe43cc67d3b85> (patch)
- <https://git.kernel.org/stable/c/ca976c6a592f789700200069ef9052493c0b73d8> (patch)
- <https://git.kernel.org/stable/c/58a946ab43501f2eba058d24d96af0ad1122475b> (patch)
- <https://git.kernel.org/stable/c/7938e9ce39d6779d2f85d822cc930f73420e54a6> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-27037 · Whole record: https://cve.day/CVE-2024-27037.json · Rebuilt by cve.day 2026-11-25T22:58:39.791Z
