i2c: imx: fix clock and pinctrl state inconsistency in runtime PM
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 8783fb8031799f1230997c16df8c8dce9fcd1841, Kernel 9fa82cf393bafc7bd7ca15c1d5cbd5b57ab9de1d and Kernel c8f5269c1bf505847bc7dbb92054594790114de6.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.14, >=576eba03c99435380d155e5f71d5d7603b9178f6 <8783fb8031799f1230997c16df8c8dce9fcd1841, >=576eba03c99435380d155e5f71d5d7603b9178f6 <9fa82cf393bafc7bd7ca15c1d5cbd5b57ab9de1d, >=576eba03c99435380d155e5f71d5d7603b9178f6 <c8f5269c1bf505847bc7dbb92054594790114de6 | 8783fb8031799f1230997c16df8c8dce9fcd1841, 9fa82cf393bafc7bd7ca15c1d5cbd5b57ab9de1d, c8f5269c1bf505847bc7dbb92054594790114de6 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket