CVE-2025-21751: Linux kernel · net/mlx5: HWS, change error flow on matcher disconnect
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 24 Nov 2026, 19:47 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-gcp-6.11pkg:deb/ubuntu/linux-gcp-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-hwe-6.11pkg:deb/ubuntu/linux-hwe-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-intelpkg:deb/ubuntu/linux-intel?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-lowlatency-hwe-6.11pkg:deb/ubuntu/linux-lowlatency-hwe-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-nvidia-6.11pkg:deb/ubuntu/linux-nvidia-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch has been applied to correct the error handling in the mlx5 driver to prevent use-after-free crashes. Users should update to a fixed Linux kernel version containing this patch. Since this is a kernel-level vulnerability, applying the vendor-provided kernel updates is the recommended remediation. No additional mitigations are indicated.
Description
CVE-2025-21751 is a high-severity vulnerability in the Linux kernel's mlx5 network driver. It involves improper error handling during the matcher disconnect flow when a firmware failure occurs. The flawed error flow attempts to reconnect a matcher that is being disconnected, leading to a use-after-free condition and potential system crash. The patch changes the error handling to avoid reconnecting on firmware command failure, preventing crashes but possibly causing resource leakage or incorrect steering states.
References
- ubuntu.com/security/CVE-2025-21751 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-21751 (opens in a new tab)
- git.kernel.org/linus/1ce840c7a659aa53a31ef49f0271b4fd0dc10296 (opens in a new tab)
- git.kernel.org/stable/c/1ce840c7a659aa53a31ef49f0271b4fd0dc10296 (opens in a new tab)
- git.kernel.org/stable/c/23a86c76a1a197e8fbbbd0ce3e826eb58c471624 (opens in a new tab)