CVE-2026-139136: net/mlx5: Only set num_doorbells on a fully initialized SF
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: Only set numdoorbells on a fully initialized SF
The validation for the numdoorbells devlink param rejects values greater than numchannels. For lightweight SFs, this ends up accessing a NULL priv->eqtable, leading to a crash.
Fix that by rejecting setting numdoorbells on uninitialized SFs.
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.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Which systems are exposed to this crash condition?
Systems using the Linux kernel mlx5 networking driver are exposed when they use lightweight subfunctions (SFs) that have not been fully initialized. The issue is triggered through the num_doorbells devlink parameter.
What does an attacker or operator need to do to trigger the issue?
They need to attempt to set num_doorbells on an uninitialized lightweight SF. Validation may access the SF's NULL priv->eq_table and crash the kernel.
Is there a workaround if the fix cannot be deployed immediately?
Do not set the num_doorbells devlink parameter on lightweight SFs until they are fully initialized. In particular, avoid parameter changes targeting uninitialized SFs.
How can administrators tell whether they may be affected?
Review whether mlx5 lightweight SFs are in use and whether automation or operators set the num_doorbells devlink parameter during or before SF initialization. A kernel crash associated with validation of that parameter is consistent with this issue.