Skip to contentSkip to conversation

CVE-2026-31572: i2c: designware: amdisp: Fix resume-probe race condition issue

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

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: designware: amdisp: Fix resume-probe race condition issue

Identified resume-probe race condition in kernel v7.0 with the commit 38fa29b01a6a ("i2c: designware: Combine the init functions"),but this issue existed from the beginning though not detected.

The amdisp i2c device requires ISP to be in power-on state for probe to succeed. To meet this requirement, this device is added to genpd to control ISP power using runtime PM. The pm_runtime_get_sync() called before i2c_dw_probe() triggers PM resume, which powers on ISP and also invokes the amdisp i2c runtime resume before the probe completes resulting in this race condition and a NULL dereferencing issue in v7.0

Fix this race condition by using the genpd APIs directly during probe:
- Call dev_pm_genpd_resume() to Power ON ISP before probe
- Call dev_pm_genpd_suspend() to Power OFF ISP after probe
- Set the device to suspended state with pm_runtime_set_suspended()
- Enable runtime PM only after the device is fully initialized

The Linux kernel CVE team has assigned CVE-2026-31572 to this issue.

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

	Issue introduced in 6.16 with commit d6263c468a761cd4c89887073614394ac48441e1 and fixed in 6.18.21 with commit 83bcea9da91965484df64a6492b89e65d41ab31c
	Issue introduced in 6.16 with commit d6263c468a761cd4c89887073614394ac48441e1 and fixed in 6.19.11 with commit e81f0341754c309e33babea2821eda8f98f0b44c
	Issue introduced in 6.16 with commit d6263c468a761cd4c89887073614394ac48441e1 and fixed in 7.0 with commit e2f1ada8e089dd5a331bcd8b88125ae2af8d188f

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-2026-31572

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-designware-amdisp.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/83bcea9da91965484df64a6492b89e65d41ab31c
	https://git.kernel.org/stable/c/e81f0341754c309e33babea2821eda8f98f0b44c
	https://git.kernel.org/stable/c/e2f1ada8e089dd5a331bcd8b88125ae2af8d188f