# ALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free

CVE record · `CVE-2025-39997`

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

Published by the CVE Program (CNA: Linux) at 15 Oct 2025, 07:58 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: `06513dd6d32c37d0364db8488cfdf3e14da238a8 to before e63f049c7764b615d1d50cb486745fa63372b42d` (git)
  - affected: `efaf61052b8ff9ee8968912fbaf02c2847c78ede to before e16985513e89466a236d2a7c202783b4dd0c5a46` (git)
  - affected: `647410a7da46067953a53c0d03f8680eff570959 to before dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba` (git)
  - affected: `c611b9e55174e439dcd85a72969b43a95f3827a4 to before 647d6b8d22be12842fde6ed0c56859ebc615f21e` (git)
  - affected: `0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 to before af600e7f5526d16146b3ae99f6ad57bfea79ca33` (git)
  - affected: `0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 to before 353d8c715cc951a980728133c9dd64ca5a0a186c` (git)
  - affected: `0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 to before 9f2c0ac1423d5f267e7f1d1940780fc764b0fee3` (git)
  - affected: `62066758d2ae169278e5d6aea5995b1b6f6ddeb5` (git)
  - affected: `6.1.167 to before 6.1.175` (semver)
  - affected: `6.15.3 to before 6.16` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.16`
  - unaffected: `before 6.16` (semver)
  - unaffected: `6.1.175 to 6.1.*, inclusive` (semver)
  - unaffected: `6.16.11 to 6.16.*, inclusive` (semver)
  - unaffected: `6.17.1 to 6.17.*, inclusive` (semver)
  - unaffected: `6.18 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.0021, the 11th percentile, on 19 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 15 Oct 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/e63f049c7764b615d1d50cb486745fa63372b42d>
- <https://git.kernel.org/stable/c/e16985513e89466a236d2a7c202783b4dd0c5a46>
- <https://git.kernel.org/stable/c/dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba>
- <https://git.kernel.org/stable/c/647d6b8d22be12842fde6ed0c56859ebc615f21e>
- <https://git.kernel.org/stable/c/af600e7f5526d16146b3ae99f6ad57bfea79ca33>
- <https://git.kernel.org/stable/c/353d8c715cc951a980728133c9dd64ca5a0a186c>
- <https://git.kernel.org/stable/c/9f2c0ac1423d5f267e7f1d1940780fc764b0fee3>

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

---

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