CVE-2022-50568
Last modified
CVE-2022-50568 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_hid: fix f_hidg lifetime vs cdev The embedded struct cdev does not have its lifetime correctly tied to the enclosing struct f_hidg, so there is a use-after-free if /dev/hidgN is held open while the gadget is deleted. This can readily be replicated with libusbgx's example programs (for conciseness - operating directly via configfs is equivalent): gadget-hid exec 3<> /dev/hidg0 gadget-vid-pid-remove exec 3<&- Pull the existing device up in to struct f_hidg and make use of the cdev_device_{add,del}() helpers. This changes the lifetime of the device object to match struct f_hidg, but note that it is still added and deleted at the same time.. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_hid: fix f_hidg lifetime vs cdev The embedded struct cdev does not have its lifetime correctly tied to the enclosing struct f_hidg, so there is a use-after-free if /dev/hidgN is held open while the gadget is deleted. This can readily be replicated with libusbgx's example programs (for conciseness - operating directly via configfs is equivalent): gadget-hid exec 3<> /dev/hidg0 gadget-vid-pid-remove exec 3<&- Pull the existing device up in to struct f_hidg and make use of the cdev_device_{add,del}() helpers. This changes the lifetime of the device object to match struct f_hidg, but note that it is still added and deleted at the same time.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 71adf118946957839a13aa4d1094183e05c6c094, < 1cd7f156f6389918f760687fbbf133c86da93162; >= 71adf118946957839a13aa4d1094183e05c6c094, < c78c87c4e389b62f8892af7f59857447aa6d9797; >= 71adf118946957839a13aa4d1094183e05c6c094, < 1b6a53e447ec3d81623610c8c7ec5082b47dfdce; >= 71adf118946957839a13aa4d1094183e05c6c094, < d3136b79705c2e3bba9c76adc5628af0215d798e; >= 71adf118946957839a13aa4d1094183e05c6c094, < 9e4b85d815b14bd4db2deea2a54264a23de8b896; >= 71adf118946957839a13aa4d1094183e05c6c094, < 9e08b7f5fa00e9d550851352bd0d1ba74ccffef2; >= 71adf118946957839a13aa4d1094183e05c6c094, < 89ff3dfac604614287ad5aad9370c3f984ea3f4b |
| Linux | Linux | 2.6.35 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2022-50568?
How severe is CVE-2022-50568?
How do I fix CVE-2022-50568?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-50562In the Linux kernel, the following vulnerability has been re…
- CVE-2022-50563In the Linux kernel, the following vulnerability has been re…
- CVE-2022-50564In the Linux kernel, the following vulnerability has been re…
- CVE-2022-50565In the Linux kernel, the following vulnerability has been re…
- CVE-2022-50566In the Linux kernel, the following vulnerability has been re…
- CVE-2022-50567In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50569In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50570In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50571In the Linux kernel, the following vulnerability has been re…
- CVE-2022-50572In the Linux kernel, the following vulnerability has been re…
- CVE-2022-50573In the Linux kernel, the following vulnerability has been re…
- CVE-2022-50574In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2022-50568?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
