---
id: CVE-2026-31761
title: 'iio: gyro: mpu3050: Move iio_device_register() to correct location'
summary: |-
  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 …
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 <
    22487ef85f6dd9499ddf49b85a08afc50a3f1992
  - >-
    Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 <
    caec338f91469f0a70b68165185afa3abc994545
  - >-
    Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 <
    051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7
  - >-
    Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 <
    2a4537653d200fda2a8516083459f8ff6194f8fc
  - >-
    Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 <
    92f18aa86302fe83e0726a1191015f427d4ff056
  - >-
    Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 <
    cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c
  - >-
    Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 <
    59a317f8215674c8330817770497301bfb2c1b99
  - >-
    Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 <
    4c05799449108fb0e0a6bd30e65fffc71e60db4d
  - Linux 4.10
published: '2026-05-01'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T08:48:15.294Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-31761'
references:
  - url: 'https://git.kernel.org/stable/c/22487ef85f6dd9499ddf49b85a08afc50a3f1992'
  - url: 'https://git.kernel.org/stable/c/caec338f91469f0a70b68165185afa3abc994545'
  - url: 'https://git.kernel.org/stable/c/051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7'
  - url: 'https://git.kernel.org/stable/c/2a4537653d200fda2a8516083459f8ff6194f8fc'
  - url: 'https://git.kernel.org/stable/c/92f18aa86302fe83e0726a1191015f427d4ff056'
  - url: 'https://git.kernel.org/stable/c/cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c'
  - url: 'https://git.kernel.org/stable/c/59a317f8215674c8330817770497301bfb2c1b99'
  - url: 'https://git.kernel.org/stable/c/4c05799449108fb0e0a6bd30e65fffc71e60db4d'
tags:
  - cve.org
epss: 0.00142
epssPercentile: 0.02901
ingestedAt: '2026-09-08T15:33:26.989Z'
---

## Overview

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.

## Affected

- `Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 < 22487ef85f6dd9499ddf49b85a08afc50a3f1992`
- `Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 < caec338f91469f0a70b68165185afa3abc994545`
- `Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 < 051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7`
- `Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 < 2a4537653d200fda2a8516083459f8ff6194f8fc`
- `Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 < 92f18aa86302fe83e0726a1191015f427d4ff056`
- `Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 < cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c`
- `Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 < 59a317f8215674c8330817770497301bfb2c1b99`
- `Linux >= 3904b28efb2c780c23dcddfb87e07fe0230661e5 < 4c05799449108fb0e0a6bd30e65fffc71e60db4d`
- `Linux 4.10`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
