CVE-2025-37788

cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path

published May 1, 2025

CVSS
—
EPSS
0%
Percentile
9.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00202 · 9.6th percentile
Published
2025-05-01T13:07Z
EPSS history
Timeline
  • 01 MAY 13:07Z
    cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path
    cvelistv5