Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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_

Announced Group revision 1
Original source ↗

CVE-2025-38372

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-38372

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "7cc8f681f6d4ae4478ae0f60485fc768f2b450da",
        "lessThan": "9d2ef890e49963b768d4fe5a33029aacd9f6b93f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d3d930411ce390e532470194296658a960887773",
        "lessThan": "ebebffb47c78f63ba7e4fbde393e44af38b7625d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d3d930411ce390e532470194296658a960887773",
        "lessThan": "2c6b640ea08bff1a192bf87fa45246ff1e40767c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a306dfff6b76aafa264ad33874a8992a8d5858b7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "edfb65dbb9ffd3102f3ff4dd21316158e56f1976",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6.12.13",
        "lessThan": "6.12.37",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.6.160",
        "lessThan": "6.7",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.13.2",
        "lessThan": "6.14",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "drivers/infiniband/hw/mlx5/odp.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.14"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.14",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.12.37",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.15.6",
        "versionType": "semver",
        "lessThanOrEqual": "6.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.16",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/infiniband/hw/mlx5/odp.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-38372

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#46001 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement