CVE-2025-39858 eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring

Medium 5.5 Published Updated

A bug in the mlx4 Ethernet driver causes a null pointer dereference, leading to a system crash or 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-39858?

CVE-2025-39858 is a medium-severity vulnerability in Linux kernel, published on 19 Sep 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:

eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring

Replace NULL check with IS_ERR() check after calling page_pool_create() since this function returns error pointers (ERR_PTR). Using NULL check could lead to invalid pointer dereference.

Weakness: CWE-476

Which versions are affected by CVE-2025-39858?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-39858?

Apply the vendor's patch.

Is CVE-2025-39858 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-39858, DEBIAN-CVE-2025-39858, GHSA-x732-54q6-pv67, UBUNTU-CVE-2025-39858.

Is CVE-2025-39858 in your software?

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

Check your SBOMs for free