CVE-2025-37820 xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()

High 7.5 Published Updated

A missing NULL check in the Linux kernel's xen-netfront driver can cause a crash or memory leak when XDP buffer conversion fails.

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-37820?

CVE-2025-37820 is a high-severity vulnerability in Debian Debian Linux, published on 8 May 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:

xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()

The function xdp_convert_buff_to_frame() may return NULL if it fails to correctly convert the XDP buffer into an XDP frame due to memory constraints, internal errors, or invalid data. Failing to check for NULL may lead to a NULL pointer dereference if the result is used later in processing, potentially causing crashes, data corruption, or undefined behavior.

On XDP redirect failure, the associated page must be released explicitly if it was previously retained via get_page(). Failing to do so may result in a memory leak, as the pages reference count is not decremented.

Weakness: CWE-476

Which versions are affected by CVE-2025-37820?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-37820?

Apply the vendor's patch.

Is CVE-2025-37820 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-70138, BELL-CVE-2025-37820, DEBIAN-CVE-2025-37820, GHSA-5427-cfr3-v9jm, ROOT-OS-DEBIAN-11-CVE-2025-37820, ROOT-OS-DEBIAN-12-CVE-2025-37820 and 3 more.

Is CVE-2025-37820 in your software?

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

Check your SBOMs for free