CVE-2024-27037

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

State
Published
Severity
5.5 Medium
Published
May 1, 2024
Updated
May 11, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 0ee52b157b8ed88550ddd6291e54bb4bfabde364 to before 01511ac7be8e45f80e637f6bf61af2d3d2dee9dbAffected
  • 0ee52b157b8ed88550ddd6291e54bb4bfabde364 to before 8c4889a9ea861d7be37463c10846eb75e1b49c9dAffected
  • 0ee52b157b8ed88550ddd6291e54bb4bfabde364 to before 0801c893fd48cdba66a3c8f44c3fe43cc67d3b85Affected
  • 0ee52b157b8ed88550ddd6291e54bb4bfabde364 to before ca976c6a592f789700200069ef9052493c0b73d8Affected
  • 0ee52b157b8ed88550ddd6291e54bb4bfabde364 to before 58a946ab43501f2eba058d24d96af0ad1122475bAffected
  • 0ee52b157b8ed88550ddd6291e54bb4bfabde364 to before 7938e9ce39d6779d2f85d822cc930f73420e54a6Affected
LinuxLinux
  • 3.11Affected
  • before 3.11Not affected
  • 5.15.153 through 5.15.*Not affected
  • 6.1.83 through 6.1.*Not affected
  • 6.6.23 through 6.6.*Not affected
  • 6.7.11 through 6.7.*Not affected
  • 6.8.2 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.