# driver: base: fix UAF when driver_attach failed

CVE record · `CVE-2022-49385`

- **Identifiers:** `CVE-2022-49385`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-416](https://cwe.mitre.org/data/definitions/416.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 26 Feb 2025
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 26 Feb 2025, 02:11 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: `190888ac01d059e38ffe77a2291d44cafa9016fb to before 5d709f58c743166fe1c6914b9de0ae8868600d9b` (git)
  - affected: `190888ac01d059e38ffe77a2291d44cafa9016fb to before 823f24f2e329babd0330200d0b74882516fe57f4` (git)
  - affected: `190888ac01d059e38ffe77a2291d44cafa9016fb to before cdf1a683a01583bca4b618dd16223cbd6e462e21` (git)
  - affected: `190888ac01d059e38ffe77a2291d44cafa9016fb to before 5389101257828d1913d713d9a40acbe14f5961df` (git)
  - affected: `190888ac01d059e38ffe77a2291d44cafa9016fb to before c059665c84feab46b7173d3a1bf36c2fb7f9df86` (git)
  - affected: `190888ac01d059e38ffe77a2291d44cafa9016fb to before 310862e574001a97ad02272bac0fd13f75f42a27` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.9`
  - unaffected: `before 3.9` (semver)
  - unaffected: `5.4.198 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.122 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.47 to 5.15.*, inclusive` (semver)
  - unaffected: `5.17.15 to 5.17.*, inclusive` (semver)
  - unaffected: `5.18.4 to 5.18.*, inclusive` (semver)
  - unaffected: `5.19 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

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux) (used for this record)
- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0030, the 22nd 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 26 Feb 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/5d709f58c743166fe1c6914b9de0ae8868600d9b>
- <https://git.kernel.org/stable/c/823f24f2e329babd0330200d0b74882516fe57f4>
- <https://git.kernel.org/stable/c/cdf1a683a01583bca4b618dd16223cbd6e462e21>
- <https://git.kernel.org/stable/c/5389101257828d1913d713d9a40acbe14f5961df>
- <https://git.kernel.org/stable/c/c059665c84feab46b7173d3a1bf36c2fb7f9df86>
- <https://git.kernel.org/stable/c/310862e574001a97ad02272bac0fd13f75f42a27>

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

---

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