Skip to contentSkip to conversation

CVE-2026-23015: gpio: mpsse: fix reference leak in gpio_mpsse_probe() error paths

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 31

lore
Share & tools
lore
#0 lore raw

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

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

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

gpio: mpsse: fix reference leak in gpio_mpsse_probe() error paths

The reference obtained by calling usb_get_dev() is not released in the gpio_mpsse_probe() error paths. Fix that by using device managed helper functions. Also remove the usb_put_dev() call in the disconnect function since now it will be released automatically.

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

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

	Issue introduced in 6.13 with commit c46a74ff05c0ac76ba11ef21c930c3b447abf31a and fixed in 6.18.6 with commit 7ea26e6dcabc270433b6ded2a1aee85b215d1b28
	Issue introduced in 6.13 with commit c46a74ff05c0ac76ba11ef21c930c3b447abf31a and fixed in 6.19-rc5 with commit 1e876e5a0875e71e34148c9feb2eedd3bf6b2b43

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

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-mpsse.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/7ea26e6dcabc270433b6ded2a1aee85b215d1b28
	https://git.kernel.org/stable/c/1e876e5a0875e71e34148c9feb2eedd3bf6b2b43