Skip to contentSkip to conversation

CVE-2023-53807: clk: clocking-wizard: Fix Oops in clk_wzrd_register_divider()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 9, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

clk: clocking-wizard: Fix Oops in clk_wzrd_register_divider()

Smatch detected this potential error pointer dereference clk_wzrd_register_divider(). If devm_clk_hw_register() fails then it sets "hw" to an error pointer and then dereferences it on the next line. Return the error directly instead.

The Linux kernel CVE team has assigned CVE-2023-53807 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.13 with commit 5a853722eb32188647a541802d51d0db423b9baf and fixed in 5.15.121 with commit 2f276dd9c0f835242836d9f6823035158ce2585c
	Issue introduced in 5.13 with commit 5a853722eb32188647a541802d51d0db423b9baf and fixed in 6.1.39 with commit b35cb0c05b8dafe23ae5e8b605a91b88bcf4aba7
	Issue introduced in 5.13 with commit 5a853722eb32188647a541802d51d0db423b9baf and fixed in 6.3.13 with commit 25dbdfb7b71ef8601d00c6d9a2b1a96de28b30c5
	Issue introduced in 5.13 with commit 5a853722eb32188647a541802d51d0db423b9baf and fixed in 6.4.4 with commit f078a65ebf930f4305e3c415a8338d22391642c9
	Issue introduced in 5.13 with commit 5a853722eb32188647a541802d51d0db423b9baf and fixed in 6.5 with commit 9c632a6396505a019ea6d12b5ab45e659a542a93

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-53807

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/xilinx/clk-xlnx-clock-wizard.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/2f276dd9c0f835242836d9f6823035158ce2585c
	https://git.kernel.org/stable/c/b35cb0c05b8dafe23ae5e8b605a91b88bcf4aba7
	https://git.kernel.org/stable/c/25dbdfb7b71ef8601d00c6d9a2b1a96de28b30c5
	https://git.kernel.org/stable/c/f078a65ebf930f4305e3c415a8338d22391642c9
	https://git.kernel.org/stable/c/9c632a6396505a019ea6d12b5ab45e659a542a93