CVE-2025-39897 net: xilinx: axienet: Add error handling for RX metadata pointer retrieval

High 7.5 Published Updated

A missing error check in the Xilinx AXI Ethernet driver can cause a null pointer dereference, leading to a kernel crash and denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-39897?

CVE-2025-39897 is a high-severity vulnerability in Linux kernel, published on 1 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

net: xilinx: axienet: Add error handling for RX metadata pointer retrieval

Add proper error checking for dmaengine_desc_get_metadata_ptr() which can return an error pointer and lead to potential crashes or undefined behaviour if the pointer retrieval fails.

Properly handle the error by unmapping DMA buffer, freeing the skb and returning early to prevent further processing with invalid data.

Weakness: CWE-476

Which versions are affected by CVE-2025-39897?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-39897?

Apply the vendor's patch.

Is CVE-2025-39897 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-39897, DEBIAN-CVE-2025-39897, GHSA-rwc6-qv5w-3mrv, ROOT-OS-UBUNTU-2404-CVE-2025-39897, UBUNTU-CVE-2025-39897.

Is CVE-2025-39897 in your software?

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

Check your SBOMs for free