CVE-2026-31650 PUBLISHED

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

Assigner: Linux
Reserved: 09.03.2026 Published: 24.04.2026 Updated: 24.04.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from dcfdd698dc521c6046e9b80c16281575efb25d23 to ea7468f61be033f4e18b95f2912010ed1d175d75 (excl.)
  • affected from dcfdd698dc521c6046e9b80c16281575efb25d23 to ef0448c569b37ceabdd038e9faa311e5179127b0 (excl.)
  • affected from dcfdd698dc521c6046e9b80c16281575efb25d23 to 8f4d20a710225ec7a565f6a0459862d3b1f32330 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.17 is affected
  • unaffected from 0 to 6.17 (excl.)
  • unaffected from 6.18.23 to 6.18.* (incl.)
  • unaffected from 6.19.13 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References