CVE-2024-53154: clk: clk-apple-nco: Add NULL check in applnco_probe
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
clk: clk-apple-nco: Add NULL check in applnco_probe
Add NULL check in applnco_probe, to handle kernel NULL pointer dereference error.
The Linux kernel CVE team has assigned CVE-2024-53154 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.18 with commit 6641057d5dba87338780cf3e0d0ae8389ef1125c and fixed in 6.1.120 with commit 9a5905b725739af6a105f9e564e7c80d69969d2b Issue introduced in 5.18 with commit 6641057d5dba87338780cf3e0d0ae8389ef1125c and fixed in 6.6.64 with commit 72ea9a7e9e260aa39f9d1c9254cf92adfb05c4f5 Issue introduced in 5.18 with commit 6641057d5dba87338780cf3e0d0ae8389ef1125c and fixed in 6.11.11 with commit 066c14619e8379c1bafbbf8196fd38eac303472b Issue introduced in 5.18 with commit 6641057d5dba87338780cf3e0d0ae8389ef1125c and fixed in 6.12.2 with commit 534e02f83889ccef5fe6beb46e773ab9d4ae1655 Issue introduced in 5.18 with commit 6641057d5dba87338780cf3e0d0ae8389ef1125c and fixed in 6.13-rc1 with commit 969c765e2b508cca9099d246c010a1e48dcfd089
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-2024-53154
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/clk-apple-nco.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/9a5905b725739af6a105f9e564e7c80d69969d2b https://git.kernel.org/stable/c/72ea9a7e9e260aa39f9d1c9254cf92adfb05c4f5 https://git.kernel.org/stable/c/066c14619e8379c1bafbbf8196fd38eac303472b https://git.kernel.org/stable/c/534e02f83889ccef5fe6beb46e773ab9d4ae1655 https://git.kernel.org/stable/c/969c765e2b508cca9099d246c010a1e48dcfd089