Overview
CVE-2026-143163 addresses a NULL pointer dereference in the net/mlx5e Ethernet driver of the Linux kernel — the driver that backs Mellanox (NVIDIA) ConnectX-family network interface cards. The defect is reached through the generic netdev queue statistics dump interface and produces a kernel oops; no memory corruption or privilege escalation is associated with it. The crash was reproduced in production fleet telemetry and the corresponding upstream commit has been merged, resolving the issue at the source.
The advisory explicitly notes that the triggering dump requires no privileges, meaning any local process — including unprivileged users, container workloads, or monitoring agents — can hit the vulnerable code path on a host where mlx5e is loaded and the queue state is mismatched.
Technical Details
The crash signature reported is:
mlx5e_get_queue_stats_rx+0x4c/0xc8(P)
netdev_stat_queue_sum+0x78/0x480
netdev_nl_qstats_get_dump_one+0xf0/0x268
netdev_nl_qstats_get_dumpit+0x7c/0x1f8
Root Cause
The defect stems from an inconsistency between two notions of "how many queues exist" in the mlx5e driver:
- The netdev core, when dumping device-wide queue statistics, iterates over every queue index below
real_num_{rx,tx}_queuesand invokes the driver's per-queue statistics callbacks — independently of whether the netdev is up.
- mlx5e's per-queue callbacks assume that a backing statistics object exists for each index, but that assumption does not hold in several legitimate states:
- RX: statistics live in priv->channel_stats[], which only has valid entries for the channels that were actually opened (tracked as stats_nch). real_num_rx_queues can legitimately exceed stats_nch — for example when the channel count is raised while the netdev is down, or when channel opening fails partway through.
- TX: statistics are read from priv->txq2sq_stats[], which is NULL for send queues (SQs) that were never activated and also for HTB queues while channels remain closed.
In both cases the callback dereferences a NULL pointer and the kernel oopses.
Fix Shape
The upstream change adds early-return paths: skip the RX statistics read for queues at or above stats_nch, and skip the TX statistics read for queues whose SQ statistics pointer is not initialised. The CVE record's "has been resolved" wording indicates the fix has landed upstream.
Affected Systems
- Product: Linux kernel,
net/mlx5eEthernet driver.
- Hardware prerequisite: Hosts with a Mellanox/NVIDIA ConnectX-family NIC, with the mlx5e driver loaded. Hosts without this hardware are not exposed.
- Version scope: The advisory supplied in this analysis does not enumerate affected kernel version numbers. Exact vulnerable upstream and distribution kernel release ranges, as well as stable and enterprise backport branches, need to be confirmed against the upstream commit and distributor security advisories.
- Reachability precondition: A queue state mismatch must exist at the moment the qstats dump is issued — i.e., an unopened/partially-opened channel set, an increased channel count done while the interface is down, unactivated TX send queues, or HTB queues with channels closed.
Mitigation
Primary mitigation: deploy a kernel package that contains the upstream fix and reboot into it.
- Identify hosts where
mlx5eis loaded (i.e., where a ConnectX NIC is present and the driver is in use).
- Check the distribution's security advisories and the upstream stable tree for the
"net/mlx5e: Fix queue stats access to queues without stats"backport.
- Apply the patched kernel and reboot. Driver fixes require a full reboot for the live kernel, or a disruptive unload/reload of mlx5e, which is generally impractical on production systems with active traffic.
Interim workarounds, if the patched kernel cannot be deployed immediately:
- Restrict access to the netlink queue statistics dump interface for unprivileged processes (for example by narrowing netlink socket access or moving vulnerable workloads into restricted namespaces).
- Avoid creating the queue/state mismatch in the first place — do not raise the channel count while the interface is down and do not leave HTB queue configurations in place when the channels are closed.
- On hosts awaiting patching, audit which monitoring/telemetry agents periodically scrape per-queue statistics, since a routine scrape during a mismatched state is itself a trigger — a reminder that this bug is reachable through a legitimate, unprivileged interface that the kernel cannot easily distinguish from normal use.
Detection
Detection is primarily crash-based rather than exploit-based:
- Watch kernel logs for oops entries naming
mlx5e_get_queue_stats_rx(and the related TX-side call sites) with the call chain throughnetdev_stat_queue_sum,netdev_nl_qstats_get_dump_one,netdev_nl_qstats_get_dumpit. The reported instruction offsets are a useful fingerprint.
- Alert on any kernel oops or panic involving the
mlx5emodule and correlate timestamps with qstats dump activity from monitoring tooling.
- Inventory hosts running the mlx5e driver and, on those hosts, understand which local users and container workloads have effective netlink access, because the act of issuing the dump cannot itself be distinguished from benign operation.
- On patched hosts, confirm the loaded module version contains the early-return paths; verify against the kernel build alongside the fix.
Residual Uncertainties
The following cannot be resolved from the supplied material and should be confirmed against the upstream commit and distributor advisories:
- Precise vulnerable and fixed upstream kernel version ranges.
- Whether the TX-side path was addressed in the same commit as the RX-side trace shown in the advisory.
- Whether other mlx5e statistics callbacks share the same assumption and would benefit from the same early-return treatment.
- The CVSS vector and score assigned to CVE-2026-143163 — none was provided in the context consulted for this article.
- Which distribution branches (Debian, Ubuntu, RHEL, SUSE, vendor enterprise kernels) received backports and when.
The reporter's own framing — that the crash was observed in fleet operation rather than as a targeted attack — is itself the most operationally useful signal: the practical priority is ensuring the patched kernel reaches every host carrying mlx5e hardware.