CVE-2025-39834
JSON

5.5medium

net/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 504e536d90104c850731840d3fbc95acf251f11b before a2751e1af5dc8b1a64cfd463576c58617c2573ac, from 504e536d90104c850731840d3fbc95acf251f11b before 051fd8576a2e4e95d5870c5c9f8679c5b16882e4, from 504e536d90104c850731840d3fbc95acf251f11b before a630f83592cdad1253523a1b760cfe78fef6cd9c, 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 *
CVE List
linux linux_kernelfrom 6.12 before 6.16.5, 6.17NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/mlx5: HWS, Corrección de fuga de memoria en el flujo de error de hws_action_get_shared_stc_nic Cuando se proporciona un stc_type no válido, la función asigna memoria para shared_stc pero salta a unlock_and_out sin liberarla, causando una fuga de memoria. Se corrige saltando a la etiqueta free_shared_stc en su lugar para asegurar una limpieza adecuada.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-39834 changed 2026-10-21CVE Terms of Use
NVDCVE-2025-39834 changed 2026-10-21Public domain