CVE-2026-99248

i2c: xiic: restore non-managed runtime PM to fix clk WARN flood

Published Nov 3, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

i2c: xiic: restore non-managed runtime PM to fix clk WARN flood

The devres conversion replaced manual pm_runtime_enable()/disable() with
devm_pm_runtime_set_active_enabled() and dropped the remove-time runtime
PM teardown. The managed release tears runtime PM down in the wrong
order: it calls pm_runtime_dont_use_autosuspend() before
pm_runtime_disable(), i.e. while runtime PM is still enabled, and devres
is LIFO so the devm_clk_get_enabled() release runs afterwards.

At remove(), pm_runtime_put_sync() leaves the device active with the
autosuspend timer armed. Clearing use_autosuspend then makes rpm_idle()
suspend immediately, and xiic_i2c_runtime_suspend() clk_disable()s the
clock. The later devm_clk_get_enabled() release clk_disable_unprepare()s
the already-disabled clock, so clk_core_disable() WARNs ("clkN already
disabled") on every teardown.

Drop the managed helper and restore the non-managed runtime PM setup and
teardown, so runtime PM is enabled once in probe and disabled once in
remove and the clock enable count stays balanced.

Order the remove teardown so runtime PM is disabled before the usage
count is dropped: pm_runtime_disable() followed by pm_runtime_put_noidle()
instead of pm_runtime_put_sync(). Dropping the count first with autosuspend
still enabled arms the autosuspend timer, and a preemption before
pm_runtime_disable() lets it expire, suspend the device and clk_disable()
the clock, which the devm release then disables again - the same WARN.

Restore the non-managed IRQ request as well. The probe error paths now
unwind runtime PM by hand via goto, and a devm-registered handler is only
freed later during devres unwind, so it would stay live across the manual
teardown (and across any future failing step added after it). Request the
IRQ with request_threaded_irq() and free it explicitly in the probe error
path and in remove. The probe error path also clears use_autosuspend, to
match the teardown in remove().

Analysis

AI-generated

Technical impact

This kernel change addresses a flaw where the runtime power‑management (PM) teardown order was incorrect, causing repeated warning messages about the clock already being disabled during device removal. The bug originates from replacing manual pm_runtime_enable/disable calls with a managed helper that drops the runtime PM teardown step. As a result, the system logs a warning each time a device is removed, which may inflate log sizes but does not expose data, allow privilege escalation, or enable code execution. The issue results from improper resource release sequencing rather than an exploitable weakness.

Affected Systems

The affected products are all Linux kernel builds that include the i2c:xiic driver (Linux kernel). No specific version list is provided; the fix applies to any kernel that has applied the referenced commit replacing the managed helper with a non‑managed runtime PM setup.

Risk and Exploitability

Because the CVSS score and EPSS are not provided, the exploitability of this flaw is not considered high; it is primarily a stability issue. The bug does not create an access control or code execution path. No known exploits exist, and the issue is not listed in the CISA KEV catalog. The only risk is unnecessary warning noise in logs and potential confusion for operators. The likely attack vector is device driver removal during normal operation, but no security impact follows from this action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the patch shown in the referenced commit references, which restores non‑managed runtime PM management and corrects the teardown order.
  • If an immediate kernel update is not feasible, temporarily suppress or hide the “clk core disable” warning messages by adjusting the kernel log level or disabling the warning filter for the affected driver to prevent log flooding.
  • Verify that devices using the i2c:xiic driver are properly removed, ensuring that runtime PM counts are balanced and the runtime PM is disabled before the usage counter is dropped. Log monitoring should confirm that the warning no longer appears after removal.

Generated by OpenCVE AI on November 3, 2026 at 12:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: i2c: xiic: restore non-managed runtime PM to fix clk WARN flood The devres conversion replaced manual pm_runtime_enable()/disable() with devm_pm_runtime_set_active_enabled() and dropped the remove-time runtime PM teardown. The managed release tears runtime PM down in the wrong order: it calls pm_runtime_dont_use_autosuspend() before pm_runtime_disable(), i.e. while runtime PM is still enabled, and devres is LIFO so the devm_clk_get_enabled() release runs afterwards. At remove(), pm_runtime_put_sync() leaves the device active with the autosuspend timer armed. Clearing use_autosuspend then makes rpm_idle() suspend immediately, and xiic_i2c_runtime_suspend() clk_disable()s the clock. The later devm_clk_get_enabled() release clk_disable_unprepare()s the already-disabled clock, so clk_core_disable() WARNs ("clkN already disabled") on every teardown. Drop the managed helper and restore the non-managed runtime PM setup and teardown, so runtime PM is enabled once in probe and disabled once in remove and the clock enable count stays balanced. Order the remove teardown so runtime PM is disabled before the usage count is dropped: pm_runtime_disable() followed by pm_runtime_put_noidle() instead of pm_runtime_put_sync(). Dropping the count first with autosuspend still enabled arms the autosuspend timer, and a preemption before pm_runtime_disable() lets it expire, suspend the device and clk_disable() the clock, which the devm release then disables again - the same WARN. Restore the non-managed IRQ request as well. The probe error paths now unwind runtime PM by hand via goto, and a devm-registered handler is only freed later during devres unwind, so it would stay live across the manual teardown (and across any future failing step added after it). Request the IRQ with request_threaded_irq() and free it explicitly in the probe error path and in remove. The probe error path also clears use_autosuspend, to match the teardown in remove().
Title i2c: xiic: restore non-managed runtime PM to fix clk WARN flood
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 3, 2026, 11:18 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 3, 2026, 12:17 PM
Modified
Nov 3, 2026, 12:17 PM