[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025070339-CVE-2025-38160-04ed@gregkh>
Date: Thu, 3 Jul 2025 10:36:16 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-38160: clk: bcm: rpi: Add NULL check in raspberrypi_clk_register()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
clk: bcm: rpi: Add NULL check in raspberrypi_clk_register()
devm_kasprintf() returns NULL when memory allocation fails. Currently,
raspberrypi_clk_register() does not check for this case, which results
in a NULL pointer dereference.
Add NULL check after devm_kasprintf() to prevent this issue.
The Linux kernel CVE team has assigned CVE-2025-38160 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.9 with commit 93d2725affd65686792f4b57e49ef660f3c8c0f9 and fixed in 5.10.239 with commit 938f625bd3364cfdc93916739add3b637ff90368
Issue introduced in 5.9 with commit 93d2725affd65686792f4b57e49ef660f3c8c0f9 and fixed in 5.15.186 with commit 54ce9bcdaee59d4ef0703f390d55708557818f9e
Issue introduced in 5.9 with commit 93d2725affd65686792f4b57e49ef660f3c8c0f9 and fixed in 6.1.142 with commit 52562161df3567cdaedada46834a7a8d8c4ab737
Issue introduced in 5.9 with commit 93d2725affd65686792f4b57e49ef660f3c8c0f9 and fixed in 6.6.94 with commit 3c1adc2f8c732ea09e8c4bce5941fec019c6205d
Issue introduced in 5.9 with commit 93d2725affd65686792f4b57e49ef660f3c8c0f9 and fixed in 6.12.34 with commit 0a2712cd24ecfeb520af60f6f859b442c7ab01ff
Issue introduced in 5.9 with commit 93d2725affd65686792f4b57e49ef660f3c8c0f9 and fixed in 6.15.3 with commit 1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f
Issue introduced in 5.9 with commit 93d2725affd65686792f4b57e49ef660f3c8c0f9 and fixed in 6.16-rc1 with commit 73c46d9a93d071ca69858dea3f569111b03e549e
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-38160
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/clk/bcm/clk-raspberrypi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/938f625bd3364cfdc93916739add3b637ff90368
https://git.kernel.org/stable/c/54ce9bcdaee59d4ef0703f390d55708557818f9e
https://git.kernel.org/stable/c/52562161df3567cdaedada46834a7a8d8c4ab737
https://git.kernel.org/stable/c/3c1adc2f8c732ea09e8c4bce5941fec019c6205d
https://git.kernel.org/stable/c/0a2712cd24ecfeb520af60f6f859b442c7ab01ff
https://git.kernel.org/stable/c/1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f
https://git.kernel.org/stable/c/73c46d9a93d071ca69858dea3f569111b03e549e
Powered by blists - more mailing lists