{"id":"CVE-2026-31527","state":"PUBLISHED","title":"driver core: platform: use generic driver_override infrastructure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndriver core: platform: use generic driver_override infrastructure\n\nWhen a driver is probed through __driver_attach(), the bus' match()\ncallback is called without the device lock held, thus accessing the\ndriver_override field without a lock, which can cause a UAF.\n\nFix this by using the driver-core driver_override infrastructure taking\ncare of proper locking internally.\n\nNote that calling match() from __driver_attach() without the device lock\nheld is intentional. [1]","publishedAt":"2026-04-22T13:54:40.485Z","updatedAt":"2026-06-01T16:11:39.964Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"492349e5e4a369a8b62781100a3ade470bf1ce6b","versionType":"git"},{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"9a6086d2a828dd2ff74cf9abcae456670febd71f","versionType":"git"},{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"7c02a9bd7d14a89065fcf672b86d8e1d1a41d3b1","versionType":"git"},{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"edee7ee5a14c3b33f6d54641f5af5c5e9180992d","versionType":"git"},{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"2b38efc05bf7a8568ec74bfffea0f5cfa62bc01d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/base/platform.c","drivers/bus/simple-pm-bus.c","drivers/clk/imx/clk-scu.c","drivers/slimbus/qcom-ngd-ctrl.c","include/linux/platform_device.h","sound/soc/samsung/i2s.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.17","versionType":"semver"},{"version":"6.6.142","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.80","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.21","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.11","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/base/platform.c","drivers/bus/simple-pm-bus.c","drivers/clk/imx/clk-scu.c","drivers/slimbus/qcom-ngd-ctrl.c","include/linux/platform_device.h","sound/soc/samsung/i2s.c"]}],"references":["https://git.kernel.org/stable/c/492349e5e4a369a8b62781100a3ade470bf1ce6b","https://git.kernel.org/stable/c/9a6086d2a828dd2ff74cf9abcae456670febd71f","https://git.kernel.org/stable/c/7c02a9bd7d14a89065fcf672b86d8e1d1a41d3b1","https://git.kernel.org/stable/c/edee7ee5a14c3b33f6d54641f5af5c5e9180992d","https://git.kernel.org/stable/c/2b38efc05bf7a8568ec74bfffea0f5cfa62bc01d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31527.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31527","state":"PUBLISHED","datePublished":"2026-04-22T13:54:40.485Z","dateUpdated":"2026-06-01T16:11:39.964Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.111Z"},"containers":{"cna":{"title":"driver core: platform: use generic driver_override infrastructure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndriver core: platform: use generic driver_override infrastructure\n\nWhen a driver is probed through __driver_attach(), the bus' match()\ncallback is called without the device lock held, thus accessing the\ndriver_override field without a lock, which can cause a UAF.\n\nFix this by using the driver-core driver_override infrastructure taking\ncare of proper locking internally.\n\nNote that calling match() from __driver_attach() without the device lock\nheld is intentional. [1]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"492349e5e4a369a8b62781100a3ade470bf1ce6b","versionType":"git"},{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"9a6086d2a828dd2ff74cf9abcae456670febd71f","versionType":"git"},{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"7c02a9bd7d14a89065fcf672b86d8e1d1a41d3b1","versionType":"git"},{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"edee7ee5a14c3b33f6d54641f5af5c5e9180992d","versionType":"git"},{"version":"3d713e0e382e6fcfb4bba1501645b66c129ad60b","status":"affected","lessThan":"2b38efc05bf7a8568ec74bfffea0f5cfa62bc01d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/base/platform.c","drivers/bus/simple-pm-bus.c","drivers/clk/imx/clk-scu.c","drivers/slimbus/qcom-ngd-ctrl.c","include/linux/platform_device.h","sound/soc/samsung/i2s.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.17","versionType":"semver"},{"version":"6.6.142","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.80","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.21","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.11","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/base/platform.c","drivers/bus/simple-pm-bus.c","drivers/clk/imx/clk-scu.c","drivers/slimbus/qcom-ngd-ctrl.c","include/linux/platform_device.h","sound/soc/samsung/i2s.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/492349e5e4a369a8b62781100a3ade470bf1ce6b"},{"url":"https://git.kernel.org/stable/c/9a6086d2a828dd2ff74cf9abcae456670febd71f"},{"url":"https://git.kernel.org/stable/c/7c02a9bd7d14a89065fcf672b86d8e1d1a41d3b1"},{"url":"https://git.kernel.org/stable/c/edee7ee5a14c3b33f6d54641f5af5c5e9180992d"},{"url":"https://git.kernel.org/stable/c/2b38efc05bf7a8568ec74bfffea0f5cfa62bc01d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-01T16:11:39.964Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.6.142"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.12.80"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.18.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.19.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}