{"id":"CVE-2026-98397","aliases":["CVE-2026-98397"],"related":[],"kind":"vulnerability","state":"published","title":"platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"}],"published":"2026-10-14T13:25:59.081Z","modified":"2026-10-19T10:18:44.370Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1448c2d2ca5cc7f4ea6694e6bc809946de0a751c","fixed":"c62b6e081119f2ab03cfcafde1f83c0f50e8e726","status":"affected"},{"type":"git","introduced":"1448c2d2ca5cc7f4ea6694e6bc809946de0a751c","fixed":"144113b0a70fa18033a747ee5db6803308f7688c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.2","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c62b6e081119f2ab03cfcafde1f83c0f50e8e726","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/144113b0a70fa18033a747ee5db6803308f7688c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98397","url":"https://www.cve.org/CVERecord?id=CVE-2026-98397","licence":"CVE Terms of Use","modified":"2026-10-19T09:18:50.767Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98397","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98397","licence":"Public domain","modified":"2026-10-19T10:18:44.370Z"}],"updatedAt":"2026-11-25T22:59:44.634Z","epss":{"score":0.00189,"percentile":0.08975,"date":"2026-12-02T12:00:21.000Z"}}