Linux
vduse: hold vduse_lock across IDR lookup in open path
In the Linux kernel, the following vulnerability has been resolved: vduse: hold vduse_lock across IDR lookup in open path vduse_dev_open() looks up struct vduse_dev through the IDR and then acquires dev->lock only after vduse_lock has been dropped. This leaves a window where a concurrent VDUSE_DESTROY_DEV can remove the same object from the IDR and free it before the open path locks the device, leading to a use-after-free. Close this race by keeping vduse_lock held until dev->lock has been acquired in the open path, matching the lock ordering already used by the destroy path.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= c8a6153b6c59d95c0e091f053f6f180952ade91e, < 35483c5306e09b3190ff937089d404a78012695c
- >= c8a6153b6c59d95c0e091f053f6f180952ade91e, < 5c1560be8aa6849356455af67518d35c551cbd95
- >= c8a6153b6c59d95c0e091f053f6f180952ade91e, < 93ed4692f2299a40346025979f40e4a9b7b33af7
- >= c8a6153b6c59d95c0e091f053f6f180952ade91e, < d94e2947203aead590fd63f667d316d4475d65af
- >= c8a6153b6c59d95c0e091f053f6f180952ade91e, < a2d0a57538fd0b3b3ab75d64bb64f4cd2fab13a2
- >= c8a6153b6c59d95c0e091f053f6f180952ade91e, < 79e12c891940b0c4c75881b7fd82a8cbb8ac97be
- >= c8a6153b6c59d95c0e091f053f6f180952ade91e, < e440e077748939839d9f76e24383b76b785f80ce
Fixed in 35483c5306e09b3190ff937089d404a78012695c, 5c1560be8aa6849356455af67518d35c551cbd95, 93ed4692f2299a40346025979f40e4a9b7b33af7, d94e2947203aead590fd63f667d316d4475d65af, a2d0a57538fd0b3b3ab75d64bb64f4cd2fab13a2, 79e12c891940b0c4c75881b7fd82a8cbb8ac97be, e440e077748939839d9f76e24383b76b785f80ce
- 5.15
Fixed in 0, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 35483c5306e09b3190ff937089d404a78012695c or 5c1560be8aa6849356455af67518d35c551cbd95 or 93ed4692f2299a40346025979f40e4a9b7b33af7 or d94e2947203aead590fd63f667d316d4475d65af or a2d0a57538fd0b3b3ab75d64bb64f4cd2fab13a2 or 79e12c891940b0c4c75881b7fd82a8cbb8ac97be or e440e077748939839d9f76e24383b76b785f80ce or later.
Upgrade Linux to 0 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 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.