Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-68139

CVE-2026-68139: Linux Kernel Privilege Escalation Flaw

CVE-2026-68139 is a privilege escalation vulnerability in the Linux kernel's net/mlx5e driver that can cause NULL pointer dereference during PCIe recovery. This article covers technical details, affected systems, and mitigation.

Published:

CVE-2026-68139 Overview

CVE-2026-68139 is a NULL pointer dereference in the Linux kernel net/mlx5e driver. The flaw occurs during multiport (MPV) affiliation replay after a PCIe Downstream Port Containment (DPC) recovery event. When mlx5 reloads affected functions and replays MLX5_DRIVER_EVENT_AFFILIATION_DONE, a peer can receive a master-up event before its priv->devcom backpointer has been populated. The resulting dereference in mlx5_devcom_comp_set_ready triggers a kernel panic.

Critical Impact

A kernel NULL pointer dereference during PCI error recovery causes a host panic on systems using Mellanox ConnectX multiport RDMA affiliation.

Affected Products

  • Linux kernel net/mlx5e driver (Mellanox ConnectX Ethernet)
  • Linux kernel mlx5_ib RDMA multiport binding subsystem
  • Systems using MPV (multiport virtualization) affiliation with PCIe DPC recovery

Discovery Timeline

  • 2026-08-10 - CVE-2026-68139 published to NVD
  • 2026-08-10 - Last updated in NVD database

Technical Details for CVE-2026-68139

Vulnerability Analysis

The vulnerability resides in the mlx5 Ethernet driver's MPV devcom event handling. After PCIe DPC containment recovers a failed function, the driver resumes the affected PCI device and replays multiport affiliation events. The RDMA layer calls mlx5_ib_bind_slave_port, which sends MPV_DEVCOM_MASTER_UP through mlx5_devcom_send_event. The handler mlx5e_devcom_event_mpv then invokes mlx5_devcom_comp_set_ready on the peer's priv->devcom pointer.

The crash trace shows the fault at mlx5_devcom_comp_set_ready+0x5/0x40 with RDI: 0000000000000000, confirming the peer devcom pointer is NULL when accessed. This is a classic ordering bug in cross-device event delivery during recovery.

Root Cause

MPV devcom registration publishes mlx5e private data to the component peer list before mlx5e_devcom_init_mpv() stores the returned component device in priv->devcom. A concurrent master-up event can therefore reach a peer whose private data is visible on the peer list but whose priv->devcom backpointer has not yet been assigned. Dereferencing that NULL pointer during mlx5_devcom_comp_set_ready panics the kernel [CWE-476].

Attack Vector

CVE-2026-68139 is not a remote attack surface. Triggering the condition requires a PCIe DPC containment event on a multiport-capable mlx5 device, followed by driver reload and affiliation replay. The reported crash occurred during legitimate PCI error recovery, indicating this is a reliability and availability defect rather than a directly attacker-controlled path.

The fix changes the handler to use the sender/master devcom carried in the event's event_data when marking the MPV component ready. The readiness bit lives on the shared devcom component, so the sender's pointer is functionally equivalent and always valid, avoiding the peer NULL dereference.

Detection Methods for CVE-2026-68139

Indicators of Compromise

  • Kernel panic messages referencing mlx5_devcom_comp_set_ready in the call stack
  • Preceding pcieport ... DPC: containment event and PCIe Bus Error: severity=Uncorrected (Fatal) entries in dmesg
  • Call trace including mlx5e_devcom_event_mpv, mlx5_ib_bind_slave_port, mlx5r_mp_probe, and mlx5_pci_resume

Detection Strategies

  • Inventory kernel versions on hosts using Mellanox ConnectX adapters with RDMA multiport binding and compare against fixed stable trees
  • Correlate PCIe AER/DPC events with subsequent kernel oops or panic reports on affected hosts
  • Monitor /var/log/kern.log and journalctl -k for the specific fault instruction pointer signature

Monitoring Recommendations

  • Aggregate kernel crash telemetry (kdump, pstore, or vendor equivalents) to a central log store for cross-host analysis
  • Alert on any DPC containment event to trigger proactive validation of driver recovery paths
  • Track uptime regressions on RDMA/mlx5 hosts as an indirect indicator of the panic

How to Mitigate CVE-2026-68139

Immediate Actions Required

  • Apply the upstream stable kernel updates that include the sender-devcom fix for MPV master-up handling
  • Prioritize patching on hosts running RDMA multiport binding over Mellanox ConnectX adapters
  • Validate PCI error recovery paths in a staging environment after patching to confirm no regressions

Patch Information

The fix is available in the upstream Linux stable tree. Relevant commits: 40f9a124ebbe, a60c81f168c9, c698b2735613, and e32649b4bad9. The patch uses the sender devcom (already carried in event_data) when calling mlx5_devcom_comp_set_ready, preserving the readiness transition without dereferencing the peer's uninitialized priv->devcom.

Workarounds

  • No official workaround exists; the condition depends on hardware error recovery timing
  • Where feasible, disable MPV multiport affiliation on affected hosts until patches are deployed
  • Reduce exposure to DPC-triggered reloads by addressing underlying PCIe link errors reported in dmesg

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.