# CVE-2025-38645: net/mlx5: Check device memory pointer before usage

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 11% of CVEs (2026-11-30)
- Published: 2025-08-22T16:00:50.665Z
- Modified: 2026-11-05T22:17:22.310Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: Check device memory pointer before usage

Add a NULL check before accessing device memory to prevent a crash if
dev->dm allocation in mlx5_init_once() fails.

(As written by CVE List.)

## Affected

- Linux Linux: from c9b9dcb430b3cd0ad2b04c360c4e528d73430481 before 9053a69abfb5680c2a95292b96df5d204bc0776f; from c9b9dcb430b3cd0ad2b04c360c4e528d73430481 before eebb225fe6c9103293807b8edabcbad59f9589bc; from c9b9dcb430b3cd0ad2b04c360c4e528d73430481 before 62d7cf455c887941ed6f105cd430ba04ee0b6c9f; from c9b9dcb430b3cd0ad2b04c360c4e528d73430481 before 4249f1307932f1b6bbb8b7eba60d82f0b7e44430; from c9b9dcb430b3cd0ad2b04c360c4e528d73430481 before 3046b011d368162b1b9ca9453eee0fea930e0a93; from c9b9dcb430b3cd0ad2b04c360c4e528d73430481 before da899a1fd7c40e2e4302af1db7d0b8540fb22283; from c9b9dcb430b3cd0ad2b04c360c4e528d73430481 before 70f238c902b8c0461ae6fbb8d1a0bbddc4350eea; 5.4 (not affected: before 5.4; from 5.15.190 up to 5.15.*; from 6.1.148 up to 6.1.*; from 6.6.102 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.4 before 5.15.190; from 5.16 before 6.1.148; from 6.2 before 6.6.102; from 6.7 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/9053a69abfb5680c2a95292b96df5d204bc0776f> (patch)
- <https://git.kernel.org/stable/c/eebb225fe6c9103293807b8edabcbad59f9589bc> (patch)
- <https://git.kernel.org/stable/c/62d7cf455c887941ed6f105cd430ba04ee0b6c9f> (patch)
- <https://git.kernel.org/stable/c/4249f1307932f1b6bbb8b7eba60d82f0b7e44430> (patch)
- <https://git.kernel.org/stable/c/3046b011d368162b1b9ca9453eee0fea930e0a93> (patch)
- <https://git.kernel.org/stable/c/da899a1fd7c40e2e4302af1db7d0b8540fb22283> (patch)
- <https://git.kernel.org/stable/c/70f238c902b8c0461ae6fbb8d1a0bbddc4350eea> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38645](https://www.cve.org/CVERecord?id=CVE-2025-38645), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38645](https://nvd.nist.gov/vuln/detail/CVE-2025-38645), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38645 · Whole record: https://cve.day/CVE-2025-38645.json · Rebuilt by cve.day 2026-11-25T22:59:03.539Z
