CVE-2025-37874
net: ngbe: fix memory leak in ngbe_probe() error path
Check your servers for CVE-2025-37874
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-37874 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
net: ngbe: fix memory leak in ngbe_probe() error path
When ngbe_sw_init() is called, memory is allocated for wx->rss_key in wx_init_rss_key(). However, in ngbe_probe() function, the subsequent error paths after ngbe_sw_init() don't free the rss_key. Fix that by freeing it in error path along with wx->mac_table.
Also change the label to which execution jumps when ngbe_sw_init() fails, because otherwise, it could lead to a double free for rss_key, when the mac_table allocation fails in wx_sw_init().
Exploitation
EPSS 0.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 26.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 02338c484ab6250b81f0266ffb40d53c3efe0f47, before 7c2b66a31c7a4866400f7e6fb43cb32021bfca01 affected from 02338c484ab6250b81f0266ffb40d53c3efe0f47, before 8335a3feb9d0d97e5e8f76d38b6bb8573d5b4a29 affected from 02338c484ab6250b81f0266ffb40d53c3efe0f47, before 397487338eff1891c4654ce7deaafbf72a1688b2 affected from 02338c484ab6250b81f0266ffb40d53c3efe0f47, before 88fa80021b77732bc98f73fb69d69c7cc37b9f0d
Other versions: unaffected
|
| Linux |
affected 6.2 unaffected before 6.2 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-37874 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37874
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-37874
trivy image --scanners vuln IMAGE | grep CVE-2025-37874
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
- https://git.kernel.org/stable/c/7c2b66a31c7a4866400f7e6fb43cb32021bfca01 git.kernel.org
- https://git.kernel.org/stable/c/8335a3feb9d0d97e5e8f76d38b6bb8573d5b4a29 git.kernel.org
- https://git.kernel.org/stable/c/397487338eff1891c4654ce7deaafbf72a1688b2 git.kernel.org
- https://git.kernel.org/stable/c/88fa80021b77732bc98f73fb69d69c7cc37b9f0d git.kernel.org
Source: the record CVE-2025-37874 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse