vduse: hold vduse_lock across IDR lookup in open path
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From c8a6153b6c59d95c0e091f053f6f180952ade91e · fixed in 35483c5306e09b3190ff937089d404a78012695c; From c8a6153b6c59d95c0e091f053f6f180952ade91e · fixed in 5c1560be8aa6849356455af67518d35c551cbd95; From c8a6153b6c59d95c0e091f053f6f180952ade91e · fixed in 93ed4692f2299a40346025979f40e4a9b7b33af7; From c8a6153b6c59d95c0e091f053f6f180952ade91e · fixed in d94e2947203aead590fd63f667d316d4475d65af; From c8a6153b6c59d95c0e091f053f6f180952ade91e · fixed in a2d0a57538fd0b3b3ab75d64bb64f4cd2fab13a2; From c8a6153b6c59d95c0e091f053f6f180952ade91e · fixed in 79e12c891940b0c4c75881b7fd82a8cbb8ac97be; From c8a6153b6c59d95c0e091f053f6f180952ade91e · fixed in e440e077748939839d9f76e24383b76b785f80ce
- Linux Linux
5.15
- KernelLinux
From 5.15.0 · fixed in 5.15.212; From 5.16.0 · fixed in 6.1.178; From 6.2.0 · fixed in 6.6.145; From 6.7.0 · fixed in 6.12.97; From 6.13.0 · fixed in 6.18.40; From 6.19.0 · fixed in 7.1.5
References 7
git.kernel.org
- stable/c/35483c5306e09b3190ff937089d404a78012695c
- stable/c/5c1560be8aa6849356455af67518d35c551cbd95
- stable/c/93ed4692f2299a40346025979f40e4a9b7b33af7
- stable/c/d94e2947203aead590fd63f667d316d4475d65af
- stable/c/a2d0a57538fd0b3b3ab75d64bb64f4cd2fab13a2
- stable/c/79e12c891940b0c4c75881b7fd82a8cbb8ac97be
- stable/c/e440e077748939839d9f76e24383b76b785f80ce