CVE-2025-21662
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21662 is a vulnerability discovered in the Linux kernel's net/mlx5 driver. The issue was identified and disclosed on January 21, 2025, affecting the variable completion mechanism when a function returns in the mlx5 network driver. This vulnerability specifically impacts the cmdworkhandler() function when cmdallocindex() fails, where ent->slotted is not properly completed before returning early (NVD, Debian Tracker).

Technical details

The vulnerability occurs in the Linux kernel's mlx5 network driver where the cmdworkhandler() function fails to complete the ent->slotted variable before an early return when cmdallocindex() fails. This oversight can lead to task hanging, as demonstrated in the error message: 'mlx5core 0000:01:00.0: cmdwork_handler:877:(pid 3880418): failed to allocate command entry'. The issue was traced back to a previous patch '485d65e13571' which added a timeout to acquire the command queue semaphore (Kernel Commit).

Impact

When exploited, this vulnerability can cause system tasks to become blocked for extended periods (documented cases showing blocks of more than 120 seconds), particularly affecting workqueue events and mlx5etxdim_work operations. This can lead to significant system performance degradation and potential denial of service conditions (NVD).

Mitigation and workarounds

The vulnerability has been patched in various Linux kernel versions. Debian has released fixes in version 6.1.128-1 for bookworm and 5.10.234-1 for bullseye. The fix involves adding a complete(&ent->slotted) call before the early return in the cmdworkhandler() function (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management