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 5AAC13E9F97 for ; Wed, 22 Apr 2026 13:58:37 +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=1776866317; cv=none; b=bXKGMiNwPmRhn/uYkasiiYUfBM3uhkWa6CIOY/5GbGC6GzMVCpETndK4mdph/b9MeguVzmzUWWgJ13sQ+erxBIJm/pNQ0fnlba9QQEdaSxjRFtpMK2Eh3tPWUDrfhg+PfXyNqBzP7CnI9KnotlL5DzzHhWBS/pbmajdzkBFynzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866317; c=relaxed/simple; bh=mkNCfqReNbcfMBt9vTLxdyqKqtVjNLgywZsY+qYMpTg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RfkXOUqpLo9xyD27UP4aTbqjXKx2vx2U2+W0qSTHBkA+taaUvNclmZa0tRz/hOzbu1kF/puHY2JpaBZk379Qx7RTLffu8YC0KxYfnTGvofOwb8B+2wjR7bWyvx9AppbG3ERGhDdaKa/R/+bXOxv6eCuMOFxRO6zKhpQD3qKmo98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NBCdsuBC; 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="NBCdsuBC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 992D8C19425; Wed, 22 Apr 2026 13:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866316; bh=mkNCfqReNbcfMBt9vTLxdyqKqtVjNLgywZsY+qYMpTg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=NBCdsuBCMfCpFtcCNaJwVspXRCOft9uGcNNiLOUlrC9OoLhSna24wqOl3rBdODurj qFx8Ejd0xdZp3dwNCBmoQ2eRvjzVh3xFsFf1SEnxXflobTHZhzK63kufxSoVqKThzv 8XCtHbemacTf1eJ9uz22hoMTZsJVV6eKwfwlPATE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31527: driver core: platform: use generic driver_override infrastructure Date: Wed, 22 Apr 2026 15:55:13 +0200 Message-ID: <2026042214-CVE-2026-31527-a1bc@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=2793; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yIJNWqHlfp+GlaL8zLbwg5EfDfgCcnVVCfELLFo7e/8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLrM16/18ceq/v9lfS51jDmveWk2oFSvXulscP+HG1 2l2M+4odsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBExKYzLOg/0uzK+/zRyeD/ Hv9PNjyOZXupfZ9hwWSJhhl+sUf4Fy6Xf+KsmBbg+6jPGgA= 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: driver core: platform: use generic driver_override infrastructure When a driver is probed through __driver_attach(), the bus' match() callback is called without the device lock held, thus accessing the driver_override field without a lock, which can cause a UAF. Fix this by using the driver-core driver_override infrastructure taking care of proper locking internally. Note that calling match() from __driver_attach() without the device lock held is intentional. [1] The Linux kernel CVE team has assigned CVE-2026-31527 to this issue. Affected and fixed versions =========================== Issue introduced in 3.17 with commit 3d713e0e382e6fcfb4bba1501645b66c129ad60b and fixed in 6.12.80 with commit 9a6086d2a828dd2ff74cf9abcae456670febd71f Issue introduced in 3.17 with commit 3d713e0e382e6fcfb4bba1501645b66c129ad60b and fixed in 6.18.21 with commit 7c02a9bd7d14a89065fcf672b86d8e1d1a41d3b1 Issue introduced in 3.17 with commit 3d713e0e382e6fcfb4bba1501645b66c129ad60b and fixed in 6.19.11 with commit edee7ee5a14c3b33f6d54641f5af5c5e9180992d Issue introduced in 3.17 with commit 3d713e0e382e6fcfb4bba1501645b66c129ad60b and fixed in 7.0 with commit 2b38efc05bf7a8568ec74bfffea0f5cfa62bc01d 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-31527 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/base/platform.c drivers/bus/simple-pm-bus.c drivers/clk/imx/clk-scu.c drivers/slimbus/qcom-ngd-ctrl.c include/linux/platform_device.h sound/soc/samsung/i2s.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/9a6086d2a828dd2ff74cf9abcae456670febd71f https://git.kernel.org/stable/c/7c02a9bd7d14a89065fcf672b86d8e1d1a41d3b1 https://git.kernel.org/stable/c/edee7ee5a14c3b33f6d54641f5af5c5e9180992d https://git.kernel.org/stable/c/2b38efc05bf7a8568ec74bfffea0f5cfa62bc01d