CVE-2025-39830: net/mlx5: HWS, Fix memory leak in hws_pool_buddy_init error path

Published Sep 16, 2025
·
Updated

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

net/mlx5: HWS, Fix memory leak in hwspoolbuddyinit error path

In the error path of hwspoolbuddyinit(), the buddy allocator cleanup doesn't free the allocator structure itself, causing a memory leak.

Add the missing kfree() to properly release all allocated memory.

Affected Software

10 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.12<6.16.5
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3
debian/linux<6.12.115-2
6.12.115-2
debian/linux<6.16.5-1
6.16.5-1
debian/linux-6.12<6.12.115-2~deb12u1
6.12.115-2~deb12u1
debian/linux
6.12.115-26.16.5-1
debian/linux-6.12
6.12.115-2~deb12u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.115-2
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.16.5-1
  3. Upgrade

    Upgrade debian/linux-6.12 to a version that resolves this vulnerability.

    Fixed in 6.12.115-2~deb12u1
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.115-2Fixed in 6.16.5-1
  5. Compensating control

    In net/mlx5 HWS, add the missing kfree() in the hws_pool_buddy_init() error path so the buddy allocator structure is freed during cleanup.

Event History

Sep 16, 2025
CVE Published
via MITRE·01:08 PM
Data Sourced
via MITRE·01:08 PM
Description
Data Sourced
via NVD·02:15 PM
Description
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software
Dec 2, 2025
Data Sourced
via NVD·06:37 PM
RemedySeverityWeaknessAffected Software
Jan 14, 2026
Updated
via NVD·07:16 PM
SeverityWeakness
Nov 13, 2026
Updated
via OSV·01:00 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-39830?

CVE-2025-39830 is classified as a medium-severity vulnerability due to its potential to cause memory leaks in the Linux kernel.

2

How do I fix CVE-2025-39830?

To fix CVE-2025-39830, update your Linux kernel to the latest stable version where the memory leak has been resolved.

3

What systems are affected by CVE-2025-39830?

CVE-2025-39830 affects certain versions of the Linux kernel, specifically those utilizing the net/mlx5 networking driver.

4

What does CVE-2025-39830 affect in the Linux kernel?

CVE-2025-39830 affects the hws_pool_buddy_init function in the Linux kernel, which is responsible for memory allocation.

5

Are there any known exploits for CVE-2025-39830?

As of now, there are no publicly known exploits specifically targeting CVE-2025-39830.

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