What’s Vulnerable › Vulnerabilities
CVE-2025-39834: net/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-16 · updated 2026-10-21
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow When an invalid stc_type is provided, the function allocates memory for shared_stc but jumps to unlock_and_out without freeing it, causing a memory leak. Fix by jumping to free_shared_stc label instead to ensure proper cleanup.
Affected products
- Linux kernel: from 6.12 before 6.16.5; 6.17-rc1, 6.17-rc2, 6.17-rc3 — fixed in 6.16.5
How to fix
Upgrade to a fixed version: Linux kernel 6.16.5. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/051fd8576a2e4e95d5870c5c9f8679c5b16882e4
- https://git.kernel.org/stable/c/a2751e1af5dc8b1a64cfd463576c58617c2573ac
- https://git.kernel.org/stable/c/a630f83592cdad1253523a1b760cfe78fef6cd9c
Get alerted when CVE-2025-39834 or the next vulnerability affects your stack