CVE-2026-139643: Linux kernel mlx5 RDMA destroys shared steering resources on a failed anchor create

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

mlx5_ib is the InfiniBand and RoCE driver for NVIDIA’s ConnectX adapters, and a steering anchor is a user-created point in the adapter’s flow-steering pipeline that lets a verbs application direct packets of a given priority into its own tables. The kernel CNA record says the anchor resources “are shared between anchors with the same priority and are protected by rule_goto_table_ref. When steering anchor creation succeeds but uverbs_copy_to() fails, the error path drops the reference acquired for the new anchor. However, it unconditionally calls mlx5_steering_anchor_destroy_res(), even when other anchors are still using the shared resources”, which “can destroy the shared flow table, flow groups, and rules while existing anchors still hold references to them, resulting in a use-after-free when those anchors are subsequently cleaned up.” Red Hat rates it Important at 7.8 as a local escalation. On hosts with ConnectX adapters where users other than root can open the verbs device, upgrade to 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later and reboot.

CVE-2026-139643 at a glance.

ComponentLinux kernel, mlx5 InfiniBand driver flow steering (drivers/infiniband/hw/mlx5/fs.c), the CREATE_STEERING_ANCHOR uverbs method and mlx5_steering_anchor_destroy_res(), module mlx5_ib
Affected versionsfrom e1f4a52ac171, the 6.4 commit that added steering anchors, and its backports into 6.1.35 (ec6d4968) and 6.3.9 (5e118e20): 6.1.35 up to 6.1 before 6.1.193, 6.3.9 up to 6.4, 6.4 up to 6.6 before 6.6.163, 6.12 before 6.12.119, 6.18 before 6.18.65, 7.3 before 7.3.6 and 7.4 before 7.4-rc1
Fixed inmainline 7.4-rc1 (commit 193aaf5b, “Guard steering anchor resource destruction on create error”: the shared resources are destroyed only “when dropping the reference makes rule_goto_table_ref zero, consistent with the existing cleanup path”) and stable 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6; six commits in the record
SeverityRed Hat Important, CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, draft, CWE-825 expired pointer dereference), bug 2587174; the kernel CNA gives no score and NVD (Received, 30 November) carries none; Ubuntu could not be read on 2 December 2026 (server error), nor could SUSE
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00172 (7th percentile) on 2 December 2026
Who is exposedHosts with a ConnectX adapter driven by mlx5_ib where a local account can open the verbs device and create steering anchors: RDMA storage and HPC nodes, and any machine where the rdma group or a container holds the node. The trigger is a failed copy-out, which the caller controls by handing the kernel an unwritable result buffer, so the race is deterministic for the attacker. Red Hat’s statement: “an unauthenticated local user with access to the RDMA subsystem can corrupt kernel memory, potentially leading to full system compromise”, exploitation “requires NVIDIA Mellanox ConnectX hardware with the mlx5 InfiniBand driver active and user-space verbs accessible”, and RHEL 8, 9 and 10 kernel are affected, RHEL 7 is not
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

Creating a steering anchor for a priority that already has one reuses the flow table, flow groups and goto rules the first anchor built, and bumps rule_goto_table_ref; destroying an anchor drops the count and frees the shared set only when it reaches zero. The create path had one error branch that did not follow the rule. After the anchor is built, the driver copies the anchor’s identifiers back to the caller with uverbs_copy_to(); if that copy fails, the driver unwinds by dropping the reference and then calling the destroy function unconditionally. If another anchor of the same priority exists, the shared table goes away underneath it, and when that anchor is later destroyed, the driver walks pointers to freed flow-steering objects.

The copy fails when the user buffer is not writable, which the calling process chooses, so there is no race to win: create anchor A, create anchor B with an invalid output pointer, then destroy A. The freed objects are the adapter’s software flow-steering state, and reusing that memory between the free and the final cleanup is the usual path from a use-after-free to a write. Red Hat scores it as local, low privilege, full impact; the privilege is the ability to open the verbs node, which the driver itself does not grant to ordinary users but which RDMA deployments routinely grant to a group.

