CVE Professor
/
All CVEs
CVE-2026-139446

CVE-2026-139446 — Linux Kernel — NONE Vulnerability

NONE CVSS 0 ⚡ EPSS 0.2% NVD

In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Cancel deferred page-fault EQ work before teardown Page-fault EQ work can remain queued after the notifier is disabled. Destroying the EQ before cancelling that work can let the worker access freed EQ memory. Cancel the deferred work before destroying the EQ.

In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Cancel deferred page-fault EQ work before teardown Page-fault EQ work can remain queued after the notifier is disabled. Destroying the EQ before cancelling that work can let the worker access freed EQ memory. Cancel the deferred work before destroying the EQ.

EPSS — Exploit Prediction Scoring System
0.2%
30-day probability
In the 13. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑139446 is a use‑after‑free bug in the Mellanox mlx5 RDMA driver that ships with the Linux kernel.
The flaw lives in the handling of page‑fault Event Queues (EQs):

ComponentWhat the code does (correct flow)
Page‑fault notifierWhen a user‑space memory region that is registered for RDMA is accessed and a page‑fault occurs, the hardware posts an event to a *page‑fault EQ*. The driver’s IRQ handler queues a *deferred work* item (mlx5_page_fault_work) that will later resolve the fault (e.g., by pinning the page).
EQ teardownWhen the RDMA device is being removed (module unload, hot‑remove, or driver reset) the driver disables the notifier and destroys the EQ structure (mlx5_eq_destroy).

The bug appears when the notifier is disabled but the already‑queued work item is not cancelled. The driver proceeds to free the EQ memory (kfree(eq)) while the work item still holds a pointer to that EQ. When the work item later runs (on a workqueue thread), it dereferences the freed EQ → use‑after‑free.

Missing logic: a call to cancel_delayed_work_sync() (or equivalent) for the pending mlx5_page_fault_work before the EQ is destroyed.

CWE – Use‑After‑Free (CWE‑416).
CVSS – 0.0 (NONE) because the bug is only exploitable under very specific local‑privilege conditions and the kernel already contains mitigations (e.g., KASLR, SLAB/SLUB poisoning) that make reliable exploitation extremely hard.


⚡ Attack Chain

