CVE-2026-143163: net/mlx5e: Fix queue stats access to queues without stats
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Fix queue stats access to queues without stats
I am seeing the following mlx5e crash in the Meta fleet:
pc : mlx5egetqueuestatsrx+0x4c/0xc8 Call trace: mlx5egetqueuestatsrx+0x4c/0xc8 (P) netdevstatqueuesum+0x78/0x480 netdevnlqstatsgetdumpone+0xf0/0x268 netdevnlqstatsgetdumpit+0x7c/0x1f8
When dumping device-wide qstats, the core calls the per-queue callbacks for every queue below realnum{rx,tx}queues, regardless of whether the netdev is up. Some of those queues have no stats behind them:
- RX stats live in priv->channelstats[], which only has entries for channels that have been opened (statsnch). realnumrxqueues can be larger, for example after the channel count is raised while the netdev is down, or after opening the channels failed part way.
- TX stats are looked up in priv->txq2sqstats[], which is NULL for SQs that were never activated and for HTB queues while the channels are closed.
In both cases the callback dereferences a NULL pointer. The dump needs no privileges, so any user can trigger it.
Return early for RX queues at or above statsnch and for TX queues without SQ stats.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Who can trigger the crash?
Any local user can trigger the device-wide queue-statistics dump because the dump requires no privileges. Systems using the mlx5e network driver are exposed when queues exist without corresponding statistics storage.
What conditions make the affected queues possible?
RX queues can lack statistics after the channel count is increased while the network device is down, or when opening channels fails part way through. TX queues can lack statistics when their send queues were never activated, or for HTB queues while channels are closed.
What is the impact of triggering the issue?
The queue-statistics callback can dereference a NULL pointer while handling the dump, causing an mlx5e kernel crash. The reported call trace occurs through the netdev queue-statistics dump path.
How does the fix prevent the crash?
The fix returns early for RX queues at or above the number of channels with statistics, and for TX queues that have no associated send-queue statistics. This avoids dereferencing missing statistics pointers.