{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-50568","published":"2025-10-22T14:15:41.657000Z","last_modified":"2026-06-17T05:23:48.470000Z","status":"Deferred","cwes":[],"cpes":[],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux"],"epss":{"score":0.00285,"percentile":0.13611,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"none","priority_score":0,"links":{"html_es":"/es/cve/CVE-2022-50568/","html_en":"/en/cve/CVE-2022-50568/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-50568","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-50568"},"untrusted":{"vendor_name":"Linux","product_name":"Linux","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_hid: fix f_hidg lifetime vs cdev\n\nThe embedded struct cdev does not have its lifetime correctly tied to\nthe enclosing struct f_hidg, so there is a use-after-free if /dev/hidgN\nis held open while the gadget is deleted.\n\nThis can readily be replicated with libusbgx's example programs (for\nconciseness - operating directly via configfs is equivalent):\n\n\tgadget-hid\n\texec 3<> /dev/hidg0\n\tgadget-vid-pid-remove\n\texec 3<&-\n\nPull the existing device up in to struct f_hidg and make use of the\ncdev_device_{add,del}() helpers.  This changes the lifetime of the\ndevice object to match struct f_hidg, but note that it is still added\nand deleted at the same time.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/1b6a53e447ec3d81623610c8c7ec5082b47dfdce","tags":[]},{"url":"https://git.kernel.org/stable/c/1cd7f156f6389918f760687fbbf133c86da93162","tags":[]},{"url":"https://git.kernel.org/stable/c/89ff3dfac604614287ad5aad9370c3f984ea3f4b","tags":[]},{"url":"https://git.kernel.org/stable/c/9e08b7f5fa00e9d550851352bd0d1ba74ccffef2","tags":[]},{"url":"https://git.kernel.org/stable/c/9e4b85d815b14bd4db2deea2a54264a23de8b896","tags":[]},{"url":"https://git.kernel.org/stable/c/c78c87c4e389b62f8892af7f59857447aa6d9797","tags":[]},{"url":"https://git.kernel.org/stable/c/d3136b79705c2e3bba9c76adc5628af0215d798e","tags":[]}]},"bulletins":[{"source":"suse","id":"SUSE-SU-2025:4320-1","url":"https://www.suse.com/support/update/announcement/2025/suse-su-20254320-1/","published":"2025-12-04T10:04:32+00:00","severity":"high","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}}]}