{"id":"CVE-2025-38160","summary":"clk: bcm: rpi: Add NULL check in raspberrypi_clk_register()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: bcm: rpi: Add NULL check in raspberrypi_clk_register()\n\ndevm_kasprintf() returns NULL when memory allocation fails. Currently,\nraspberrypi_clk_register() does not check for this case, which results\nin a NULL pointer dereference.\n\nAdd NULL check after devm_kasprintf() to prevent this issue.","modified":"2026-04-16T04:33:15.375566202Z","published":"2025-07-03T08:36:02.357Z","related":["SUSE-SU-2025:03272-1","SUSE-SU-2025:03290-1","SUSE-SU-2025:03301-1","SUSE-SU-2025:03382-1","SUSE-SU-2025:03602-1","SUSE-SU-2025:03633-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20653-1","SUSE-SU-2025:20669-1","SUSE-SU-2025:20739-1","SUSE-SU-2025:20756-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38160.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0a2712cd24ecfeb520af60f6f859b442c7ab01ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c1adc2f8c732ea09e8c4bce5941fec019c6205d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/52562161df3567cdaedada46834a7a8d8c4ab737"},{"type":"WEB","url":"https://git.kernel.org/stable/c/54ce9bcdaee59d4ef0703f390d55708557818f9e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/73c46d9a93d071ca69858dea3f569111b03e549e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/938f625bd3364cfdc93916739add3b637ff90368"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38160.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38160"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"93d2725affd65686792f4b57e49ef660f3c8c0f9"},{"fixed":"938f625bd3364cfdc93916739add3b637ff90368"},{"fixed":"54ce9bcdaee59d4ef0703f390d55708557818f9e"},{"fixed":"52562161df3567cdaedada46834a7a8d8c4ab737"},{"fixed":"3c1adc2f8c732ea09e8c4bce5941fec019c6205d"},{"fixed":"0a2712cd24ecfeb520af60f6f859b442c7ab01ff"},{"fixed":"1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f"},{"fixed":"73c46d9a93d071ca69858dea3f569111b03e549e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38160.json"}}],"schema_version":"1.7.5"}