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

gpio: exar: initialize the ID before registering its cleanup

devm_add_action_or_reset() invokes the cleanup action immediately when
registering the action fails. gpio_exar_probe() currently stores the
allocated ID in exar_gpio only after registering the action, so that
failure makes exar_devm_ida_free() release ID 0. If the allocated ID is
nonzero, this leaks that ID and can free ID 0 belonging to another device.

Store the ID before registering the cleanup action so both the immediate
failure path and normal device teardown release the correct allocation.
Published: 2026-10-23
Score: 4.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unintended release of device IDs causing resource conflict
Action: Apply Patch
AI Analysis

Impact

A flaw in the Linux kernel’s exar GPIO driver causes the driver to store an allocated ID only after the cleanup action is registered. If registering the cleanup fails, the driver immediately calls the cleanup routine, freeing ID 0 even if the allocated ID was non‑zero. Consequently the ID 0 belonging to another device is leaked, potentially allowing that device to be re‑taken or misused. The vulnerability arises from improper initialization of the device ID before cleanup registration, leading to resource leakage and interference with other devices.

Affected Systems

All Linux kernel releases prior to the patch that corrects the exar GPIO driver. The affected vendor is Linux and the product is the Linux kernel. No specific version list is supplied, so all builds containing the unpatched driver are susceptible.

Risk and Exploitability

The CVE has a CVSS score of 4.1, and the EPSS score is < 1%. It is not listed in CISA’s KEV catalog. Based on the description, exploitation would require controlling the device probing process to trigger the faulty cleanup path. No public exploits have been reported, implying a low exploitation likelihood. However, the bug can cause kernel instability or unexpected device behavior, which is a moderate operational risk.

Generated by OpenCVE AI on October 29, 2026 at 22:38 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the system to a kernel release that contains the patch for the exar GPIO driver.
  • If an immediate kernel update is not available, apply the upstream patch that reorders ID assignment to occur before cleanup registration.
  • Reboot the system after applying the patch to ensure the driver is reloaded with the corrected cleanup logic.

Generated by OpenCVE AI on October 29, 2026 at 22:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 13:00:00 +0000


Thu, 29 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-351
CWE-665

Thu, 29 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-826
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Fri, 23 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux

Fri, 23 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-351
CWE-665

Fri, 23 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: gpio: exar: initialize the ID before registering its cleanup devm_add_action_or_reset() invokes the cleanup action immediately when registering the action fails. gpio_exar_probe() currently stores the allocated ID in exar_gpio only after registering the action, so that failure makes exar_devm_ida_free() release ID 0. If the allocated ID is nonzero, this leaks that ID and can free ID 0 belonging to another device. Store the ID before registering the cleanup action so both the immediate failure path and normal device teardown release the correct allocation.
Title gpio: exar: initialize the ID before registering its cleanup
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-30T12:40:37.940Z

Reserved: 2026-09-25T10:25:14.383Z

Link: CVE-2026-98971

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:18.673

Modified: 2026-10-30T13:21:33.613

Link: CVE-2026-98971

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-23T00:00:00Z

Links: CVE-2026-98971 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T22:45:03Z

Weaknesses
  • CWE-826

    Premature Release of Resource During Expected Lifetime