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 792FC29405 for ; Mon, 27 Apr 2026 17:32:44 +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=1777311164; cv=none; b=eRdSKnNMvXnnzPRhWSzTeyL2aOAIhwNpM3XNgI/0OT3CR3EgHXHQZu6y+2enyLXSoS23KpRbRpZZmcbW1rUGycyXCo7OZxLbufOAMm0e500L/py7maVxSXO2QlYBpB0floHbi4N0wLrIt5VMtFMCNvfj2N0HTDO/j1Kdfu1oNPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777311164; c=relaxed/simple; bh=kenGG4ECz7NbjHpc9Fh+beO6KcUS602+Yfx1qNIB4Qc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DH9qS48BR0zLHpLlg3i5RbzqKXez7wiSKruS14Jc0o6orOXDgYz02dO9BfwPoetljW05lSs4UM6hK8EErLKn63LDJgF18ws22SQGXeulc6MrWf1lWhrKJy8h2ejgUVUxNe/jca2TJ9n9hYtqBh/XPaxTS5zJgtWejYPN8f/AOtQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qfqpv1qR; 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="qfqpv1qR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC6BDC19425; Mon, 27 Apr 2026 17:32:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777311164; bh=kenGG4ECz7NbjHpc9Fh+beO6KcUS602+Yfx1qNIB4Qc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=qfqpv1qRuAit/SsZ3eX+c4yMM/9n8oW/HTqaLgpWJkaKOJtUwk3uXoMSg7xEY0w8x uquHf/y5/QXwj4Rjb2xFnO43xYUmXxg49xgb4U6F/Lb6sZXs6oAehrajvLcgmj8dHt gk+9N8kK4150AZtqcjx6/aAh8PPNe7kaXgW6a5YQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31687: gpio: omap: do not register driver in probe() Date: Mon, 27 Apr 2026 11:32:07 -0600 Message-ID: <2026042706-CVE-2026-31687-ce28@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=4574; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=u4LasVMfxxSQaoVTRmYo8660p9/gntrGlwTwqE+SaTE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnv5047+2/vwYLbxexsC9/Y55WFbw2KkZJR8hdyd/6l4 G3/tzinI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayRZNhvkNL3/Gshwot8vNl na8bz9xr1O3LyTDPpvCibB7343kZ8z+VNzouLDjwJ6YdAA== 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: gpio: omap: do not register driver in probe() Commit 11a78b794496 ("ARM: OMAP: MPUIO wake updates") registers the omap_mpuio_driver from omap_mpuio_init(), which is called from omap_gpio_probe(). However, it neither makes sense to register drivers from probe() callbacks of other drivers, nor does the driver core allow registering drivers with a device lock already being held. The latter was revealed by commit dc23806a7c47 ("driver core: enforce device_lock for driver_match_device()") leading to a potential deadlock condition described in [1]. Additionally, the omap_mpuio_driver is never unregistered from the driver core, even if the module is unloaded. Hence, register the omap_mpuio_driver from the module initcall and unregister it in module_exit(). The Linux kernel CVE team has assigned CVE-2026-31687 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.22 with commit 11a78b7944963a8b052be46108d07a3ced9e2762 and fixed in 5.10.251 with commit 57bcd3feffa79544c73a1a1872472389a391cc79 Issue introduced in 2.6.22 with commit 11a78b7944963a8b052be46108d07a3ced9e2762 and fixed in 5.15.201 with commit 86588916e1887a5edb8a9161cd7ae81e47a7ed25 Issue introduced in 2.6.22 with commit 11a78b7944963a8b052be46108d07a3ced9e2762 and fixed in 6.1.164 with commit a29215961d833f4de33a09c3964d31ebc6083033 Issue introduced in 2.6.22 with commit 11a78b7944963a8b052be46108d07a3ced9e2762 and fixed in 6.6.125 with commit 1c04c3a4de8d4bcb9202f94c44f26c57c2572308 Issue introduced in 6.6.125 with commit adc1796eced46b48e23ec200a219d635f33a38ee and fixed in 6.6.126 with commit 673dafb9a86349a12a93151fd467625614dc7e12 Issue introduced in 2.6.22 with commit 11a78b7944963a8b052be46108d07a3ced9e2762 and fixed in 6.12.72 with commit 2211d77892913804d16c28c7415b82804ab1e54c Issue introduced in 6.12.72 with commit cd0e0a76e40c2e77bcfc88291d00dca22b00158e and fixed in 6.12.73 with commit a7fa9460b86f810913b6779461d0448e7c11214c Issue introduced in 2.6.22 with commit 11a78b7944963a8b052be46108d07a3ced9e2762 and fixed in 6.18.11 with commit 32f08c3ddd6dda6cbb6c9d715de10f21dccde50f Issue introduced in 6.18.11 with commit 8d76b2488eb3cc0717ab81b60622cff4a5f90f79 and fixed in 6.18.12 with commit 53a76425e0764421ba93bb9045d2e454667d5687 Issue introduced in 2.6.22 with commit 11a78b7944963a8b052be46108d07a3ced9e2762 and fixed in 6.19 with commit 730e5ebff40c852e3ea57b71bf02a4b89c69435f Issue introduced in 6.19.1 with commit bc82e5f4d7dc8237ae8cabc73aa46fc93c85d98c and fixed in 6.19.2 with commit 03db4dc9ad6eb91e640b517e00373ce877682854 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-31687 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/gpio/gpio-omap.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/57bcd3feffa79544c73a1a1872472389a391cc79 https://git.kernel.org/stable/c/86588916e1887a5edb8a9161cd7ae81e47a7ed25 https://git.kernel.org/stable/c/a29215961d833f4de33a09c3964d31ebc6083033 https://git.kernel.org/stable/c/1c04c3a4de8d4bcb9202f94c44f26c57c2572308 https://git.kernel.org/stable/c/673dafb9a86349a12a93151fd467625614dc7e12 https://git.kernel.org/stable/c/2211d77892913804d16c28c7415b82804ab1e54c https://git.kernel.org/stable/c/a7fa9460b86f810913b6779461d0448e7c11214c https://git.kernel.org/stable/c/32f08c3ddd6dda6cbb6c9d715de10f21dccde50f https://git.kernel.org/stable/c/53a76425e0764421ba93bb9045d2e454667d5687 https://git.kernel.org/stable/c/03db4dc9ad6eb91e640b517e00373ce877682854 https://git.kernel.org/stable/c/730e5ebff40c852e3ea57b71bf02a4b89c69435f