Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793705156; b=cZUtvXYdMTrmvtz8XiQcFKIiWtqfP9/9EhrZ/mNucnP7y6AJCtjH2a2vaxSUPHVNjmHJ ILQqRmDxrHspZR+UrlqdlIkPyykeGdJfbm1YFLAjEbW5rG3+FHF6Ul9ObQ3ZDzOny143x rZUTVcUp6cGxgyUWnYqOd/fEvAzYbR7ikiff9/2v0aOQlb0GEEYMlSP/2tBNIR2tnFTZ/ ucS3Wglrm87XP3I9uHUYB8Eh3qaTsa09X4NBFkKbVTMKUw1v+HHHiqB444hDJ0Zz9nM/q idCqz/gXrE2j6My9dEmsCoHbgwSoX+DU6nVZKK+fLEZtAw6tG8dY28tUgJlI9UPM9bw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793705156; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=DJ/FUDx0q78vhsSdvijJms3I3ZQLcuFcnEMNtfFqR+w=; b=PtJQ58jvtSG8XMTKdidBA8MjEHGCt2ymU6lxOoaB/ewoWQcsoGOcbpm/lfm8ZSXqc3y8 W5jCO1UectW4xUIb/qqbz8CgM1cpg7SamMaoJxUybXvN6BqCdmxrpYsAufPQlSLdNcn2m 84CZLpr012hdjcEK2s6hsGQpItRl6MpngM4fQiyC2hKneYNWqhZ7H188CsrgyaT8UsLSx lKi2/ZWYlm3q4ij8cKHLZv5AXOI/0rzYLgPw6DbLG/SdhOvVrAVetfrLV9XLmt1FAUfUJ dKygunRYmU9Pwf2JPL+QqIs0t3aZ0jilRI0PXm3wxcBda0wSNK8Dul18/IgJtLuhPFQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=SunvbN1w; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE9BD606B101 for ; Tue, 3 Nov 2026 11:25:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=SunvbN1w Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C5B81F0181C; Tue, 3 Nov 2026 11:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793705155; bh=DJ/FUDx0q78vhsSdvijJms3I3ZQLcuFcnEMNtfFqR+w=; h=From:To:Cc:Subject:Date:Reply-To; b=SunvbN1wklIta7sLMVVRL86AbtZV2XP/zGGw/hnbzI/4oZqk3DwUAUzsA17WTQC8G Fu0oqsYNz82b4bA3SCczl9Y6OALvkSo3+PzS/BFUEAFqUJ1L1tkhLPF++K39VjAzou Jdt3jYfjQhD5CiTg6Xbu1LOC1AtXkylMBhLk7+oQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99248: i2c: xiic: restore non-managed runtime PM to fix clk WARN flood Date: Tue, 3 Nov 2026 12:18:47 +0100 Message-ID: <2026110345-CVE-2026-99248-dc54@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3696; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9QfPGC0QN8s5RvwfLsgGmRG6/n/6Hn3C6yb5XfcpJEo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvD4vWPrBJWVnTf9Jlad6O6xY3zrgz70v9N3Pd+3kK5 xWX+DDO6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ5AowLNj223rPXkfO+I2r 102YriD+8+C8K4cY5udLCcy+WWPENYfdVPXQdjve6za/cgE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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(). The Linux kernel CVE team has assigned CVE-2026-99248 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 50c63491ff267f2860a6d8cb70c9a30ab701b9d3 and fixed in 7.2.13 with commit 47e105bdc863f2b320f9c05c80a63d3b83312700 Issue introduced in 7.1 with commit 50c63491ff267f2860a6d8cb70c9a30ab701b9d3 and fixed in 7.3 with commit d33373c565af9c8a28776af02bd20ba6e5724211 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-99248 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-xiic.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/47e105bdc863f2b320f9c05c80a63d3b83312700 https://git.kernel.org/stable/c/d33373c565af9c8a28776af02bd20ba6e5724211