Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-21714

published high CVSS 3.1 · 7.8

RDMA/mlx5: Fix implicit ODP use after free

Published
27 Feb 2025, 02:07:25 UTC
Updated
30 Oct 2026, 12:20:44 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux5256edcb98a14b11409a2d323f56a70a8b366363 to < 032f3f799fdb807a21467b7dc7d620395a735e2b · 5256edcb98a14b11409a2d323f56a70a8b366363 to < a306dfff6b76aafa264ad33874a8992a8d5858b7 · 5256edcb98a14b11409a2d323f56a70a8b366363 to < 7cc8f681f6d4ae4478ae0f60485fc768f2b450da · 5256edcb98a14b11409a2d323f56a70a8b366363 to < edfb65dbb9ffd3102f3ff4dd21316158e56f1976 · 5256edcb98a14b11409a2d323f56a70a8b366363 to < d3d930411ce390e532470194296658a960887773 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.5 (affected) · 0 to < 5.5 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.160 through 6.6.* (unaffected · semver) · 6.12.13 through 6.12.* (unaffected · semver) · 6.13.2 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected; No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation No Fix Planned Not stated Amazon Linux assessment
AlmaLinux 9 kernel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
Debian bookworm linux Advisory build 6.1.192-1 DLA-4906-1
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
AlmaLinux 9 kernel-64k Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-doc Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-headers Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 libperf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 perf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 python3-perf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 rtla Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 rv Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Fix implicit ODP use after free Prevent double queueing of implicit ODP mr destroy work by using __xa_cmpxchg() to make sure this is the only time we are destroying this specific mr. Without this change, we could try to invalidate this mr twice, which in turn could result in queuing a MR work destroy twice, and eventually the second work could execute after the MR was freed due to the first work, causing a user after free and trace below. refcount_t: underflow; use-after-free. WARNING: CPU: 2 PID: 12178 at lib/refcount.c:28 refcount_warn_saturate+0x12b/0x130 Modules linked in: bonding ib_ipoib vfio_pci ip_gre geneve nf_tables ip6_gre gre ip6_tunnel tunnel6 ipip tunnel4 ib_umad rdma_ucm mlx5_vfio_pci vfio_pci_core vfio_iommu_type1 mlx5_ib vfio ib_uverbs mlx5_core iptable_raw openvswitch nsh rpcrdma ib_iser libiscsi scsi_transport_iscsi rdma_cm iw_cm ib_cm ib_core xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xt_addrtype iptable_nat nf_nat br_netfilter rpcsec_gss_krb5 auth_rpcgss oid_registry overlay zram zsmalloc fuse [last unloaded: ib_uverbs] CPU: 2 PID: 12178 Comm: kworker/u20:5 Not tainted 6.5.0-rc1_net_next_mlx5_58c644e #1 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014 Workqueue: events_unbound free_implicit_child_mr_work [mlx5_ib] RIP: 0010:refcount_warn_saturate+0x12b/0x130 Code: 48 c7 c7 38 95 2a 82 c6 05 bc c6 fe 00 01 e8 0c 66 aa ff 0f 0b 5b c3 48 c7 c7 e0 94 2a 82 c6 05 a7 c6 fe 00 01 e8 f5 65 aa ff <0f> 0b 5b c3 90 8b 07 3d 00 00 00 c0 74 12 83 f8 01 74 13 8d 50 ff RSP: 0018:ffff8881008e3e40 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000027 RDX: ffff88852c91b5c8 RSI: 0000000000000001 RDI: ffff88852c91b5c0 RBP: ffff8881dacd4e00 R08: 00000000ffffffff R09: 0000000000000019 R10: 000000000000072e R11: 0000000063666572 R12: ffff88812bfd9e00 R13: ffff8881c792d200 R14: ffff88810011c005 R15: ffff8881002099c0 FS: 0000000000000000(0000) GS:ffff88852c900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5694b5e000 CR3: 00000001153f6003 CR4: 0000000000370ea0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> ? refcount_warn_saturate+0x12b/0x130 free_implicit_child_mr_work+0x180/0x1b0 [mlx5_ib] process_one_work+0x1cc/0x3c0 worker_thread+0x218/0x3c0 kthread+0xc6/0xf0 ret_from_fork+0x1f/0x30 </TASK>

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

32

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The attack requires local access to the RDMA verbs uAPI (/dev/infiniband/uverbs*) to register an implicit ODP MR, and the invalidation half of the race requires local mm operations (munmap/madvise) that a remote peer cannot induce. Remote RDMA traffic can drive the page-fault half but not the whole race, so the vector is Local. AC:L - The attacker controls both sides of the race from its own process — repeated ibv_advise_mr prefetch faults on the implicit MR in one thread and munmap/MADV_DONTNEED invalidations of the same range in another — and can retry the loop indefinitely on many child MRs in parallel. No condition depends on state outside the attacker's influence. PR:L - An unprivileged local account with access to the InfiniBand verbs character device suffices; there is no capability check anywhere on the reg_mr/ODP/prefetch path (only CAP_NET_RAW for raw QPs and CAP_IPC_LOCK for pinning, neither of which applies to ODP). Unprivileged verbs access is the intended design of RDMA and is routine in HPC, RoCE cloud, and containerized deployments. UI:N - The attacking process registers its own implicit ODP MR and triggers both the page faults and the invalidations itself. No victim action or cooperation is needed. S:U - The corruption is confined to kernel memory managed by the same kernel security authority; there is no VM, IOMMU, or sandbox boundary crossed. Standard kernel-local privilege escalation scope. C:H - The second execution of free_implicit_child_mr_work() operates on a freed, kzalloc'd mlx5_ib_mr from a generic kmalloc slab, so an attacker who reclaims the object controls mr->parent, mr->umem, and mr->mmkey and can turn the dereferences into arbitrary kernel reads. Destroying an mkey number that has been reassigned can additionally expose another RDMA consumer's registered memory. I:H - The double queue_work yields a use-after-free plus a double mlx5_ib_dereg_mr() free, and INIT_WORK() on an already-pending work item corrupts workqueue linked lists — both classic paths to a controlled write primitive and control-flow hijack via heap spraying. A:H - Even unweaponized, the bug produces the refcount_t underflow WARNING and subsequent oops shown in the commit trace, and the underflowed usecount can leave mlx5r_deref_wait_odp_mkey() waiting forever, hanging an unbound workqueue worker. Any of these is a full availability loss.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 5256edcb98a14b11409a2d323f56a70a8b366363 to < 032f3f799fdb807a21467b7dc7d620395a735e2b (affected · git)5256edcb98a14b11409a2d323f56a70a8b366363 to < a306dfff6b76aafa264ad33874a8992a8d5858b7 (affected · git)5256edcb98a14b11409a2d323f56a70a8b366363 to < 7cc8f681f6d4ae4478ae0f60485fc768f2b450da (affected · git)5256edcb98a14b11409a2d323f56a70a8b366363 to < edfb65dbb9ffd3102f3ff4dd21316158e56f1976 (affected · git)5256edcb98a14b11409a2d323f56a70a8b366363 to < d3d930411ce390e532470194296658a960887773 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.5 (affected)0 to < 5.5 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.160 through 6.6.* (unaffected · semver)6.12.13 through 6.12.* (unaffected · semver)6.13.2 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-416 CWE-416 Use After Free (CISA-ADP · adp)

References

5

Provider assertions

2

Linux · cna

RDMA/mlx5: Fix implicit ODP use after free

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
0ca64bf9f3d0ed14f8fb915d17c22cd67e98ad2662a75b7d8ad2f705dba65aba
Ingested
30 Oct 2026, 12:31:36 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected