CVE-2024-27037
JSON

5.5medium

clk: zynq: Prevent null pointer dereference caused by kmalloc failure

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.27% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelfrom 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.2NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: clk: zynq: evita la desreferencia del puntero nulo causada por una falla de kmalloc. El kmalloc() en zynq_clk_setup() devolverá nulo si la memoria física se ha agotado. Como resultado, si usamos snprintf() para escribir datos en la dirección nula, se producirá el error de desreferencia del puntero nulo. Este parche utiliza una variable de pila para reemplazar kmalloc().

References

Sources

SourceRecordLicence
CVE ListCVE-2024-27037 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-27037 changed 2026-06-17Public domain