CVE-2025-37788 cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path

Medium 5.5 Published Updated

A memory leak in the cxgb4 network driver error path allows attackers to exhaust system memory, causing 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-37788?

CVE-2025-37788 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 1 May 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:

cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path

In the for loop used to allocate the loc_array and bmap for each port, a memory leak is possible when the allocation for loc_array succeeds, but the allocation for bmap fails. This is because when the control flow goes to the label free_eth_finfo, only the allocations starting from (i-1)th iteration are freed.

Fix that by freeing the loc_array in the bmap allocation error path.

Weakness: CWE-401

Which versions are affected by CVE-2025-37788?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-37788?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-37788 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-37788, DEBIAN-CVE-2025-37788, GHSA-8v7q-6cgm-98qq, ROOT-OS-DEBIAN-12-CVE-2025-37788, ROOT-OS-UBUNTU-2204-CVE-2025-37788, ROOT-OS-UBUNTU-2404-CVE-2025-37788 and 1 more.

Is CVE-2025-37788 in your software?

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

Check your SBOMs for free