{"id":"CVE-2026-98397","state":"PUBLISHED","title":"platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown\n\nIn gpio_secondary_fwnode_init(), acpi_bus_find_device_by_name() returns a\ndevice reference, but the local dev variable is declared with\n__free(put_device), dropping the reference at the end of each iteration.\nMeanwhile, devm_add_action_or_reset() saves the dev pointer for\ngpio_secondary_unset() without incrementing its reference count, which\ncould lead to a use-after-free during driver teardown if the device is\nreleased in the interim.\n\nAcquire an explicit device reference with get_device() when registering\nthe devres action, and drop it with put_device() inside\ngpio_secondary_unset().","publishedAt":"2026-10-14T13:25:59.081Z","updatedAt":"2026-10-19T09:18:50.767Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1448c2d2ca5cc7f4ea6694e6bc809946de0a751c","status":"affected","lessThan":"c62b6e081119f2ab03cfcafde1f83c0f50e8e726","versionType":"git"},{"version":"1448c2d2ca5cc7f4ea6694e6bc809946de0a751c","status":"affected","lessThan":"144113b0a70fa18033a747ee5db6803308f7688c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/x86-android-tablets/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/x86-android-tablets/core.c"]}],"references":["https://git.kernel.org/stable/c/c62b6e081119f2ab03cfcafde1f83c0f50e8e726","https://git.kernel.org/stable/c/144113b0a70fa18033a747ee5db6803308f7688c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98397.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98397","state":"PUBLISHED","datePublished":"2026-10-14T13:25:59.081Z","dateUpdated":"2026-10-19T09:18:50.767Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.346Z"},"containers":{"cna":{"title":"platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown\n\nIn gpio_secondary_fwnode_init(), acpi_bus_find_device_by_name() returns a\ndevice reference, but the local dev variable is declared with\n__free(put_device), dropping the reference at the end of each iteration.\nMeanwhile, devm_add_action_or_reset() saves the dev pointer for\ngpio_secondary_unset() without incrementing its reference count, which\ncould lead to a use-after-free during driver teardown if the device is\nreleased in the interim.\n\nAcquire an explicit device reference with get_device() when registering\nthe devres action, and drop it with put_device() inside\ngpio_secondary_unset()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1448c2d2ca5cc7f4ea6694e6bc809946de0a751c","status":"affected","lessThan":"c62b6e081119f2ab03cfcafde1f83c0f50e8e726","versionType":"git"},{"version":"1448c2d2ca5cc7f4ea6694e6bc809946de0a751c","status":"affected","lessThan":"144113b0a70fa18033a747ee5db6803308f7688c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/x86-android-tablets/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/x86/x86-android-tablets/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c62b6e081119f2ab03cfcafde1f83c0f50e8e726"},{"url":"https://git.kernel.org/stable/c/144113b0a70fa18033a747ee5db6803308f7688c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:18:50.767Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.2.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}