# CVE-2026-99248: i2c: xiic: restore non-managed runtime PM to fix clk WARN flood


- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 3 Nov 2026
- **Updated:** 3 Nov 2026
- **Also known as:** DEBIAN-CVE-2026-99248, GHSA-8jv9-r9q8-jx4q, UBUNTU-CVE-2026-99248

## What is CVE-2026-99248?

CVE-2026-99248 is a vulnerability in Linux, published on 3 Nov 2026. 

### Official 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().

## Which versions are affected by CVE-2026-99248?


## How do I fix CVE-2026-99248?

Upgrade to a fixed version.

## Is CVE-2026-99248 being exploited?

There is no known exploitation of CVE-2026-99248 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-99248 and fix it if it is affected.

What it is: CVE-2026-99248 is a vulnerability in Linux, published on 3 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-99248 in the wild and no public exploit code.

Affected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-99248/ (Markdown: https://insights.sbomify.com/CVE-2026-99248/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-99248
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99248
- OSV: https://osv.dev/vulnerability/CVE-2026-99248

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-99248/
Summaries are generated and may contain mistakes; the official description above is the record.
