CVE-2026-53344: pinctrl: mcp23s08: Initialize mcp->dev and mcp->addr before regmap init
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
pinctrl: mcp23s08: Initialize mcp->dev and mcp->addr before regmap init
Regmap initialization triggers regcache_maple_populate() which attempts SPI read to populate cache. SPI read requires mcp->dev and mcp->addr to be set, without them, NULL pointer dereference occurs during probe.
Move initialization before mcp23s08_spi_regmap_init() call.
The Linux kernel CVE team has assigned CVE-2026-53344 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit f9f4fda15e720686f1b2b436591ab11255e4e85e and fixed in 7.0.13 with commit 3a13bb9540dfd7014c5601608afcbbadbbcfd673 Issue introduced in 6.19 with commit f9f4fda15e720686f1b2b436591ab11255e4e85e and fixed in 7.1 with commit 8473c3a197b57ff01396f7a2ec6ddf65383820d4
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-53344
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/pinctrl/pinctrl-mcp23s08_spi.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/3a13bb9540dfd7014c5601608afcbbadbbcfd673 https://git.kernel.org/stable/c/8473c3a197b57ff01396f7a2ec6ddf65383820d4