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

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's mlx5e driver allows attackers to potentially execute arbitrary code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49025?

CVE-2022-49025 is a high-severity use after free vulnerability in Linux kernel, published on 21 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-416

Which versions are affected by CVE-2022-49025?

It affects 1 product.

Linux distribution packages (2)
kernel-livepatch-SLE15-SP3_Update_48 SUSE:Linux Enterprise Live Patching 15 SP3All versions7-150300.2.1
kernel-livepatch-SLE15-SP3_Update_49 SUSE:Linux Enterprise Live Patching 15 SP3All versions6-150300.2.1

Products include Linux kernel.

How do I fix CVE-2022-49025?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-49025 being exploited?

There is no known exploitation of CVE-2022-49025 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49025, GHSA-83jf-v646-gp24, SUSE-SU-2025:1114-1, SUSE-SU-2025:1121-1, UBUNTU-CVE-2022-49025.

Is CVE-2022-49025 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free