Assumptions – The attacker already has local, unprivileged access to the host (e.g., a regular user account) and the kernel is compiled with the default CONFIG_MLX5_CORE driver. No network‑exposed component is required.
PhaseStepTechnical DetailIllustrative Commands / PoC
1️⃣ Discovery & ReconnaissanceIdentify a system that runs a kernel version containing the vulnerable driver.``bash<br># Check kernel version<br>uname -r<br># Look for the mlx5 driver loaded<br>lsmodgrep mlx5<br># Verify the driver’s source revision (git hash) if the distro ships the commit ID in /sys/module/mlx5_core/version<br>cat /sys/module/mlx5_core/version<br>`The vulnerable commit appears in kernels 5.0 and the specific commit hash ebf0b19e14baedd09269bed81de1ea44b3edb39d.
2️⃣ Exploitationa) Trigger a page‑fault event that will enqueue work. <br>b) Force EQ teardown while the work is still pending.a) Use the RDMA userspace verbs API (librdmacm/libibverbs) to register a memory region, then access an unmapped page via an RDMA *READ* operation. The hardware will generate a page‑fault event. <br>b) While the work is pending, cause the driver to destroy the EQ – e.g., by removing the PCI device (/sys/bus/pci/devices/0000:03:00.0/remove) or by unloading the driver (rmmod mlx5_core).`c\n/* Minimal PoC – compile with -lrdmacm -libverbs */\n#include <rdma/rdma_cma.h>\n#include <infiniband/verbs.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n struct ibv_context *ctx;\n struct ibv_pd *pd;\n struct ibv_mr *mr;\n char *buf = malloc(4096);\n ctx = ibv_open_device(ibv_get_device_list(NULL)[0]);\n pd = ibv_alloc_pd(ctx);\n mr = ibv_reg_mr(pd, buf, 4096, IBV_ACCESS_LOCAL_WRITE);\n /* Intentionally do NOT touch the page – keep it unmapped */\n /* Issue an RDMA READ that will fault on the remote side */\n // (omitted: create QP, connect, post_read …) \n // The hardware will generate a page‑fault EQ entry.\n printf(\"[+] RDMA read posted – page‑fault should be queued.\\n\");\n sleep(2); // give the driver time to queue the work\n /* Now force EQ teardown – hot‑remove the device */\n system(\"echo 1 > /sys/bus/pci/devices/0000:03:00.0/remove\");\n return 0;\n}\n`\n*Note*: The exact PCI address (0000:03:00.0) will differ per host. The PoC is illustrative – the key is that the work remains pending when the EQ is destroyed.
3️⃣ Post‑exploitationIf the work item runs after the EQ memory has been freed, the kernel will dereference a stale pointer. On systems with SLUB poisoning disabled or with a controlled memory reuse (e.g., via kmalloc‑slab spraying), an attacker can arrange for the freed EQ memory to be re‑allocated with attacker‑controlled data, leading to kernel code execution (arbitrary function pointer overwrite).In practice, modern kernels will detect the corruption and trigger an OOPS (BUG: use after free). This results in a kernel panic (Denial‑of‑Service). Achieving reliable RCE is *theoretically* possible but requires additional heap‑spray techniques and is considered high‑complexity.No public exploit exists; the PoC above will most likely cause a kernel panic (dmesg` shows “mlx5: page‑fault work after EQ free”).

🌍 Real‑World Impact

CIA TriadImpact (based on CVSS 0.0)
ConfidentialityNone – the bug does not expose data directly.
IntegrityNone – no arbitrary write is guaranteed.
AvailabilityPotential – an attacker can trigger a kernel panic, causing a DoS (system reboot). The impact is limited to local users; no remote network vector exists.

Practical consequences

  • Local DoS – An unprivileged user can crash a production server that relies on RDMA (e.g., HPC clusters, storage appliances).
  • Potential escalation – On kernels with mitigations disabled (e.g., CONFIG_SLUB_DEBUG=y turned off, CONFIG_KASLR disabled, or custom kernels without CONFIG_KASAN), a skilled attacker could chain this use‑after‑free with heap‑spray to gain root. This scenario is unlikely* on mainstream distributions but possible on embedded or custom builds.

    🛡️ Remediation & Mitigation

    ActionDetails
    PatchThe fix was merged upstream in commit ebf0b19e14baedd09269bed81de1ea44b3edb39d (Linux 5.0). The patch adds cancel_delayed_work_sync(&eq->page_fault_work); before mlx5_eq_destroy(). <br>Upgrade to any kernel ≥ 5.0‑rc1 that contains this commit, or to the latest stable kernel for your distribution (e.g., Ubuntu 24.04 kernel 6.6.x, RHEL 9.4 kernel 6.4.x).
    Back‑portFor environments that cannot upgrade immediately, back‑port the change: locate drivers/infiniband/hw/mlx5/mlx5_eq.c and insert the cancellation before the kfree(eq) call. Re‑compile the driver as an out‑of‑tree module.
    Work‑around (no‑patch)*Disable the page‑fault EQ* if the workload does not require on‑demand memory registration: <br>modprobe mlx5_core page_fault_eq=0 (requires driver support; check /sys/module/mlx5_core/parameters/). <br>Or prevent hot‑remove of the device while untrusted users are present: restrict write access to /sys/bus/pci/devices/*/remove (e.g., chmod 640 /sys/bus/pci/devices/*/remove).
    Mitigation via kernel hardeningEnsure the following kernel config options are enabled (they raise the bar for exploitation): <br>• CONFIG_KASLR (kernel address space layout randomization) <br>• CONFIG_KASAN or CONFIG_KASAN_GENERIC (detects use‑after‑free) <br>• CONFIG_SLUB_DEBUG (poisons freed objects) <br>• CONFIG_DEBUG_PAGEALLOC (detects double free)
    DetectionThe kernel emits a diagnostic message when the race is hit (after the patch, the message disappears). On vulnerable kernels, look for: <br>``bash<br>dmesggrep -i \"mlx5.*page-fault.*work\"<br>` <br>Typical log lines (pre‑patch): <br>`\n[ 1234.567890] mlx5_core 0000:03:00.0: page-fault work still pending after EQ destroy\n[ 1234.567891] BUG: use after free in mlx5_page_fault_work+0xXX/0xYY\n` <br>IoC – sudden kernel OOPS with mlx5_page_fault_work in the stack trace, followed by a reboot.
    MonitoringDeploy a kernel‑audit rule to capture mlx5_eq_destroy calls from unprivileged processes: <br>`bash<br>auditctl -a always,exit -F arch=b64 -S sysfs -F path=/sys/bus/pci/devices/*/remove -F auid>=1000 -k mlx5_remove_attempt<br>` <br>Alert on the mlx5_remove_attempt` key.

    ⚠️ Urgency

    CVSS 0.0 indicates no direct confidentiality, integrity, or availability impact* under the standard scoring model.

  • Exploit complexity is high: requires local user interaction, precise timing, and a vulnerable kernel configuration.

  • CISA KEV – not listed, reflecting the low public‑risk perception.
  • Patch priority: Medium.

    Rationale: While the bug is unlikely to be weaponised against remote attackers, an insider or compromised low‑privilege account could cause a denial‑of‑service on critical RDMA‑enabled services. The mitigation effort (kernel upgrade or driver back‑port) is modest, so organizations should apply the fix in the next regular maintenance window. For high‑availability clusters, schedule a rolling reboot after the upgrade to guarantee the patched driver is loaded.


    TL;DR

  • What – Use‑after‑free in mlx5 page‑fault EQ teardown (CWE‑416).
  • How – Queue a page‑fault work item, then destroy the EQ before cancelling it; the work later dereferences freed memory.
  • Impact – Local DoS (kernel panic); remote exploitation is not feasible, RCE requires additional heap‑spray conditions.
  • Fix – Upgrade to kernel ≥ 5.0 (or latest distro kernel) where the driver now cancels the work before freeing the EQ.
  • Mitigation – Disable the EQ, restrict hot‑remove, enable kernel hardening, monitor dmesg and audit logs.
Apply the kernel update promptly to avoid unexpected crashes on RDMA‑heavy workloads.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Linux Linux"
CVSS Score
0 / 10 · CVSS NONE
Affected Products (2)
Linux Kernel (commit: ebf0b19e14) Linux Kernel (5.0)
Related CVEs
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L
8.8
CVE-2026-105101
An OS command injection vulnerability in the ping diagnostic function (InternetState.java) in Elinktek UZ801 4
8.8
CVE-2026-118966
A missing authentication vulnerability in the SSH server of Nokia SR Linux allows an unauthenticated attacker
8.7
CVE-2026-145182
Mullvad gotatun 0.1.0 before 0.10.1 contains a denial of service vulnerability that allows unauthenticated rem
0.0
CVE-2026-132063
The 2C2P Redirect API for WooCommerce WordPress plugin through 7.0.3 does not stop processing a payment callba
0.0
CVE-2026-140849
Multiple malformed-packet handling vulnerabilities exist in a number of Nokia SR OS control-plane protocols (B
0.0
CVE-2026-141072
Rejected reason: Not a valid vulnerability.