The fix makes the error path behave like the normal destroy path: destroy the shared resources only when the reference count reaches zero. The code dates from the 6.4 cycle but was backported into the 6.1 and 6.3 stable series at the time, which is why 6.1 appears in the affected range from 6.1.35. git.kernel.org refuses automated readers, so the diff is described from the CNA’s copy of the commit message.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. Every distribution kernel builds mlx5_ib; it loads only with a ConnectX adapter present.

DistributionStatusFixed package
AlpineNot consulted for this page—
Debianbookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; forky and sid (7.3.6-1) fixed; no DSAunstable 7.3.6-1
UbuntuNot consulted: ubuntu.com returned a server error to the automated reader on 2 December 2026 (NVD and Red Hat carry no Ubuntu status)—
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2587174, CWE-825); kernel affected in RHEL 8, 9 and 10, kernel-rt affected in 8 and not in 9, the OpenShift 4 RHEL 9 and OpenShift 5 images affected; RHEL 7 and 6 not affected; no errata on 2 December 2026—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later

How to check

Is a ConnectX adapter present with the InfiniBand driver loaded, who can open its verbs device, and is the running kernel fixed. The first question settles it for most machines.

# 1. is the mlx5 InfiniBand driver loaded and bound
lsmod | grep -E '^mlx5_ib'
ls /sys/class/infiniband/ 2>/dev/null
rdma link 2>/dev/null

# 2. the running kernel: affected from 6.1.35 / 6.4; fixed in 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later
uname -r

# 3. who can open the verbs device nodes
ls -l /dev/infiniband/uverbs* 2>/dev/null
getent group rdma
grep -rl uverbs /etc/udev/rules.d/ /usr/lib/udev/rules.d/ 2>/dev/null

No mlx5_ib module means the page does not apply; the Ethernet side of the adapter, mlx5_core alone, does not expose steering anchors. A loaded module on an affected kernel is the exposed case for every account that can open a uverbs node, which the udev rules in step 3 decide; on RDMA-enabled hosts that is commonly a group rather than root, and in Kubernetes it is any pod granted the RDMA device.

How to fix it

Install the fixed kernel and reboot; the driver stays bound to the adapter until then. Where that must wait, the device node is the lever.

# Debian forky / sid (7.3.6-1) carry the fix; bookworm and trixie: watch the tracker row above
apt update && apt install linux-image-amd64 && systemctl reboot
# RHEL 8 / 9 / 10, Rocky, Alma: affected, no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot
# Ubuntu: tracker unreadable on 2 December 2026; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# Stop-gap: keep the verbs nodes to root until the reboot (breaks unprivileged RDMA applications)
chmod 600 /dev/infiniband/uverbs* /dev/infiniband/rdma_cm

Taking the node away from the rdma group stops every unprivileged verbs application, including storage initiators that run as a service user, so it is a stop-gap for hosts where that is acceptable. What not to do: do not unload mlx5_ib on a host whose storage or MPI traffic uses RDMA to close the window, which drops every session at once; and do not treat a kernel on the 6.1 series as too old to be in range, since the 6.1.35 backport put the feature there.

Sources

  • CVE-2026-139643 at CVE.org — the kernel CNA record: the shared resources and rule_goto_table_ref, the failed uverbs_copy_to, the unconditional destroy, the later use-after-free, the reference-count fix, the version ranges including the 6.1.35 and 6.3.9 backports (30 November 2026)
  • Fix commit 193aaf5b (mainline 7.4-rc1, the commit Debian cites) and the stable backports afbc6bff, 39d75217, d15ce29a, a6fb3824, eb5d0453; git.kernel.org refuses automated readers, so the change is described from the CNA record and the trackers
  • NVD entry — Received on 30 November 2026; no CVSS metric, CWE or CPE on 2 December 2026
  • Distribution trackers: Debian (bookworm and trixie vulnerable, unstable fixed in 7.3.6-1) · Red Hat (Important 7.8, bug 2587174, CWE-825; RHEL 8, 9 and 10 affected, 7 not; the statement on ConnectX hardware; package states read from the security-data API) · Ubuntu (server error on both attempts on 2 December 2026, not consulted) · SUSE (refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00172 (percentile 0.069) on 2 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.