CVE-2025-21975 net/mlx5: handle errors in mlx5_chains_create_table()
A missing null check in the Linux kernel's mlx5 network driver can cause a crash, leading to denial of service.
- 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-2025-21975?
CVE-2025-21975 is a medium-severity vulnerability in Linux kernel, published on 1 Apr 2025. 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/mlx5: handle errors in mlx5_chains_create_table()
In mlx5_chains_create_table(), the return value of mlx5_get_fdb_sub_ns() and mlx5_get_flow_namespace() must be checked to prevent NULL pointer dereferences. If either function fails, the function should log error message with mlx5_core_warn() and return error pointer.
Weakness: CWE-476
Which versions are affected by CVE-2025-21975?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21975?
Apply the vendor's patch.
Is CVE-2025-21975 being exploited?
There is no known exploitation of CVE-2025-21975 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-21975, DEBIAN-CVE-2025-21975, GHSA-7wv2-745f-m4cr, ROOT-OS-UBUNTU-2404-CVE-2025-21975, UBUNTU-CVE-2025-21975.