{"id":"CVE-2024-27037","state":"PUBLISHED","title":"clk: zynq: Prevent null pointer dereference caused by kmalloc failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: zynq: Prevent null pointer dereference caused by kmalloc failure\n\nThe kmalloc() in zynq_clk_setup() will return null if the\nphysical memory has run out. As a result, if we use snprintf()\nto write data to the null address, the null pointer dereference\nbug will happen.\n\nThis patch uses a stack variable to replace the kmalloc().","publishedAt":"2024-05-01T12:53:50.227Z","updatedAt":"2026-05-11T20:09:11.990Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"01511ac7be8e45f80e637f6bf61af2d3d2dee9db","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"8c4889a9ea861d7be37463c10846eb75e1b49c9d","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"0801c893fd48cdba66a3c8f44c3fe43cc67d3b85","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"ca976c6a592f789700200069ef9052493c0b73d8","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"58a946ab43501f2eba058d24d96af0ad1122475b","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"7938e9ce39d6779d2f85d822cc930f73420e54a6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/zynq/clkc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.11","versionType":"semver"},{"version":"5.15.153","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.83","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.23","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.11","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8.2","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/zynq/clkc.c"]}],"references":["https://git.kernel.org/stable/c/01511ac7be8e45f80e637f6bf61af2d3d2dee9db","https://git.kernel.org/stable/c/8c4889a9ea861d7be37463c10846eb75e1b49c9d","https://git.kernel.org/stable/c/0801c893fd48cdba66a3c8f44c3fe43cc67d3b85","https://git.kernel.org/stable/c/ca976c6a592f789700200069ef9052493c0b73d8","https://git.kernel.org/stable/c/58a946ab43501f2eba058d24d96af0ad1122475b","https://git.kernel.org/stable/c/7938e9ce39d6779d2f85d822cc930f73420e54a6"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27037.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-27037","state":"PUBLISHED","datePublished":"2024-05-01T12:53:50.227Z","dateUpdated":"2026-05-11T20:09:11.990Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.212Z"},"containers":{"cna":{"title":"clk: zynq: Prevent null pointer dereference caused by kmalloc failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: zynq: Prevent null pointer dereference caused by kmalloc failure\n\nThe kmalloc() in zynq_clk_setup() will return null if the\nphysical memory has run out. As a result, if we use snprintf()\nto write data to the null address, the null pointer dereference\nbug will happen.\n\nThis patch uses a stack variable to replace the kmalloc()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"01511ac7be8e45f80e637f6bf61af2d3d2dee9db","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"8c4889a9ea861d7be37463c10846eb75e1b49c9d","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"0801c893fd48cdba66a3c8f44c3fe43cc67d3b85","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"ca976c6a592f789700200069ef9052493c0b73d8","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"58a946ab43501f2eba058d24d96af0ad1122475b","versionType":"git"},{"version":"0ee52b157b8ed88550ddd6291e54bb4bfabde364","status":"affected","lessThan":"7938e9ce39d6779d2f85d822cc930f73420e54a6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/zynq/clkc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.11","versionType":"semver"},{"version":"5.15.153","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.83","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.23","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.11","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8.2","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/zynq/clkc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/01511ac7be8e45f80e637f6bf61af2d3d2dee9db"},{"url":"https://git.kernel.org/stable/c/8c4889a9ea861d7be37463c10846eb75e1b49c9d"},{"url":"https://git.kernel.org/stable/c/0801c893fd48cdba66a3c8f44c3fe43cc67d3b85"},{"url":"https://git.kernel.org/stable/c/ca976c6a592f789700200069ef9052493c0b73d8"},{"url":"https://git.kernel.org/stable/c/58a946ab43501f2eba058d24d96af0ad1122475b"},{"url":"https://git.kernel.org/stable/c/7938e9ce39d6779d2f85d822cc930f73420e54a6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:09:11.990Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"5.15.153"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.1.83"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.6.23"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.7.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.8.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-06-06T18:33:24.280230Z","id":"CVE-2024-27037","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","type":"CWE","lang":"en","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-07T17:22:57.349Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/01511ac7be8e45f80e637f6bf61af2d3d2dee9db","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8c4889a9ea861d7be37463c10846eb75e1b49c9d","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0801c893fd48cdba66a3c8f44c3fe43cc67d3b85","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ca976c6a592f789700200069ef9052493c0b73d8","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/58a946ab43501f2eba058d24d96af0ad1122475b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7938e9ce39d6779d2f85d822cc930f73420e54a6","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:21:05.887Z"}}]}}}