CVE-2026-53340: i2c: imx: fix clock and pinctrl state inconsistency in runtime PM
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
i2c: imx: fix clock and pinctrl state inconsistency in runtime PM
In i2c_imx_runtime_suspend(), the clock is disabled before switching the pinctrl state to sleep. If pinctrl_pm_select_sleep_state() fails, the runtime suspend is aborted but the clock remains disabled, causing a system crash when the hardware is subsequently accessed.
Fix this by switching the pinctrl state before disabling the clock so that a pinctrl failure leaves the clock enabled and the hardware accessible.
In i2c_imx_runtime_resume(), restore the pinctrl state back to sleep if clk_enable() fails to keep the consistent.
The Linux kernel CVE team has assigned CVE-2026-53340 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.14 with commit 576eba03c99435380d155e5f71d5d7603b9178f6 and fixed in 6.18.36 with commit 9fa82cf393bafc7bd7ca15c1d5cbd5b57ab9de1d Issue introduced in 6.14 with commit 576eba03c99435380d155e5f71d5d7603b9178f6 and fixed in 7.0.13 with commit c8f5269c1bf505847bc7dbb92054594790114de6 Issue introduced in 6.14 with commit 576eba03c99435380d155e5f71d5d7603b9178f6 and fixed in 7.1 with commit 8783fb8031799f1230997c16df8c8dce9fcd1841
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-53340
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-imx.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/9fa82cf393bafc7bd7ca15c1d5cbd5b57ab9de1d https://git.kernel.org/stable/c/c8f5269c1bf505847bc7dbb92054594790114de6 https://git.kernel.org/stable/c/8783fb8031799f1230997c16df8c8dce9fcd1841