# CVE-2022-49025: net/mlx5e: Fix use-after-free when reverting termination table

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-10-21T20:06:31.189Z
- **Modified:** 2026-08-05T08:53:31.402Z

## Who should check

- Anyone running Linux \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 0a2d73a77060c3cbdc6e801cd5d979d674cd404b; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 0d2f9d95d9fbe993f3c4bafb87d59897b0325aff; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 372eb550faa0757349040fd43f59483cbfdb2c0b; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e6d2d26a49c3a9cd46b232975e45236304810904; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 52c795af04441d76f565c4634f893e5b553df2ae
- Anyone running Linux 5.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: Fix use-after-free when reverting termination table

When having multiple dests with termination tables and second one
or afterwards fails the driver reverts usage of term tables but
doesn't reset the assignment in attr-\>dests\[num\_vport\_dests\].termtbl
which case a use-after-free when releasing the rule.
Fix by resetting the assignment of termtbl to null.

## Affected and fixed versions

- Linux: \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 0a2d73a77060c3cbdc6e801cd5d979d674cd404b; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 0d2f9d95d9fbe993f3c4bafb87d59897b0325aff; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 372eb550faa0757349040fd43f59483cbfdb2c0b; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e6d2d26a49c3a9cd46b232975e45236304810904; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 52c795af04441d76f565c4634f893e5b553df2ae (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 52c795af04441d76f565c4634f893e5b553df2ae or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49025. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49025.md
Affected: Linux >= 10caabdaad5ace85577a453da97d1f8d3b944427, < 0a2d73a77060c3cbdc6e801cd5d979d674cd404b; >= 10caabdaad5ace85577a453da97d1f8d3b944427, < 0d2f9d95d9fbe993f3c4bafb87d59897b0325aff; >= 10caabdaad5ace85577a453da97d1f8d3b944427, < 372eb550faa0757349040fd43f59483cbfdb2c0b; >= 10caabdaad5ace85577a453…
Fixed in: Linux 0a2d73a77060c3cbdc6e801cd5d979d674cd404b, Linux 0d2f9d95d9fbe993f3c4bafb87d59897b0325aff, Linux 372eb550faa0757349040fd43f59483cbfdb2c0b, Linux 52c795af04441d76f565c4634f893e5b553df2ae

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49025 being exploited?

There is no confirmed exploitation: CVE-2022-49025 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49025?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49025?

Linux \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 0a2d73a77060c3cbdc6e801cd5d979d674cd404b; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 0d2f9d95d9fbe993f3c4bafb87d59897b0325aff; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 372eb550faa0757349040fd43f59483cbfdb2c0b; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e6d2d26a49c3a9cd46b232975e45236304810904; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 52c795af04441d76f565c4634f893e5b553df2ae; Linux 5.3.

### Is there a fix for CVE-2022-49025?

Yes. Fixed in Linux 0a2d73a77060c3cbdc6e801cd5d979d674cd404b, Linux 0d2f9d95d9fbe993f3c4bafb87d59897b0325aff, Linux 372eb550faa0757349040fd43f59483cbfdb2c0b, Linux 52c795af04441d76f565c4634f893e5b553df2ae. Upgrade Linux to 52c795af04441d76f565c4634f893e5b553df2ae or later.

### How do I check if I'm affected by CVE-2022-49025?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0a2d73a77060c3cbdc6e801cd5d979d674cd404b>
- patch: <https://git.kernel.org/stable/c/0d2f9d95d9fbe993f3c4bafb87d59897b0325aff>
- patch: <https://git.kernel.org/stable/c/372eb550faa0757349040fd43f59483cbfdb2c0b>
- patch: <https://git.kernel.org/stable/c/e6d2d26a49c3a9cd46b232975e45236304810904>
- patch: <https://git.kernel.org/stable/c/52c795af04441d76f565c4634f893e5b553df2ae>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49025>

HTML: <https://flawdb.com/CVE-2022-49025> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49025>
