Skip to contentSkip to conversation

CVE-2026-31650: mmc: vub300: fix use-after-free on disconnect

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

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

Description
===========

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

mmc: vub300: fix use-after-free on disconnect

The vub300 driver maintains an explicit reference count for the controller and its driver data and the last reference can in theory be dropped after the driver has been unbound.

This specifically means that the controller allocation must not be device managed as that can lead to use-after-free.

Note that the lifetime is currently also incorrectly tied the parent USB device rather than interface, which can lead to memory leaks if the driver is unbound without its device being physically disconnected (e.g. on probe deferral).

Fix both issues by reverting to non-managed allocation of the controller.

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

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

	Issue introduced in 6.17 with commit dcfdd698dc521c6046e9b80c16281575efb25d23 and fixed in 6.18.23 with commit ea7468f61be033f4e18b95f2912010ed1d175d75
	Issue introduced in 6.17 with commit dcfdd698dc521c6046e9b80c16281575efb25d23 and fixed in 6.19.13 with commit ef0448c569b37ceabdd038e9faa311e5179127b0
	Issue introduced in 6.17 with commit dcfdd698dc521c6046e9b80c16281575efb25d23 and fixed in 7.0 with commit 8f4d20a710225ec7a565f6a0459862d3b1f32330

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-31650

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/mmc/host/vub300.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/ea7468f61be033f4e18b95f2912010ed1d175d75
	https://git.kernel.org/stable/c/ef0448c569b37ceabdd038e9faa311e5179127b0
	https://git.kernel.org/stable/c/8f4d20a710225ec7a565f6a0459862d3b1f32330