CVE-2025-37788

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-37788
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37788.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37788
Downstream
Related
Published
2025-05-01T13:07:22.208Z
Modified
2025-11-28T02:34:21.336101Z
Summary
cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path
Details

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

cxgb4: fix memory leak in cxgb4initethtool_filters() error path

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

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37788.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d915c299f1da68a7dbb43895b8741c7b916c9d08
Fixed
e9de08e15aee35b96064960f95997bb6c1209c4b
Fixed
118d05b530343cd9322607b9719405ba254a4183
Fixed
fa2d7708955e4f8212fd69bab1da604e60cb0b15
Fixed
08aa59c0be768596467552c129e9f82166779a67
Fixed
dafb6e433ab2333b67be05433dc9c6ccbc7b1284
Fixed
76deedea08899885f076aba0bb80bd1276446822
Fixed
00ffb3724ce743578163f5ade2884374554ca021

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.9.0
Fixed
5.10.237
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.181
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.135
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.88
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.25
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.14.4