# usb: gadget: f_hid: fix refcount leak on error path

CVE record · `CVE-2022-50514`

- **Identifiers:** `CVE-2022-50514`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 7 Oct 2025
- **Updated:** 11 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 7 Oct 2025, 15:19 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `21a9476a7ba847e413bf1c144d7c614532aed6dd to before 95412c932b3c9e8cc4431dac4fac8fcd80d54982` (git)
  - affected: `21a9476a7ba847e413bf1c144d7c614532aed6dd to before 80dc47e751a837106c09bec73964ff8f7ea280b4` (git)
  - affected: `21a9476a7ba847e413bf1c144d7c614532aed6dd to before e88b89a096af0001bcff6bf7ad2feb1486487173` (git)
  - affected: `21a9476a7ba847e413bf1c144d7c614532aed6dd to before 9d4a0aca8a75550d3456c8de339a341dc4536ec5` (git)
  - affected: `21a9476a7ba847e413bf1c144d7c614532aed6dd to before ba78f7c10606719f702c04a15fb0471507b32d7b` (git)
  - affected: `21a9476a7ba847e413bf1c144d7c614532aed6dd to before 216437dd64fce36791a3b6cc8f8013df36856958` (git)
  - affected: `21a9476a7ba847e413bf1c144d7c614532aed6dd to before 70a3288a7586526315105c699b687d78cd32559a` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.19`
  - unaffected: `before 3.19` (semver)
  - unaffected: `4.19.270 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.229 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.163 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.86 to 5.15.*, inclusive` (semver)
  - unaffected: `6.0.16 to 6.0.*, inclusive` (semver)
  - unaffected: `6.1.2 to 6.1.*, inclusive` (semver)
  - unaffected: `6.2 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0016, the 5th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 7 Oct 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2022-50514](https://www.cve.org/CVERecord?id=CVE-2022-50514)
- [NVD: CVE-2022-50514](https://nvd.nist.gov/vuln/detail/CVE-2022-50514)

### References from the CNA

- <https://git.kernel.org/stable/c/95412c932b3c9e8cc4431dac4fac8fcd80d54982>
- <https://git.kernel.org/stable/c/80dc47e751a837106c09bec73964ff8f7ea280b4>
- <https://git.kernel.org/stable/c/e88b89a096af0001bcff6bf7ad2feb1486487173>
- <https://git.kernel.org/stable/c/9d4a0aca8a75550d3456c8de339a341dc4536ec5>
- <https://git.kernel.org/stable/c/ba78f7c10606719f702c04a15fb0471507b32d7b>
- <https://git.kernel.org/stable/c/216437dd64fce36791a3b6cc8f8013df36856958>
- <https://git.kernel.org/stable/c/70a3288a7586526315105c699b687d78cd32559a>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-50514>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-50514/>. Everything for agents: <https://agentprime.io/llms.txt>.
