CVE-2023-53573: clk: rs9: Fix suspend/resume
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
clk: rs9: Fix suspend/resume
Disabling the cache in commit 2ff4ba9e3702 ("clk: rs9: Fix I2C accessors") without removing cache synchronization in resume path results in a kernel panic as map->cache_ops is unset, due to REGCACHE_NONE. Enable flat cache again to support resume again. num_reg_defaults_raw is necessary to read the cache defaults from hardware. Some registers are strapped in hardware and cannot be provided in software.
The Linux kernel CVE team has assigned CVE-2023-53573 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1 with commit 2ff4ba9e37024735f5cefc5ea2a73fc66addfe0e and fixed in 6.1.25 with commit 74f4471ad64214dd5046213ebdd6e0930da7bd2c Issue introduced in 6.1 with commit 2ff4ba9e37024735f5cefc5ea2a73fc66addfe0e and fixed in 6.2.12 with commit a983967602675880d6160a17ace2c0f48717ff33 Issue introduced in 6.1 with commit 2ff4ba9e37024735f5cefc5ea2a73fc66addfe0e and fixed in 6.3 with commit 632e04739c8f45c2d9ca4d4c5bd18d80c2ac9296 Issue introduced in 6.0.8 with commit 94c9e0e11a53e18fcedbf4563ef04a07385b2c89
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-53573
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-renesas-pcie.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/74f4471ad64214dd5046213ebdd6e0930da7bd2c https://git.kernel.org/stable/c/a983967602675880d6160a17ace2c0f48717ff33 https://git.kernel.org/stable/c/632e04739c8f45c2d9ca4d4c5bd18d80c2ac9296