Skip to contentSkip to conversation

CVE-2026-31762: iio: gyro: mpu3050: Fix irq resource leak

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

lore
Share & tools
lore
#0 lore raw

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

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

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

iio: gyro: mpu3050: Fix irq resource leak

The interrupt handler is setup but only a few lines down if iio_trigger_register() fails the function returns without properly releasing the handler.

Add cleanup goto to resolve resource leak.

Detected by Smatch:
drivers/iio/gyro/mpu3050-core.c:1128 mpu3050_trigger_probe() warn:
'irq' from request_threaded_irq() not released on lines: 1124.

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

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

	Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 5.10.253 with commit beb23092571e627190f23da4bb8548065cacd89c
	Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 5.15.203 with commit 658d9deb45d5032baf388ac51991d1e789157334
	Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.1.168 with commit 889253494ec73d60bd47c0518f8fe3a748520d5b
	Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.6.134 with commit 8f237c408f3007d7d9667623ffb41a9e9d661ee9
	Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.12.81 with commit b52fd1644ad2c4e96bbec97543a966d7ad8f21ea
	Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.18.22 with commit 3a8e68d65a443de05061818823037931674740e0
	Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.19.12 with commit e66215fc1878357d5c980066e650f542330524af
	Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 7.0 with commit 4216db1043a3be72ef9c2b7b9f393d7fa72496e6

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

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/iio/gyro/mpu3050-core.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/beb23092571e627190f23da4bb8548065cacd89c
	https://git.kernel.org/stable/c/658d9deb45d5032baf388ac51991d1e789157334
	https://git.kernel.org/stable/c/889253494ec73d60bd47c0518f8fe3a748520d5b
	https://git.kernel.org/stable/c/8f237c408f3007d7d9667623ffb41a9e9d661ee9
	https://git.kernel.org/stable/c/b52fd1644ad2c4e96bbec97543a966d7ad8f21ea
	https://git.kernel.org/stable/c/3a8e68d65a443de05061818823037931674740e0
	https://git.kernel.org/stable/c/e66215fc1878357d5c980066e650f542330524af
	https://git.kernel.org/stable/c/4216db1043a3be72ef9c2b7b9f393d7fa72496e6