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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-10-21T20:06:31.189Z
- Modified: 2026-08-05T08:53:31.402Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 10caabdaad5ace85577a453da97d1f8d3b944427 before 0a2d73a77060c3cbdc6e801cd5d979d674cd404b; from 10caabdaad5ace85577a453da97d1f8d3b944427 before 0d2f9d95d9fbe993f3c4bafb87d59897b0325aff; from 10caabdaad5ace85577a453da97d1f8d3b944427 before 372eb550faa0757349040fd43f59483cbfdb2c0b; from 10caabdaad5ace85577a453da97d1f8d3b944427 before e6d2d26a49c3a9cd46b232975e45236304810904; from 10caabdaad5ace85577a453da97d1f8d3b944427 before 52c795af04441d76f565c4634f893e5b553df2ae; 5.3 (not affected: before 5.3; from 5.4.226 up to 5.4.*; from 5.10.158 up to 5.10.*; from 5.15.82 up to 5.15.*; from 6.0.12 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.3 before 5.4.226; from 5.5 before 5.10.158; from 5.11 before 5.15.82; from 5.16 before 6.0.12; 6.1

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2022-49025](https://www.cve.org/CVERecord?id=CVE-2022-49025), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-49025](https://nvd.nist.gov/vuln/detail/CVE-2022-49025), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-49025 · Whole record: https://cve.day/CVE-2022-49025.json · Rebuilt by cve.day 2026-11-25T22:58:20.038Z
