# CVE-2025-38372: RDMA/mlx5: Fix unsafe xarray access in implicit ODP handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-07-25T12:53:15.255Z
- **Modified:** 2026-10-30T13:18:03.423Z

## Who should check

- Anyone running Linux \>= 7cc8f681f6d4ae4478ae0f60485fc768f2b450da, \< 9d2ef890e49963b768d4fe5a33029aacd9f6b93f; \>= d3d930411ce390e532470194296658a960887773, \< ebebffb47c78f63ba7e4fbde393e44af38b7625d; \>= d3d930411ce390e532470194296658a960887773, \< 2c6b640ea08bff1a192bf87fa45246ff1e40767c; 032f3f799fdb807a21467b7dc7d620395a735e2b; a306dfff6b76aafa264ad33874a8992a8d5858b7; edfb65dbb9ffd3102f3ff4dd21316158e56f1976; \>= 6.12.13, \< 6.12.37; \>= 6.1.191, \< 6.2; \>= 6.6.160, \< 6.7; \>= 6.13.2, \< 6.14
- Anyone running Linux 6.14

## Description

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

RDMA/mlx5: Fix unsafe xarray access in implicit ODP handling

\_\_xa\_store() and \_\_xa\_erase() were used without holding the proper lock,
which led to a lockdep warning due to unsafe RCU usage.  This patch
replaces them with xa\_store() and xa\_erase(), which perform the necessary
locking internally.

  =============================
  WARNING: suspicious RCPU usage
  6.14.0-rc7\_for\_upstream\_debug\_2025\_03\_18\_15\_01 \#1 Not tainted
  -----------------------------
  ./include/linux/xarray.h:1211 suspicious rcu\_dereference\_protected() usage!

  other info that might help us debug this:

  rcu\_scheduler\_active = 2, debug\_locks = 1
  3 locks held by kworker/u136:0/219:
      at: process\_one\_work+0xbe4/0x15f0
      process\_one\_work+0x75c/0x15f0
      pagefault\_mr+0x9a5/0x1390 \[mlx5\_ib\]

  stack backtrace:
  CPU: 14 UID: 0 PID: 219 Comm: kworker/u136:0 Not tainted
  6.14.0-rc7\_for\_upstream\_debug\_2025\_03\_18\_15\_01 \#1
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS
  rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
  Workqueue: mlx5\_ib\_page\_fault mlx5\_ib\_eqe\_pf\_action \[mlx5\_ib\]
  Call Trace:
   dump\_stack\_lvl+0xa8/0xc0
   lockdep\_rcu\_suspicious+0x1e6/0x260
   xas\_create+0xb8a/0xee0
   xas\_store+0x73/0x14c0
   \_\_xa\_store+0x13c/0x220
   ? xa\_store\_range+0x390/0x390
   ? spin\_bug+0x1d0/0x1d0
   pagefault\_mr+0xcb5/0x1390 \[mlx5\_ib\]
   ? \_raw\_spin\_unlock+0x1f/0x30
   mlx5\_ib\_eqe\_pf\_action+0x3be/0x2620 \[mlx5\_ib\]
   ? lockdep\_hardirqs\_on\_prepare+0x400/0x400
   ? mlx5\_ib\_invalidate\_range+0xcb0/0xcb0 \[mlx5\_ib\]
   process\_one\_work+0x7db/0x15f0
   ? pwq\_dec\_nr\_in\_flight+0xda0/0xda0
   ? assign\_work+0x168/0x240
   worker\_thread+0x57d/0xcd0
   ? rescuer\_thread+0xc40/0xc40
   kthread+0x3b3/0x800
   ? kthread\_is\_per\_cpu+0xb0/0xb0
   ? lock\_downgrade+0x680/0x680
   ? do\_raw\_spin\_lock+0x12d/0x270
   ? spin\_bug+0x1d0/0x1d0
   ? finish\_task\_switch.isra.0+0x284/0x9e0
   ? lockdep\_hardirqs\_on\_prepare+0x284/0x400
   ? kthread\_is\_per\_cpu+0xb0/0xb0
   ret\_from\_fork+0x2d/0x70
   ? kthread\_is\_per\_cpu+0xb0/0xb0
   ret\_from\_fork\_asm+0x11/0x20

## Affected and fixed versions

- Linux: \>= 7cc8f681f6d4ae4478ae0f60485fc768f2b450da, \< 9d2ef890e49963b768d4fe5a33029aacd9f6b93f; \>= d3d930411ce390e532470194296658a960887773, \< ebebffb47c78f63ba7e4fbde393e44af38b7625d; \>= d3d930411ce390e532470194296658a960887773, \< 2c6b640ea08bff1a192bf87fa45246ff1e40767c; 032f3f799fdb807a21467b7dc7d620395a735e2b; a306dfff6b76aafa264ad33874a8992a8d5858b7; edfb65dbb9ffd3102f3ff4dd21316158e56f1976; \>= 6.12.13, \< 6.12.37; \>= 6.1.191, \< 6.2; \>= 6.6.160, \< 6.7; \>= 6.13.2, \< 6.14 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 6.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38372. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38372.md
Affected: Linux >= 7cc8f681f6d4ae4478ae0f60485fc768f2b450da, < 9d2ef890e49963b768d4fe5a33029aacd9f6b93f; >= d3d930411ce390e532470194296658a960887773, < ebebffb47c78f63ba7e4fbde393e44af38b7625d; >= d3d930411ce390e532470194296658a960887773, < 2c6b640ea08bff1a192bf87fa45246ff1e40767c; 032f3f799fdb807a21467b7dc7…
Fixed in: Linux 9d2ef890e49963b768d4fe5a33029aacd9f6b93f, Linux 2c6b640ea08bff1a192bf87fa45246ff1e40767c, Linux 6.12.37, Linux 6.2, Linux 6.7, Linux 6.14

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38372 being exploited?

There is no confirmed exploitation: CVE-2025-38372 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38372?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38372?

Linux \>= 7cc8f681f6d4ae4478ae0f60485fc768f2b450da, \< 9d2ef890e49963b768d4fe5a33029aacd9f6b93f; \>= d3d930411ce390e532470194296658a960887773, \< ebebffb47c78f63ba7e4fbde393e44af38b7625d; \>= d3d930411ce390e532470194296658a960887773, \< 2c6b640ea08bff1a192bf87fa45246ff1e40767c; 032f3f799fdb807a21467b7dc7d620395a735e2b; a306dfff6b76aafa264ad33874a8992a8d5858b7; edfb65dbb9ffd3102f3ff4dd21316158e56f1976; \>= 6.12.13, \< 6.12.37; \>= 6.1.191, \< 6.2; \>= 6.6.160, \< 6.7; \>= 6.13.2, \< 6.14; Linux 6.14.

### Is there a fix for CVE-2025-38372?

Yes. Fixed in Linux 9d2ef890e49963b768d4fe5a33029aacd9f6b93f, Linux 2c6b640ea08bff1a192bf87fa45246ff1e40767c, Linux 6.12.37, Linux 6.2, Linux 6.7, Linux 6.14. Upgrade Linux to 6.14 or later.

### How do I check if I'm affected by CVE-2025-38372?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9d2ef890e49963b768d4fe5a33029aacd9f6b93f>
- patch: <https://git.kernel.org/stable/c/ebebffb47c78f63ba7e4fbde393e44af38b7625d>
- patch: <https://git.kernel.org/stable/c/2c6b640ea08bff1a192bf87fa45246ff1e40767c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38372>

HTML: <https://flawdb.com/CVE-2025-38372> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38372>
