{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-31761",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-31761"
  ],
  "published": "2026-05-01T14:17:31Z",
  "summary": "iio: gyro: mpu3050: Move iio_device_register() to correct location",
  "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.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.168",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-31761"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/22487ef85f6dd9499ddf49b85a08afc50a3f1992"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/caec338f91469f0a70b68165185afa3abc994545"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2a4537653d200fda2a8516083459f8ff6194f8fc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/92f18aa86302fe83e0726a1191015f427d4ff056"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/59a317f8215674c8330817770497301bfb2c1b99"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4c05799449108fb0e0a6bd30e65fffc71e60db4d"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T13:16:28Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The vulnerable paths are exposed through local IIO sysfs attributes and the IIO character device for the MPU3050 sensor, not through a network protocol.\nAC:L - Although this is a probe/remove ordering race, a local attacker can hammer the published IIO interfaces while the device is being registered or torn down; no special heap layout or condition beyond the device being present is required for the vulnerable callbacks to be reached.\nPR:L - A basic local user can reach world-readable IIO sysfs attributes, and typical IIO device deployments expose these sensor interfaces to local users or services. No real init-namespace administrative capability is required for the read-side race.\nUI:N - Exploitation does not require a victim user to open a file or perform another action; the attacker directly accesses the local IIO interfaces.\nS:U - The issue corrupts or misuses kernel objects within the same kernel security authority. It does not cross a VM, IOMMU, or other separate security scope boundary.\nC:H - The old ordering can leave userspace-visible IIO attributes and file operations pointing at freed or partially initialized buffer/trigger state. This use-after-free class can be leveraged for kernel memory disclosure, so confidentiality impact is High.\nI:H - The dangling IIO buffer state includes function-pointer-bearing access structures and kernel object pointers reachable from callbacks. A use-after-free in this context is defensibly exploitable for control-flow hijack or arbitrary kernel memory modification.\nA:H - Even without full exploitation, racing these callbacks against probe or removal can dereference invalid or freed kernel objects and crash or hang the kernel."
    }
  }
}
