CVE-2023-53364: regulator: da9063: better fix null deref with partial DT
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
regulator: da9063: better fix null deref with partial DT
Two versions of the original patch were sent but V1 was merged instead of V2 due to a mistake.
So update to V2.
The advantage of V2 is that it completely avoids dereferencing the pointer, even just to take the address, which may fix problems with some compilers. Both versions work on my gcc 9.4 but use the safer one.
The Linux kernel CVE team has assigned CVE-2023-53364 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.4.7 with commit 04a025b17d83d07924e5e32508c72536ab8f42d9 and fixed in 6.4.12 with commit aa402a3b553bd4829f4504058d53b0351c66c9d4
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-2023-53364
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/regulator/da9063-regulator.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/aa402a3b553bd4829f4504058d53b0351c66c9d4 https://git.kernel.org/stable/c/30c694fd4a99fbbc4115d180156ca01b60953371