{"id":"CVE-2026-31761","state":"PUBLISHED","title":"iio: gyro: mpu3050: Move iio_device_register() to correct location","description":"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.","publishedAt":"2026-05-01T14:14:53.223Z","updatedAt":"2026-10-15T01:18:13.588Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"22487ef85f6dd9499ddf49b85a08afc50a3f1992","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"caec338f91469f0a70b68165185afa3abc994545","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"2a4537653d200fda2a8516083459f8ff6194f8fc","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"92f18aa86302fe83e0726a1191015f427d4ff056","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"59a317f8215674c8330817770497301bfb2c1b99","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"4c05799449108fb0e0a6bd30e65fffc71e60db4d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/gyro/mpu3050-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"5.10.253","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.168","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.134","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.81","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.22","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.12","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/gyro/mpu3050-core.c"]}],"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","https://cert-portal.siemens.com/productcert/html/ssa-082556.html","https://cert-portal.siemens.com/productcert/html/ssa-019113.html","https://cert-portal.siemens.com/productcert/html/ssa-457936.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31761.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31761","state":"PUBLISHED","datePublished":"2026-05-01T14:14:53.223Z","dateUpdated":"2026-10-15T01:18:13.588Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.139Z"},"containers":{"cna":{"title":"iio: gyro: mpu3050: Move iio_device_register() to correct location","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"22487ef85f6dd9499ddf49b85a08afc50a3f1992","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"caec338f91469f0a70b68165185afa3abc994545","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"2a4537653d200fda2a8516083459f8ff6194f8fc","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"92f18aa86302fe83e0726a1191015f427d4ff056","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"59a317f8215674c8330817770497301bfb2c1b99","versionType":"git"},{"version":"3904b28efb2c780c23dcddfb87e07fe0230661e5","status":"affected","lessThan":"4c05799449108fb0e0a6bd30e65fffc71e60db4d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/gyro/mpu3050-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"5.10.253","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.168","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.134","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.81","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.22","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.12","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/gyro/mpu3050-core.c"]}],"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"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:24:59.277Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.10.253"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.15.203"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.1.168"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.6.134"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.12.81"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.18.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.19.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.5","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T01:18:13.588Z"},"x_adpType":"supplier"}]}}}