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=1795100914; b=K+uMHZqoGIpCqjn1iqU2s8T04/pc7EHXVfY6x9E/V4WNFhd7Qk35OFHJU4v2srRzulzs VEOsh+bgUy9Vaao0gS9xjgYEpct/QpztAsC9JnI5MCqCpvNZwkFnoGJVok61fI6t1cNkm VH+q3Rc+A6ewyJQevlXxsMC3iAqWBQVl1Y6nxolQyR1t0Y6iD7+0i2glDAUu04IRbWMar vh7cssSaihQCDBzqEO/nGYnMIPy9Zts4LEXX5ZkNVzm0NIWCsJmyweLpXyK2Mq1VtgJgB NSrisjmEN6ckverKWzeDnjHQyOjUbP8s1de6SgQAjtGMG6fly8NasvIkzHwkb5RiXQg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100914; 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=9S4wOqZm6zHIDPT619girr2AWz5b9Io28oEgmZ0a258=; b=A5VrU/fKO4rqYiMmYT0TwJWuTscTqDv3I+jhWKodspIbv2ZA7dNCHfQVaqndPFnLHYwm laAl2oheYj3UUiN8Qq90AHD3v5BOxoZq/6gXQIHL42C77m7p2I3slL6UMzjO+B+Hqukvl +ik4l05Tt5AbiR+xreb+ZEJ/oXW2Vkcc1/fEUlrS+O6n+1BJswDBggnzaDnK2vhcbed7w nQDbEtt3iLjKdX88IobP3S/gDWjE0TSVd8yQt1ZsL4LCGbmPfAkBaizY0cS0jCtqB7Zk6 DHGWFLabS/IzK1sa8gE2npbB/KSEzNGmw95e2qDnZJRvj2zQBS4I25DIfCyv67XKC+w== 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=cSH6m7ZN; 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 14261606A7D4 for ; Thu, 19 Nov 2026 15:08:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=cSH6m7ZN Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1422C1F000C5; Thu, 19 Nov 2026 15:08:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100913; bh=9S4wOqZm6zHIDPT619girr2AWz5b9Io28oEgmZ0a258=; h=From:To:Cc:Subject:Date:Reply-To; b=cSH6m7ZNPNBwuwhVBI6bmk+AsT7tXCMVco6AkufTfJUmxhf9C+qyPXMKJcBcHYjV8 UFpTvmsk58ohgcjALK1CFqQ2xlr0wGt5jH12yrQxacLUa3LSImIOKbwN3sfX+V8jnF ZxqieiKLBt2citN2YC2PkqgdyBrKaZMy7Jpl2x1c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99527: spmi: Fix potential use-after-free by grabbing of_node reference Date: Thu, 19 Nov 2026 15:27:05 +0100 Message-ID: <2026111921-CVE-2026-99527-1b13@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=2559; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/SHydKEpXj7PjT3n4gVLym/M6/mwHS+wtAqpwk1odHM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aZau6z53z278vmxpavTNhta2ao9XbM5qkDrc+MNL e8qT48zHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRHVMY5iceLzDe8Y5fmT/5 4C/dqXysDw3+6DPMLzLodNV4Zpo+M1XVnHdRe4vkXCcpAA== 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: spmi: Fix potential use-after-free by grabbing of_node reference As noticed by Sashiko during a review run of an unrelated patch, in of_spmi_register_devices(), for_each_available_child_of_node() is used to loop through children, and to also assign a node to a newly created SPMI child device. Problem is that the refcount is dropped at every iteration so, in the specific case of DT overlays, a use-after-free may occur when an overlay is dynamically unloaded! To resolve this, increase the of_node refcount when assigning (in function of_spmi_register_devices) and release the reference in spmi_device_remove(). The Linux kernel CVE team has assigned CVE-2026-99527 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit bc32bbd0401170853b479645002df52f849f48fe and fixed in 6.18.61 with commit b5e5d035abd1b49ecc9c85320fd6dfcc57ef9c79 Issue introduced in 6.14 with commit bc32bbd0401170853b479645002df52f849f48fe and fixed in 7.3.2 with commit 5653608781a660485d5e9be48a1d06025c4b97cf Issue introduced in 6.14 with commit bc32bbd0401170853b479645002df52f849f48fe and fixed in 7.4-rc1 with commit f7aa9de4f2b197cdd704cdc476901b68ee128433 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-99527 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/spmi/spmi.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/b5e5d035abd1b49ecc9c85320fd6dfcc57ef9c79 https://git.kernel.org/stable/c/5653608781a660485d5e9be48a1d06025c4b97cf https://git.kernel.org/stable/c/f7aa9de4f2b197cdd704cdc476901b68ee128433