Skip to contentSkip to conversation

CVE-2026-53307: pinctrl: pinconf-generic: Fully validate 'pinmux' property

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 26

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: pinconf-generic: Fully validate 'pinmux' property

The pinconf_generic_parse_dt_pinmux() assumes that the 'pinmux' property is not empty when present. This might be not true. With that, the allocator will give a special value in return and not NULL which lead to the crash when trying to access that (invalid) memory. Fix that by fully validating 'pinmux' value, including its length.

The Linux kernel CVE team has assigned CVE-2026-53307 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.15 with commit 7112c05fff83e15726dd60a10248b76474e3cdf9 and fixed in 6.18.33 with commit 6476aac13805721e16439bd71f0e1703a4154517
	Issue introduced in 6.15 with commit 7112c05fff83e15726dd60a10248b76474e3cdf9 and fixed in 7.0.10 with commit b7842b722169359e7ffe4b838d2496e9e72ac996
	Issue introduced in 6.15 with commit 7112c05fff83e15726dd60a10248b76474e3cdf9 and fixed in 7.1 with commit c98324ea7849b6e5baa1774f71709b375a2c2f9e

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-53307

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/pinconf-generic.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/6476aac13805721e16439bd71f0e1703a4154517
	https://git.kernel.org/stable/c/b7842b722169359e7ffe4b838d2496e9e72ac996
	https://git.kernel.org/stable/c/c98324ea7849b6e5baa1774f71709b375a2c2f9e