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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-01T14:14:53.891Z
- Modified: 2026-11-11T21:10:00.200Z
- Weaknesses: CWE-401
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3904b28efb2c780c23dcddfb87e07fe0230661e5 before beb23092571e627190f23da4bb8548065cacd89c; from 3904b28efb2c780c23dcddfb87e07fe0230661e5 before 658d9deb45d5032baf388ac51991d1e789157334; from 3904b28efb2c780c23dcddfb87e07fe0230661e5 before 889253494ec73d60bd47c0518f8fe3a748520d5b; from 3904b28efb2c780c23dcddfb87e07fe0230661e5 before 8f237c408f3007d7d9667623ffb41a9e9d661ee9; from 3904b28efb2c780c23dcddfb87e07fe0230661e5 before b52fd1644ad2c4e96bbec97543a966d7ad8f21ea; from 3904b28efb2c780c23dcddfb87e07fe0230661e5 before 3a8e68d65a443de05061818823037931674740e0; from 3904b28efb2c780c23dcddfb87e07fe0230661e5 before e66215fc1878357d5c980066e650f542330524af; from 3904b28efb2c780c23dcddfb87e07fe0230661e5 before 4216db1043a3be72ef9c2b7b9f393d7fa72496e6; 4.10 (not affected: before 4.10; from 5.10.253 up to 5.10.*; from 5.15.203 up to 5.15.*; from 6.1.168 up to 6.1.*; from 6.6.134 up to 6.6.*; from 6.12.81 up to 6.12.*; from 6.18.22 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 4.10 before 5.10.253; from 5.11 before 5.15.203; from 5.16 before 6.1.168; from 6.2 before 6.6.134; from 6.7 before 6.12.81; from 6.13 before 6.18.22; from 6.19 before 6.19.12; 7.0

## References

- <https://git.kernel.org/stable/c/beb23092571e627190f23da4bb8548065cacd89c> (patch)
- <https://git.kernel.org/stable/c/658d9deb45d5032baf388ac51991d1e789157334> (patch)
- <https://git.kernel.org/stable/c/889253494ec73d60bd47c0518f8fe3a748520d5b> (patch)
- <https://git.kernel.org/stable/c/8f237c408f3007d7d9667623ffb41a9e9d661ee9> (patch)
- <https://git.kernel.org/stable/c/b52fd1644ad2c4e96bbec97543a966d7ad8f21ea> (patch)
- <https://git.kernel.org/stable/c/3a8e68d65a443de05061818823037931674740e0> (patch)
- <https://git.kernel.org/stable/c/e66215fc1878357d5c980066e650f542330524af> (patch)
- <https://git.kernel.org/stable/c/4216db1043a3be72ef9c2b7b9f393d7fa72496e6> (patch)

## Sources

- CVE List: [CVE-2026-31762](https://www.cve.org/CVERecord?id=CVE-2026-31762), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-31762](https://nvd.nist.gov/vuln/detail/CVE-2026-31762), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31762 · Whole record: https://cve.day/CVE-2026-31762.json · Rebuilt by cve.day 2026-11-25T22:59:20.374Z
