CVE-2025-37874: net: ngbe: fix memory leak in ngbe_probe() error path

Published May 9, 2025
·
Updated

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

8 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.2<6.6.88
Linux Linux kernel>=6.7<6.12.25
Linux Linux kernel>=6.13<6.14.4
Linux Linux kernel=6.15-rc1
Linux Linux kernel=6.15-rc2
Microsoft azl3 kernel 6.6.92.2-1
Microsoft azl3 kernel 6.6.85.1-4

Event History

May 9, 2025
CVE Published
via MITRE·06:44 AM
Data Sourced
via MITRE·06:44 AM
Description
Data Sourced
via NVD·07:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 11, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-37874?

CVE-2025-37874 is classified as a moderate severity vulnerability in the Linux kernel.

2

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.

3

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.

4

Is CVE-2025-37874 exploitable remotely?

CVE-2025-37874 is not classified as a remotely exploitable vulnerability.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203