Kernel crash via mismatched HID gadget lifetime
Published Oct 22, 2025 · Updated Oct 22, 2025
Use-after-free in the Linux USB HID gadget driver before 6.2 allows local users to crash the kernel by deleting an open gadget. The embedded cdev can outlive its enclosing f_hidg because their lifetimes are not tied, leaving an open /dev/hidgN descriptor referencing freed memory. Triggering the fault requires local access, an open HID gadget device, and permission to remove that gadget through configfs.
Summary
What happened
Use-after-free in the Linux USB HID gadget driver before 6.2 allows local users to crash the kernel by deleting an open gadget. The embedded cdev can outlive its enclosing f_hidg because their lifetimes are not tied, leaving an open /dev/hidgN descriptor referencing freed memory. Triggering the fault requires local access, an open HID gadget device, and permission to remove that gadget through configfs.
The record
- CVE
- CVE-2022-50568
- Published
- Oct 22, 2025
- Updated
- Oct 22, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 22, 2025CVE publishedPublication date reported by the CVE source.
- Oct 22, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.6.35
- Affected versionversion=71adf118946957839a13aa4d1094183e05c6c094 <1b6a53e447ec3d81623610c8c7ec5082b47dfdce
- Affected versionversion=71adf118946957839a13aa4d1094183e05c6c094 <1cd7f156f6389918f760687fbbf133c86da93162
- Affected versionversion=71adf118946957839a13aa4d1094183e05c6c094 <89ff3dfac604614287ad5aad9370c3f984ea3f4b
- Affected versionversion=71adf118946957839a13aa4d1094183e05c6c094 <9e08b7f5fa00e9d550851352bd0d1ba74ccffef2
- Affected versionversion=71adf118946957839a13aa4d1094183e05c6c094 <9e4b85d815b14bd4db2deea2a54264a23de8b896
- Affected versionversion=71adf118946957839a13aa4d1094183e05c6c094 <c78c87c4e389b62f8892af7f59857447aa6d9797
- Affected versionversion=71adf118946957839a13aa4d1094183e05c6c094 <d3136b79705c2e3bba9c76adc5628af0215d798e
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Linux HID gadget lifetime reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo