{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "3904b28efb2c780c23dcddfb87e07fe0230661e5"
            },
            {
              "fixed": "22487ef85f6dd9499ddf49b85a08afc50a3f1992"
            },
            {
              "fixed": "caec338f91469f0a70b68165185afa3abc994545"
            },
            {
              "fixed": "051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7"
            },
            {
              "fixed": "2a4537653d200fda2a8516083459f8ff6194f8fc"
            },
            {
              "fixed": "92f18aa86302fe83e0726a1191015f427d4ff056"
            },
            {
              "fixed": "cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c"
            },
            {
              "fixed": "59a317f8215674c8330817770497301bfb2c1b99"
            },
            {
              "fixed": "4c05799449108fb0e0a6bd30e65fffc71e60db4d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.10.0"
            },
            {
              "fixed": "5.10.253"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.203"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.168"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.134"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.81"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.22"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.12"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31761.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: gyro: mpu3050: Move iio_device_register() to correct location\n\niio_device_register() should be at the end of the probe function to\nprevent race conditions.\n\nPlace iio_device_register() at the end of the probe function and place\niio_device_unregister() accordingly.",
  "id": "CVE-2026-31761",
  "modified": "2026-07-08T05:38:48.520258464Z",
  "published": "2026-05-01T14:14:53.223Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/22487ef85f6dd9499ddf49b85a08afc50a3f1992"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2a4537653d200fda2a8516083459f8ff6194f8fc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4c05799449108fb0e0a6bd30e65fffc71e60db4d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/59a317f8215674c8330817770497301bfb2c1b99"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/92f18aa86302fe83e0726a1191015f427d4ff056"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/caec338f91469f0a70b68165185afa3abc994545"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31761.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31761"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "iio: gyro: mpu3050: Move iio_device_register() to correct location"
}