Skip to contentSkip to conversation

CVE-2023-54009: i2c: cadence: cdns_i2c_master_xfer(): Fix runtime PM leak on error path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 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:

i2c: cadence: cdns_i2c_master_xfer(): Fix runtime PM leak on error path

The cdns_i2c_master_xfer() function gets a runtime PM reference when the function is entered. This reference is released when the function is exited. There is currently one error path where the function exits directly, which leads to a leak of the runtime PM reference.

Make sure that this error path also releases the runtime PM reference.

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

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

	Issue introduced in 5.8 with commit 1a351b10b9671fc2fac767c40a1c4373b9bf5092 and fixed in 5.10.180 with commit fd7bf900c3215c77f6d779d1532faa22b79f2430
	Issue introduced in 5.8 with commit 1a351b10b9671fc2fac767c40a1c4373b9bf5092 and fixed in 5.15.111 with commit 2d65599ad1e4f195bbb80752cd5cbc2f1a018dba
	Issue introduced in 5.8 with commit 1a351b10b9671fc2fac767c40a1c4373b9bf5092 and fixed in 6.1.28 with commit a712b5a95270e62209f5c2201c774f708f75234e
	Issue introduced in 5.8 with commit 1a351b10b9671fc2fac767c40a1c4373b9bf5092 and fixed in 6.2.15 with commit d0dc6553b5f2b1272c01b0eba5fe2fd89cc59f44
	Issue introduced in 5.8 with commit 1a351b10b9671fc2fac767c40a1c4373b9bf5092 and fixed in 6.3.2 with commit 5b14d7c6ba0ba5d167f5ef588ca6dfe1af6dd0aa
	Issue introduced in 5.8 with commit 1a351b10b9671fc2fac767c40a1c4373b9bf5092 and fixed in 6.4 with commit ae1664f04f504a998737f5bb563f16b44357bcca

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

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/i2c/busses/i2c-cadence.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/fd7bf900c3215c77f6d779d1532faa22b79f2430
	https://git.kernel.org/stable/c/2d65599ad1e4f195bbb80752cd5cbc2f1a018dba
	https://git.kernel.org/stable/c/a712b5a95270e62209f5c2201c774f708f75234e
	https://git.kernel.org/stable/c/d0dc6553b5f2b1272c01b0eba5fe2fd89cc59f44
	https://git.kernel.org/stable/c/5b14d7c6ba0ba5d167f5ef588ca6dfe1af6dd0aa
	https://git.kernel.org/stable/c/ae1664f04f504a998737f5bb563f16b44357bcca