{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50514","id":"CVE-2022-50514","title":"usb: gadget: f_hid: fix refcount leak on error path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_hid: fix refcount leak on error path\n\nWhen failing to allocate report_desc, opts->refcnt has already been\nincremented so it needs to be decremented to avoid leaving the options\nstructure permanently locked.","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_hid: fix refcount leak on error path\n\nWhen failing to allocate report_desc, opts->refcnt has already been\nincremented so it needs to be decremented to avoid leaving the options\nstructure permanently locked.","published":"2025-10-07T15:19:10.253Z","updated":"2026-10-28T02:30:51.942061325Z","reserved":"2025-10-07T15:15:38.661Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"21a9476a7ba847e413bf1c144d7c614532aed6dd","lessThan":"95412c932b3c9e8cc4431dac4fac8fcd80d54982","status":"affected","versionType":"git"},{"version":"21a9476a7ba847e413bf1c144d7c614532aed6dd","lessThan":"80dc47e751a837106c09bec73964ff8f7ea280b4","status":"affected","versionType":"git"},{"version":"21a9476a7ba847e413bf1c144d7c614532aed6dd","lessThan":"e88b89a096af0001bcff6bf7ad2feb1486487173","status":"affected","versionType":"git"},{"version":"21a9476a7ba847e413bf1c144d7c614532aed6dd","lessThan":"9d4a0aca8a75550d3456c8de339a341dc4536ec5","status":"affected","versionType":"git"},{"version":"21a9476a7ba847e413bf1c144d7c614532aed6dd","lessThan":"ba78f7c10606719f702c04a15fb0471507b32d7b","status":"affected","versionType":"git"},{"version":"21a9476a7ba847e413bf1c144d7c614532aed6dd","lessThan":"216437dd64fce36791a3b6cc8f8013df36856958","status":"affected","versionType":"git"},{"version":"21a9476a7ba847e413bf1c144d7c614532aed6dd","lessThan":"70a3288a7586526315105c699b687d78cd32559a","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.19","status":"affected"},{"version":"0","lessThan":"3.19","status":"unaffected","versionType":"semver"},{"version":"4.19.270","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.229","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.163","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.86","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.16","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1.2","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/95412c932b3c9e8cc4431dac4fac8fcd80d54982","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/80dc47e751a837106c09bec73964ff8f7ea280b4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e88b89a096af0001bcff6bf7ad2feb1486487173","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9d4a0aca8a75550d3456c8de339a341dc4536ec5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ba78f7c10606719f702c04a15fb0471507b32d7b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/216437dd64fce36791a3b6cc8f8013df36856958","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/70a3288a7586526315105c699b687d78cd32559a","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50514.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50514","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0016,"epssPercentile":0.0522,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50514","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50514","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50514","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50514","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}