CVE-2025-39834: net/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow
Vulnerability summary
CVE-2025-39834 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 3.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 8 · Related 9Timeline
- 16-09-2025PublishedVulnerability first disclosed.
- 21-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.15%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.13% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu94 products
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
- linux-aws-5.13All versions (No fix recorded)
- linux-aws-5.19All versions (No fix recorded)
Chainguard5 products
- linux-aws-6.12< 6.12.65-r0 | < 6.12.65-r2 | < 6.12.66-r0 | < 6.12.72-r1 | < 6.12.74-r1 | < 6.12.72-r0 | < 6.12.68-r0 | < 6.12.77-r1 | < 6.12.77-r2 | < 6.12.62-r2 | < 6.12.63-r0 | < 6.12.62-r0 | < 6.12.68-r1 | < 6.12.65-r1 | < 6.12.67-r0 | < 6.12.71-r0 | < 6.12.62-r1 | < 6.12.80-r0 | < 6.12.76-r0 | < 6.12.60-r4 | < 6.12.69-r0 | < 6.12.77-r0 | < 6.12.74-r0 | < 6.12.78-r0 | < 6.12.70-r0
- linux-azure-6.12< 6.12.65-r3 | < 6.12.76-r0 | < 6.12.63-r0 | < 6.12.65-r2 | < 6.12.68-r0 | < 6.12.60-r4 | < 6.12.78-r0 | < 6.12.62-r1 | < 6.12.69-r0 | < 6.12.66-r0 | < 6.12.77-r0 | < 6.12.70-r0 | < 6.12.72-r0 | < 6.12.77-r1 | < 6.12.67-r0 | < 6.12.65-r1 | < 6.12.74-r0 | < 6.12.60-r3 | < 6.12.65-r4 | < 6.12.80-r0 | < 6.12.74-r1 | < 6.12.77-r2 | < 6.12.71-r0 | < 6.12.62-r0 | < 6.12.62-r2
- linux-gcp-6.12< 6.12.78-r0 | < 6.12.66-r0 | < 6.12.60-r4 | < 6.12.74-r1 | < 6.12.65-r2 | < 6.12.62-r1 | < 6.12.62-r2 | < 6.12.70-r0 | < 6.12.68-r0 | < 6.12.67-r0 | < 6.12.71-r0 | < 6.12.65-r1 | < 6.12.76-r0 | < 6.12.69-r0 | < 6.12.60-r3 | < 6.12.62-r0 | < 6.12.77-r1 | < 6.12.77-r0 | < 6.12.72-r0 | < 6.12.80-r0 | < 6.12.63-r0 | < 6.12.68-r1 | < 6.12.74-r0 | < 6.12.65-r0 | < 6.12.77-r2
- linux-qemu-6.12< 6.12.80-r0 | < 6.12.65-r1 | < 6.12.77-r2 | < 6.12.72-r0 | < 6.12.66-r0 | < 6.12.70-r0 | < 6.12.68-r0 | < 6.12.76-r0 | < 6.12.71-r0 | < 6.12.67-r0 | < 6.12.78-r0 | < 6.12.69-r0 | < 6.12.77-r0 | < 6.12.77-r1 | < 6.12.74-r0 | < 6.12.65-r2 | < 6.12.74-r1
- linux-vmware-6.12< 6.12.77-r0 | < 6.12.67-r0 | < 6.12.78-r0 | < 6.12.76-r0 | < 6.12.74-r0 | < 6.12.77-r1 | < 6.12.74-r1 | < 6.12.65-r2 | < 6.12.69-r0 | < 6.12.68-r0 | < 6.12.77-r2 | < 6.12.65-r1 | < 6.12.80-r0 | < 6.12.68-r1 | < 6.12.70-r0 | < 6.12.66-r0 | < 6.12.72-r0 | < 6.12.71-r0
Linux2 products
- linux≥ 504e536d90104c850731840d3fbc95acf251f11b, < a2751e1af5dc8b1a64cfd463576c58617c2573ac | ≥ 504e536d90104c850731840d3fbc95acf251f11b, < 051fd8576a2e4e95d5870c5c9f8679c5b16882e4 | ≥ 504e536d90104c850731840d3fbc95acf251f11b, < a630f83592cdad1253523a1b760cfe78fef6cd9c | 6.12
- linux_kernel≥ 6.12, < 6.16.5 | 6.17:rc1 | 6.17:rc2 | 6.17:rc3
Debian1 product
- linuxAll versions (No fix recorded) | < 6.16.5-1
4 vendors · 102 products