Skip to contentSkip to conversation

CVE-2026-90215: mtd: ubi: Release device reference on busy detach

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-90215 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.9 with commit 7e84c961b2eb062d2f47037dcca52dcd1d3615b5 and fixed in 6.12.110 with commit 87812858c4c8df979cb70bcd0040b925a543df6f
	Issue introduced in 6.9 with commit 7e84c961b2eb062d2f47037dcca52dcd1d3615b5 and fixed in 6.18.52 with commit e065960366b55ab21e6c643c30dec2a41451900b
	Issue introduced in 6.9 with commit 7e84c961b2eb062d2f47037dcca52dcd1d3615b5 and fixed in 7.2.6 with commit 851c5e9a829d56cb0982965f07ef8966a6722884
	Issue introduced in 6.9 with commit 7e84c961b2eb062d2f47037dcca52dcd1d3615b5 and fixed in 7.3-rc1 with commit 31dd710cd84d5dd63c49f640d3a9f36c9699ca95

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90215

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/mtd/ubi/build.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/87812858c4c8df979cb70bcd0040b925a543df6f
	https://git.kernel.org/stable/c/e065960366b55ab21e6c643c30dec2a41451900b
	https://git.kernel.org/stable/c/851c5e9a829d56cb0982965f07ef8966a6722884
	https://git.kernel.org/stable/c/31dd710cd84d5dd63c49f640d3a9f36c9699ca95