Linux
mmc: vub300: fix use-after-free on disconnect
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 117a9c589ce0cf68065c007a02fd94da01e1181a, < 4b5251eebc2b1dedbb33fedf1b1109fea161b846
- >= dcfdd698dc521c6046e9b80c16281575efb25d23, < ea7468f61be033f4e18b95f2912010ed1d175d75
- >= dcfdd698dc521c6046e9b80c16281575efb25d23, < ef0448c569b37ceabdd038e9faa311e5179127b0
- >= dcfdd698dc521c6046e9b80c16281575efb25d23, < 8f4d20a710225ec7a565f6a0459862d3b1f32330
Fixed in 4b5251eebc2b1dedbb33fedf1b1109fea161b846, ea7468f61be033f4e18b95f2912010ed1d175d75, ef0448c569b37ceabdd038e9faa311e5179127b0, 8f4d20a710225ec7a565f6a0459862d3b1f32330
- 6.17
Fixed in 0, 6.18.23, 6.19.13, 7.0
Mitigation
Upgrade Linux to 4b5251eebc2b1dedbb33fedf1b1109fea161b846 or ea7468f61be033f4e18b95f2912010ed1d175d75 or ef0448c569b37ceabdd038e9faa311e5179127b0 or 8f4d20a710225ec7a565f6a0459862d3b1f32330 or later.
Upgrade Linux to 0 or 6.18.23 or 6.19.13 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.