Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68F6A3C7E1B for ; Wed, 22 Apr 2026 13:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866180; cv=none; b=I2uldTOTbPcca57AlPDngldK6HDz7xKXw2YGZtDBjgQORO5iijk2HR0pyWVlonjWCt3jFUliBw4t4QibxkFLNz9zd8ZoW0Jlc2qZefPT9CbPzzJtTraIo1b7GK91ZR6RVguNvRkev90GevT/mf12O4AD9eEG9XgHCxM8hU6MG0w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866180; c=relaxed/simple; bh=+0IeLOBeveAi+aV/R7HBoLObHhji8a+Btg2tRWdmXW0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CRAO+CzmKDWY2Sn+yA24UlKSwRAZmiF8PkjAgMrGJBSOZMpVrgfxRr/r2LAcDu4iPOx7doBQB5Fix1yj2xCwFQXBOzFK09z1rN5twllDB4Ohc3Yfu+irWPQWKHI+J/SMjciVzlbKjeJ1NJXFEnJP3Lg+wdG+8oBhBiUpVLQeLDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HBanCNgZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HBanCNgZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F202CC19425; Wed, 22 Apr 2026 13:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866180; bh=+0IeLOBeveAi+aV/R7HBoLObHhji8a+Btg2tRWdmXW0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=HBanCNgZVKaj6UJBOf65Eyemua3NMtdEdaUXT6CtGAZUQiewUXkxka1yU5Uj9ZseS zISsltaNExae2QIKNB0gfcE2OkXE8zAurbKcIkv7JefPg4AV9zfB14p8V2Th+Tnhp5 cskUPHLiWISWdDzHK3UGS77sgheIbXFFRHoEP2eo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31486: hwmon: (pmbus/core) Protect regulator operations with mutex Date: Wed, 22 Apr 2026 15:54:32 +0200 Message-ID: <2026042200-CVE-2026-31486-52d4@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3044; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QJ/1LD/TeENtsQ4fQs44uQEGVHACgU83IEe4/LAlhtk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLv1gzlFPspAL68+QDzG5HeJ3zzt9+a9CXq4bL/p/l 2Uu6hbviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlMbGWYn5xk+O72l6I33Nb7 AvO9Pe3Vut8rMyyYw6S85utCk1OK5SHuEoWyHdvvlmYDAA== 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: hwmon: (pmbus/core) Protect regulator operations with mutex The regulator operations pmbus_regulator_get_voltage(), pmbus_regulator_set_voltage(), and pmbus_regulator_list_voltage() access PMBus registers and shared data but were not protected by the update_lock mutex. This could lead to race conditions. However, adding mutex protection directly to these functions causes a deadlock because pmbus_regulator_notify() (which calls regulator_notifier_call_chain()) is often called with the mutex already held (e.g., from pmbus_fault_handler()). If a regulator callback then calls one of the now-protected voltage functions, it will attempt to acquire the same mutex. Rework pmbus_regulator_notify() to utilize a worker function to send notifications outside of the mutex protection. Events are stored as atomics in a per-page bitmask and processed by the worker. Initialize the worker and its associated data during regulator registration, and ensure it is cancelled on device removal using devm_add_action_or_reset(). While at it, remove the unnecessary include of linux/of.h. The Linux kernel CVE team has assigned CVE-2026-31486 to this issue. Affected and fixed versions =========================== Issue introduced in 3.19 with commit ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7 and fixed in 6.18.21 with commit 4e9d723d9f198b86f6882a84c501ba1f39e8d055 Issue introduced in 3.19 with commit ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7 and fixed in 6.19.11 with commit 2c77ae315f3ce9d2c8e1609be74c9358c1fe4e07 Issue introduced in 3.19 with commit ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7 and fixed in 7.0 with commit 754bd2b4a084b90b5e7b630e1f423061a9b9b761 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-31486 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/hwmon/pmbus/pmbus_core.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/4e9d723d9f198b86f6882a84c501ba1f39e8d055 https://git.kernel.org/stable/c/2c77ae315f3ce9d2c8e1609be74c9358c1fe4e07 https://git.kernel.org/stable/c/754bd2b4a084b90b5e7b630e1f423061a9b9b761