Bug 2363347 (CVE-2025-37788) - CVE-2025-37788 kernel: cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path
Summary: CVE-2025-37788 kernel: cxgb4: fix memory leak in cxgb4_init_ethtool_filters()...
Keywords:
Status: NEW
Alias: CVE-2025-37788
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-01 14:04 UTC by OSIDB Bzimport
Modified: 2025-05-29 11:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 14:04:44 UTC
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.

Comment 1 Avinash Hanwate 2025-05-02 05:57:56 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050119-CVE-2025-37788-fd43@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.