CVE-2025-37788

cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path

No CVSS score yet EPSS 0.21%

Published 1 May 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-37788

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-37788 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from d915c299f1da68a7dbb43895b8741c7b916c9d08, before e9de08e15aee35b96064960f95997bb6c1209c4b
affected from d915c299f1da68a7dbb43895b8741c7b916c9d08, before 118d05b530343cd9322607b9719405ba254a4183
affected from d915c299f1da68a7dbb43895b8741c7b916c9d08, before fa2d7708955e4f8212fd69bab1da604e60cb0b15
affected from d915c299f1da68a7dbb43895b8741c7b916c9d08, before 08aa59c0be768596467552c129e9f82166779a67
affected from d915c299f1da68a7dbb43895b8741c7b916c9d08, before dafb6e433ab2333b67be05433dc9c6ccbc7b1284
affected from d915c299f1da68a7dbb43895b8741c7b916c9d08, before 76deedea08899885f076aba0bb80bd1276446822
affected from d915c299f1da68a7dbb43895b8741c7b916c9d08, before 00ffb3724ce743578163f5ade2884374554ca021
Other versions: unaffected
Linux
affected 5.9
unaffected before 5.9
unaffected from 5.10.237 up to and including 5.10.*
unaffected from 5.15.181 up to and including 5.15.*
unaffected from 6.1.135 up to and including 6.1.*
unaffected from 6.6.88 up to and including 6.6.*
unaffected from 6.12.25 up to and including 6.12.*
unaffected from 6.14.4 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-37788 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37788

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-37788
trivy image --scanners vuln IMAGE | grep CVE-2025-37788

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-37788 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.