# net/mlx5: Check device memory pointer before usage

CVE record · `CVE-2025-38645`

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

Published by the CVE Program (CNA: Linux) at 22 Aug 2025, 16:00 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: `c9b9dcb430b3cd0ad2b04c360c4e528d73430481 to before 9053a69abfb5680c2a95292b96df5d204bc0776f` (git)
  - affected: `c9b9dcb430b3cd0ad2b04c360c4e528d73430481 to before eebb225fe6c9103293807b8edabcbad59f9589bc` (git)
  - affected: `c9b9dcb430b3cd0ad2b04c360c4e528d73430481 to before 62d7cf455c887941ed6f105cd430ba04ee0b6c9f` (git)
  - affected: `c9b9dcb430b3cd0ad2b04c360c4e528d73430481 to before 4249f1307932f1b6bbb8b7eba60d82f0b7e44430` (git)
  - affected: `c9b9dcb430b3cd0ad2b04c360c4e528d73430481 to before 3046b011d368162b1b9ca9453eee0fea930e0a93` (git)
  - affected: `c9b9dcb430b3cd0ad2b04c360c4e528d73430481 to before da899a1fd7c40e2e4302af1db7d0b8540fb22283` (git)
  - affected: `c9b9dcb430b3cd0ad2b04c360c4e528d73430481 to before 70f238c902b8c0461ae6fbb8d1a0bbddc4350eea` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.4`
  - unaffected: `before 5.4` (semver)
  - unaffected: `5.15.190 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.148 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.102 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.42 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.10 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16.1 to 6.16.*, inclusive` (semver)
  - unaffected: `6.17 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel net/mlx5 driver from 5.4 is affected: device memory is used without a NULL check, which can crash the system if an allocation fails during initialization. The source gives few details on attacker requirements. Upgrade to 5.15.190, 6.1.148, 6.6.102, 6.12.42, or a later release in those series.

Written 16 Nov 2026.

## 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.0018, the 7th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 22 Aug 2025, 16:00 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38645)
- 22 Aug 2025, 16:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38645)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/9053a69abfb5680c2a95292b96df5d204bc0776f>
- <https://git.kernel.org/stable/c/eebb225fe6c9103293807b8edabcbad59f9589bc>
- <https://git.kernel.org/stable/c/62d7cf455c887941ed6f105cd430ba04ee0b6c9f>
- <https://git.kernel.org/stable/c/4249f1307932f1b6bbb8b7eba60d82f0b7e44430>
- <https://git.kernel.org/stable/c/3046b011d368162b1b9ca9453eee0fea930e0a93>
- <https://git.kernel.org/stable/c/da899a1fd7c40e2e4302af1db7d0b8540fb22283>
- <https://git.kernel.org/stable/c/70f238c902b8c0461ae6fbb8d1a0bbddc4350eea>

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

---

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