CVE Catalog

CVE-2026-98397

Unknown
Published: Translated: NVD NIST

Summary

In the Linux kernel platform/x86 x86-android-tablets module, gpio_secondary_fwnode_init() drops the device reference at the end of each iteration, while devm_add_action_or_reset() saves the pointer without incrementing its reference count. This can lead to a use-after-free during driver teardown.

Risk Assessment

A use-after-free during driver teardown can corrupt kernel memory or cause a system crash.

Recommendation

Update the Linux kernel to a version containing the fix that acquires an explicit reference with get_device() and drops it with put_device() in gpio_secondary_unset().

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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().

Vulnerability data from NVD (NIST) · CISA KEV · EPSS