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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-09-16T13:08:48.110Z
- Modified: 2026-10-21T13:18:14.693Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c61afff94373641695cc81999e9bb10408ea84d5 before 4ccdbf50dd88a2a7399409e68887dd8077f6a562; from c61afff94373641695cc81999e9bb10408ea84d5 before 86d13a6f49cb68aa91bd718b1b627e72e77285c1; from c61afff94373641695cc81999e9bb10408ea84d5 before 2c0a959bebdc1ada13cf9a8242f177c5400299e6; 6.12 (not affected: before 6.12; from 6.12.114 up to 6.12.*; from 6.16.5 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.12 before 6.16.5; 6.17

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4ccdbf50dd88a2a7399409e68887dd8077f6a562>
- <https://git.kernel.org/stable/c/86d13a6f49cb68aa91bd718b1b627e72e77285c1> (patch)
- <https://git.kernel.org/stable/c/2c0a959bebdc1ada13cf9a8242f177c5400299e6> (patch)

## Sources

- CVE List: [CVE-2025-39830](https://www.cve.org/CVERecord?id=CVE-2025-39830), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2025-39830](https://nvd.nist.gov/vuln/detail/CVE-2025-39830), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2025-39830 · Whole record: https://cve.day/CVE-2025-39830.json · Rebuilt by cve.day 2026-11-25T22:59:04.737Z
