Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-21751

published high CVSS 3.1 · 7.8

net/mlx5: HWS, change error flow on matcher disconnect

Published
27 Feb 2025, 02:12:22 UTC
Updated
05 Aug 2026, 11:54:07 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux472dd792348f6601ccaa97d5626ee4faff891901 to < 5682aad0276ff9b9b0eff3188eb6a1f504d6b436 · 472dd792348f6601ccaa97d5626ee4faff891901 to < 23a86c76a1a197e8fbbbd0ce3e826eb58c471624 · 472dd792348f6601ccaa97d5626ee4faff891901 to < 1ce840c7a659aa53a31ef49f0271b4fd0dc10296 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.12 (affected) · 0 to < 6.12 (unaffected · semver) · 6.12.48 through 6.12.* (unaffected · semver) · 6.13.3 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-948 Fixed Not stated Amazon Linux assessment
Debian trixie linux Advisory build 6.12.48-1 DSA-6008-1
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Amazon Linux AL2023 kernel6.12aarch64 Listed in advisory Not stated ALAS2023-2025-948
Show 62 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 8 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-326.222.4.el8uek ELSA-2026-500574
Oracle Linux 9 bpftoolaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 bpftoolx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-containeraarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-containerx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-docaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek64kaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek64k-coreaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek64k-develaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek64k-modulesaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Oracle Linux 9 kernel-uek64k-modules-extraaarch64 Advisory build 0:5.15.0-326.222.4.el9uek ELSA-2026-500574
Amazon Linux AL2023 kernel6.12src Listed in advisory Not stated ALAS2023-2025-948
Amazon Linux AL2023 kernel6.12x86_64 Listed in advisory Not stated ALAS2023-2025-948

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

4

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable `hws_matcher_disconnect()` is only reached from mlx5 control-plane operations — BWC matcher teardown and rehash driven by eswitch/TC-flower/conntrack hardware-offload configuration via netlink — not from received network packets. This matches the AV:L scoring of all sibling mlx5 HWS CVEs. AC:L - The freed-matcher-on-list condition only arises when a `MODIFY_FLOW_TABLE` firmware command fails mid-disconnect; however, an attacker able to drive matcher create/destroy churn can retry the operation indefinitely, and once the leak occurs the dangling list entry is deterministically dereferenced by the next connect/disconnect/debugfs walk, so exploitation is not gated on a race or on unknowable memory layout. PR:L - Reaching the matcher destroy/rehash path requires the ability to add and remove offloaded steering rules (TC flower / conntrack offload) on an mlx5 device, i.e. CAP_NET_ADMIN over the relevant netdev, which is obtainable by a low-privileged actor holding a delegated network namespace or VF/SF rather than requiring real root in the init namespace. UI:N - No victim action is needed; the freed matcher is left on `tbl->matchers_list` and is dereferenced by the driver's own subsequent steering operations with no user involvement. S:U - The corruption is confined to kernel slab memory and mlx5 steering state within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed. C:H - The stale entry is read by `list_first_entry`/`list_last_entry` in `table.c:298/408` and by the debugfs dump at `debug.c:233`, which serialises fields of the freed `struct mlx5hws_matcher` to userspace — a direct disclosure of reallocated kernel heap contents, and the UAF generally enables arbitrary read after heap grooming. I:H - `hws_matcher_connect()` performs `list_add`/`list_add_tail` through the dangling `list_node`, writing kernel pointers into freed memory that may already hold another object, giving a heap-corruption write primitive; stale `rtc_0_id`/`rtc_1_id` values are also programmed into hardware steering, corrupting packet-forwarding policy. A:H - The commit message states this "leads to use-after-free and eventual crash"; dereferencing the freed matcher reliably produces an oops/panic, and the resulting steering-state corruption also breaks packet forwarding on the NIC.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 472dd792348f6601ccaa97d5626ee4faff891901 to < 5682aad0276ff9b9b0eff3188eb6a1f504d6b436 (affected · git)472dd792348f6601ccaa97d5626ee4faff891901 to < 23a86c76a1a197e8fbbbd0ce3e826eb58c471624 (affected · git)472dd792348f6601ccaa97d5626ee4faff891901 to < 1ce840c7a659aa53a31ef49f0271b4fd0dc10296 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.12 (affected)0 to < 6.12 (unaffected · semver)6.12.48 through 6.12.* (unaffected · semver)6.13.3 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-416 CWE-416 Use After Free (CISA-ADP · adp)

References

3

Provider assertions

2

Linux · cna

net/mlx5: HWS, change error flow on matcher disconnect

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
1bde126762a63ed2a5b24f598a43202c01b183c16cdfb8d5845b01347155213d
Ingested
23 Sep 2026, 08:39:46 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected