CVE-2025-37874: net: ngbe: fix memory leak in ngbe_probe() error path
In the Linux kernel, the following vulnerability has been resolved:
net: ngbe: fix memory leak in ngbeprobe() error path
When ngbeswinit() is called, memory is allocated for wx->rsskey in wxinitrsskey(). However, in ngbeprobe() function, the subsequent error paths after ngbeswinit() don't free the rsskey. Fix that by freeing it in error path along with wx->mactable.
Also change the label to which execution jumps when ngbeswinit() fails, because otherwise, it could lead to a double free for rsskey, when the mactable allocation fails in wxswinit().
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-37874?
CVE-2025-37874 is classified as a moderate severity vulnerability in the Linux kernel.
What impact does CVE-2025-37874 have on system performance?
CVE-2025-37874 can lead to memory leaks which may degrade system performance over time.
How do I fix CVE-2025-37874?
To fix CVE-2025-37874, update the Linux kernel to the latest stable version where this vulnerability has been addressed.
Is CVE-2025-37874 exploitable remotely?
CVE-2025-37874 is not classified as a remotely exploitable vulnerability.
What version of the Linux kernel is affected by CVE-2025-37874?
CVE-2025-37874 affects various versions of the Linux kernel prior to the patch for the identified vulnerability.