CVE-2025-21751: net/mlx5: HWS, change error flow on matcher disconnect
Vulnerability summary
CVE-2025-21751 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 14.4% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 4Timeline
- 27-02-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, change error flow on matcher disconnect Currently, when firmware failure occurs during matcher disconnect flow, the error flow of the function reconnects the matcher back and returns an error, which continues running the calling function and eventually frees the matcher that is being disconnected. This leads to a case where we have a freed matcher on the matchers list, which in turn leads to use-after-free and eventual crash. This patch fixes that by not trying to reconnect the matcher back when some FW command fails during disconnect. Note that we're dealing here with FW error. We can't overcome this problem. This might lead to bad steering state (e.g. wrong connection between matchers), and will also lead to resource leakage, as it is the case with any other error handling during resource destruction. However, the goal here is to allow the driver to continue and not crash the machine with use-after-free error.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.23% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu85 products
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
- linux-aws-5.13All versions (No fix recorded)
- linux-aws-5.19All versions (No fix recorded)
Chainguard5 products
- linux-aws-6.12< 6.12.68-r0 | < 6.12.72-r0 | < 6.12.67-r0 | < 6.12.71-r0 | < 6.12.76-r0 | < 6.12.70-r0 | < 6.12.62-r0 | < 6.12.78-r0 | < 6.12.65-r2 | < 6.12.77-r1 | < 6.12.57-r1 | < 6.12.62-r2 | < 6.12.74-r1 | < 6.12.74-r0 | < 6.12.65-r1 | < 6.12.62-r1 | < 6.12.77-r2 | < 6.12.68-r1 | < 6.12.65-r0 | < 6.12.77-r0 | < 6.12.57-r2 | < 6.12.60-r4 | < 6.12.69-r0 | < 6.12.80-r0 | < 6.12.63-r0 | < 6.12.66-r0 | < 6.12.72-r1
- linux-azure-6.12< 6.12.60-r3 | < 6.12.62-r2 | < 6.12.62-r0 | < 6.12.67-r0 | < 6.12.77-r2 | < 6.12.74-r1 | < 6.12.72-r0 | < 6.12.68-r0 | < 6.12.63-r0 | < 6.12.78-r0 | < 6.12.65-r1 | < 6.12.76-r0 | < 6.12.71-r0 | < 6.12.65-r4 | < 6.12.77-r1 | < 6.12.74-r0 | < 6.12.66-r0 | < 6.12.57-r2 | < 6.12.65-r2 | < 6.12.65-r3 | < 6.12.80-r0 | < 6.12.70-r0 | < 6.12.60-r4 | < 6.12.77-r0 | < 6.12.57-r1 | < 6.12.69-r0 | < 6.12.62-r1
- linux-gcp-6.12< 6.12.76-r0 | < 6.12.72-r0 | < 6.12.62-r1 | < 6.12.63-r0 | < 6.12.77-r2 | < 6.12.74-r1 | < 6.12.60-r3 | < 6.12.78-r0 | < 6.12.66-r0 | < 6.12.71-r0 | < 6.12.74-r0 | < 6.12.62-r0 | < 6.12.65-r0 | < 6.12.69-r0 | < 6.12.68-r1 | < 6.12.77-r0 | < 6.12.65-r2 | < 6.12.77-r1 | < 6.12.68-r0 | < 6.12.62-r2 | < 6.12.70-r0 | < 6.12.65-r1 | < 6.12.80-r0 | < 6.12.57-r1 | < 6.12.60-r4 | < 6.12.67-r0 | < 6.12.57-r2
- linux-qemu-6.12< 6.12.78-r0 | < 6.12.71-r0 | < 6.12.74-r1 | < 6.12.72-r0 | < 6.12.67-r0 | < 6.12.66-r0 | < 6.12.68-r0 | < 6.12.65-r2 | < 6.12.70-r0 | < 6.12.80-r0 | < 6.12.76-r0 | < 6.12.69-r0 | < 6.12.77-r0 | < 6.12.65-r1 | < 6.12.77-r1 | < 6.12.74-r0 | < 6.12.77-r2
- linux-vmware-6.12< 6.12.74-r1 | < 6.12.70-r0 | < 6.12.71-r0 | < 6.12.80-r0 | < 6.12.78-r0 | < 6.12.65-r1 | < 6.12.77-r2 | < 6.12.69-r0 | < 6.12.74-r0 | < 6.12.65-r2 | < 6.12.68-r0 | < 6.12.72-r0 | < 6.12.76-r0 | < 6.12.68-r1 | < 6.12.67-r0 | < 6.12.77-r1 | < 6.12.66-r0 | < 6.12.77-r0
Linux2 products
- linux≥ 472dd792348f6601ccaa97d5626ee4faff891901, < 5682aad0276ff9b9b0eff3188eb6a1f504d6b436 | ≥ 472dd792348f6601ccaa97d5626ee4faff891901, < 23a86c76a1a197e8fbbbd0ce3e826eb58c471624 | ≥ 472dd792348f6601ccaa97d5626ee4faff891901, < 1ce840c7a659aa53a31ef49f0271b4fd0dc10296 | 6.12
- linux_kernel< 6.13.3
Debian1 product
- linux< 6.12.48-1 | < 6.16.3-1
4 vendors · 93 products