7.8

CVE-2025-21751: net/mlx5: HWS, change error flow on matcher disconnect

Modified
AliasesUBUNTU-CVE-2025-21751DEBIAN-CVE-2025-21751CGA-24wh-4hp9-fm6j
Published 27-02-2025Last modified 05-08-2026

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.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.23%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 4

Timeline

  1. 27-02-2025
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

10 links