{"id":"CVE-2026-98397","revision":"1b9191d2fbea40f9a0928504b2f67198","records":[{"revision":"1b9191d2fbea40f9a0928504b2f67198","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-98397","aliases":[],"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().","state":0,"publishedAt":"2026-10-14T13:25:59.081+00:00","modifiedAt":"2026-10-19T09:18:50.767+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/platform/x86/x86-android-tablets/core.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"1448c2d2ca5cc7f4ea6694e6bc809946de0a751c\",\n                            \"lessThan\": \"c62b6e081119f2ab03cfcafde1f83c0f50e8e726\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1448c2d2ca5cc7f4ea6694e6bc809946de0a751c\",\n                            \"lessThan\": \"144113b0a70fa18033a747ee5db6803308f7688c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/platform/x86/x86-android-tablets/core.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"7.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"7.2\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.7\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/c62b6e081119f2ab03cfcafde1f83c0f50e8e726","https://git.kernel.org/stable/c/144113b0a70fa18033a747ee5db6803308f7688c"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98397","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98397","identifiers":["CVE-2026-98397"]},"retained":false,"historicalAffected":[]}],"coverage":[]}