CVE-2026-98397

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

Published Oct 14, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
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().

Analysis

AI-generated

Technical impact

The Linux kernel’s platform/x86 Android tablet code allows a use‑after‑free during secondary firmware node teardown. A device reference returned by acpi_bus_find_device_by_name() is prematurely dropped, yet the same pointer is stored for later cleanup without incrementing its reference count. If the kernel releases the device before the cleanup routine runs, an attacker could dereference a dangling pointer, corrupting kernel memory and executing arbitrary code with kernel privileges.

Affected Systems

All Linux kernel builds that include the platform/x86 Android tablet support are potentially affected; any kernel that contains this buggy logic is vulnerable until the patch is applied.

Risk and Exploitability

This kernel‑level memory corruption can raise privileges to the kernel level. The CVSS score is 5.5, indicating medium severity. The EPSS score of less than 1 % suggests a low overall exploit probability in the wild, but the fix required is a full kernel rebuild and the flaw remains a high‑risk local issue. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is local: an adversary would need to execute code in kernel context, such as by triggering the fwnode teardown or exploiting another local vulnerability. No temporary workaround exists beyond disabling the feature until a patch is available.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the corrected reference handling for gpio_secondary_fwnode_init() and gpio_secondary_unset()
  • Reboot the system to ensure the updated kernel is loaded and the fix takes effect
  • If a kernel update is not yet available, disable or remove the platform/x86 Android tablet firmware node configuration to prevent the use‑after‑free until a patch is released

Generated by OpenCVE AI on October 17, 2026 at 00:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description 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().
Title platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:18 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 14, 2026, 2:17 PM
Modified
Oct 19, 2026, 10:18 AM
Severity
Moderate
Public date
Oct 14, 2026, 12:00 AM