CVE-2022-50028 gadgetfs: ep_io - wait until IRQ finishes
A race condition in the Linux kernel gadgetfs driver can lead to stack corruption and potential code execution if an interruptible wait is interrupted.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50028?
CVE-2022-50028 is a high-severity vulnerability in Linux kernel, published on 18 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
gadgetfs: ep_io - wait until IRQ finishes
after usb_ep_queue() if wait_for_completion_interruptible() is interrupted we need to wait until IRQ gets finished.
Otherwise complete() from epio_complete() can corrupt stack.
Which versions are affected by CVE-2022-50028?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50028?
Apply the vendor's patch.
Is CVE-2022-50028 being exploited?
There is no known exploitation of CVE-2022-50028 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50028, GHSA-gfmv-fp2w-65v9, UBUNTU-CVE-2022-50028.