CVE-2026-90215

mtd: ubi: Release device reference on busy detach

Published Sep 17, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

mtd: ubi: Release device reference on busy detach

ubi_detach_mtd_dev() obtains a device reference through ubi_get_device()
before checking whether the UBI device is busy. The busy return path drops
ubi->ref_count but leaves the device reference held, so the device object
cannot be released after a later detach.

Drop the device reference before returning -EBUSY.

Analysis

AI-generated

Technical impact

The Linux kernel UBI subsystem contains a reference‑counting bug in ubi_detach_mtd_dev(). The function obtains a device reference before verifying that the UBI device is idle. If the device is busy, it returns EBUSY after decrementing the UBI ref count but fails to release the held device reference, leaving the device object unreleasable on subsequent detach attempts. This results in a resource leak that can prevent the device from being properly removed and may exhaust kernel storage for device objects.

Affected Systems

All Linux kernels that include the buggy ubi_detach_mtd_dev implementation are affected. The bug resides in the ubi driver, so any system with UBI support compiled into or loaded as a module (common in embedded Linux devices using flash storage) is potentially impacted. No specific kernel versions are listed; the flaw applies to every build that contains the unpatched ubi code.

Risk and Exploitability

The EPSS score of < 1% indicates a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, and no CVSS score is provided. The CVE description does not describe a remote attack surface or required privilege level; therefore, exploitation would likely be possible only through legitimate calls to ubi_detach_mtd_dev, typically performed by system utilities or kernel components with local access. The resulting denial of service originates from a resource leak that can prevent a busy UBI device from being fully detached or reused.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the ubi detach patch.
  • Ensure applications and system scripts avoid calling ubi_detach_mtd_dev while a device is busy; verify device idle status before detach.
  • After applying the patch, reload the ubi module or reboot the system to clear any lingering references.

Generated by OpenCVE AI on September 20, 2026 at 02:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-754
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: mtd: ubi: Release device reference on busy detach ubi_detach_mtd_dev() obtains a device reference through ubi_get_device() before checking whether the UBI device is busy. The busy return path drops ubi->ref_count but leaves the device reference held, so the device object cannot be released after a later detach. Drop the device reference before returning -EBUSY.
Title mtd: ubi: Release device reference on busy detach
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-754

    Improper Check for Unusual or Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 8:59 AM
Reserved
Sep 11, 2026, 7:38 PM
Status
Received
Published
Sep 17, 2026, 5:17 PM
Modified
Oct 19, 2026, 9:19 AM