# usb: gadget: Fix use-after-free bug by not setting udc->dev.driver

CVE record · `CVE-2022-48838`

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

Published by the CVE Program (CNA: Linux) at 16 Jul 2024, 12:25 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: `2ccea03a8f7ec93641791f2760d7cdc6cab6205f to before 4325124dde6726267813c736fee61226f1d38f0b` (git)
  - affected: `2ccea03a8f7ec93641791f2760d7cdc6cab6205f to before e2d3a7009e505e120805f449c832942660f3f7f3` (git)
  - affected: `2ccea03a8f7ec93641791f2760d7cdc6cab6205f to before 609a7119bffe3ddd7c93f2fa65be8917e02a0b7e` (git)
  - affected: `2ccea03a8f7ec93641791f2760d7cdc6cab6205f to before 2282a6eb6d4e118e294e43dcc421e0e0fe4040b5` (git)
  - affected: `2ccea03a8f7ec93641791f2760d7cdc6cab6205f to before 00bdd9bf1ac6d401ad926d3d8df41b9f1399f646` (git)
  - affected: `2ccea03a8f7ec93641791f2760d7cdc6cab6205f to before 2015c23610cd0efadaeca4d3a8d1dae9a45aa35a` (git)
  - affected: `2ccea03a8f7ec93641791f2760d7cdc6cab6205f to before 27d64436984fb8835a8b7e95993193cc478b162e` (git)
  - affected: `2ccea03a8f7ec93641791f2760d7cdc6cab6205f to before 16b1941eac2bd499f065a6739a40ce0011a3d740` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.1`
  - unaffected: `before 3.1` (semver)
  - unaffected: `4.9.308 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.273 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.236 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.187 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.108 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.31 to 5.15.*, inclusive` (semver)
  - unaffected: `5.16.17 to 5.16.*, inclusive` (semver)
  - unaffected: `5.17 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.0024, the 14th percentile, on 21 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 16 Jul 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/4325124dde6726267813c736fee61226f1d38f0b>
- <https://git.kernel.org/stable/c/e2d3a7009e505e120805f449c832942660f3f7f3>
- <https://git.kernel.org/stable/c/609a7119bffe3ddd7c93f2fa65be8917e02a0b7e>
- <https://git.kernel.org/stable/c/2282a6eb6d4e118e294e43dcc421e0e0fe4040b5>
- <https://git.kernel.org/stable/c/00bdd9bf1ac6d401ad926d3d8df41b9f1399f646>
- <https://git.kernel.org/stable/c/2015c23610cd0efadaeca4d3a8d1dae9a45aa35a>
- <https://git.kernel.org/stable/c/27d64436984fb8835a8b7e95993193cc478b162e>
- <https://git.kernel.org/stable/c/16b1941eac2bd499f065a6739a40ce0011a3d740>

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-48838>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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