vduse: hold vduse_lock across IDR lookup in open path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e440e077748939839d9f76e24383b76b785f80ce, Kernel 35483c5306e09b3190ff937089d404a78012695c, Kernel 5c1560be8aa6849356455af67518d35c551cbd95 and 10 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=c8a6153b6c59d95c0e091f053f6f180952ade91e <e440e077748939839d9f76e24383b76b785f80ce, >=c8a6153b6c59d95c0e091f053f6f180952ade91e <35483c5306e09b3190ff937089d404a78012695c, >=c8a6153b6c59d95c0e091f053f6f180952ade91e <5c1560be8aa6849356455af67518d35c551cbd95, >=c8a6153b6c59d95c0e091f053f6f180952ade91e <79e12c891940b0c4c75881b7fd82a8cbb8ac97be, >=c8a6153b6c59d95c0e091f053f6f180952ade91e <93ed4692f2299a40346025979f40e4a9b7b33af7, >=c8a6153b6c59d95c0e091f053f6f180952ade91e <a2d0a57538fd0b3b3ab75d64bb64f4cd2fab13a2, >=c8a6153b6c59d95c0e091f053f6f180952ade91e <d94e2947203aead590fd63f667d316d4475d65af, =5.15 | e440e077748939839d9f76e24383b76b785f80ce, 35483c5306e09b3190ff937089d404a78012695c, 5c1560be8aa6849356455af67518d35c551cbd95, 79e12c891940b0c4c75881b7fd82a8cbb8ac97be, 93ed4692f2299a40346025979f40e4a9b7b33af7, a2d0a57538fd0b3b3ab75d64bb64f4cd2fab13a2, d94e2947203aead590fd63f667d316d4475d65af |
| linux-kernel: Kernel | >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=5.15.0 <5.15.212 | 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.15.212 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket