CVE-2026-98397

Source
https://cve.org/CVERecord?id=CVE-2026-98397
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98397.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98397
Downstream
Published
2026-10-14T13:25:59Z
Modified
2026-10-15T02:47:42Z
Summary
platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown
Details

In the Linux kernel, the following vulnerability has been resolved:

platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown

In gpio_secondary_fwnode_init(), acpi_bus_find_device_by_name() returns a device reference, but the local dev variable is declared with __free(put_device), dropping the reference at the end of each iteration. Meanwhile, devm_add_action_or_reset() saves the dev pointer for gpio_secondary_unset() without incrementing its reference count, which could lead to a use-after-free during driver teardown if the device is released in the interim.

Acquire an explicit device reference with get_device() when registering the devres action, and drop it with put_device() inside gpio_secondary_unset().

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98397.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1448c2d2ca5cc7f4ea6694e6bc809946de0a751c
Fixed
c62b6e081119f2ab03cfcafde1f83c0f50e8e726
Fixed
144113b0a70fa18033a747ee5db6803308f7688c

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98397.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.2.0
Fixed
7.2.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98397.json"