GSD-2021-1000318 usb: dwc3: gadget: Free gadget structure only after freeing endpoints
A use-after-free vulnerability in the Linux Kernel DWC3 USB gadget driver allows local attackers to potentially execute code or cause a system crash.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is GSD-2021-1000318?
GSD-2021-1000318 is an use after free vulnerability in Kernel, published on 31 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
usb: dwc3: gadget: Free gadget structure only after freeing endpoints
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.10.38 by commit 1ea775021282d90e1d08d696b7ab54aa75d688e5, it was introduced in version v5.10 by commit e81a7018d93a7de31a3f121c9a7eecd0a5ec58b0. For more details please see the references link.
Which versions are affected by GSD-2021-1000318?
1 open source package ship an affected version, including Kernel.
| Package | Affected | Fixed in |
|---|---|---|
Kernel Linux | All versions | None |
How do I fix GSD-2021-1000318?
No fix has been published for GSD-2021-1000318 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is GSD-2021-1000318 being exploited?
There is no known exploitation of GSD-2021-1000318 in the wild and no public exploit code.