{"id":"CVE-2025-39834","aliases":["CVE-2025-39834"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow\n\nWhen an invalid stc_type is provided, the function allocates memory for\nshared_stc but jumps to unlock_and_out without freeing it, causing a\nmemory leak.\n\nFix by jumping to free_shared_stc label instead to ensure proper cleanup.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow\n\nWhen an invalid stc_type is provided, the function allocates memory for\nshared_stc but jumps to unlock_and_out without freeing it, causing a\nmemory leak.\n\nFix by jumping to free_shared_stc label instead to ensure proper cleanup.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/mlx5: HWS, Corrección de fuga de memoria en el flujo de error de hws_action_get_shared_stc_nic\n\nCuando 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.\n\nSe corrige saltando a la etiqueta free_shared_stc en su lugar para asegurar una limpieza adecuada.","source":"nvd"}],"published":"2025-09-16T13:08:50.896Z","modified":"2026-10-21T13:18:14.880Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"504e536d90104c850731840d3fbc95acf251f11b","fixed":"a2751e1af5dc8b1a64cfd463576c58617c2573ac","status":"affected"},{"type":"git","introduced":"504e536d90104c850731840d3fbc95acf251f11b","fixed":"051fd8576a2e4e95d5870c5c9f8679c5b16882e4","status":"affected"},{"type":"git","introduced":"504e536d90104c850731840d3fbc95acf251f11b","fixed":"a630f83592cdad1253523a1b760cfe78fef6cd9c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.5","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12","fixed":"6.16.5"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a2751e1af5dc8b1a64cfd463576c58617c2573ac","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/051fd8576a2e4e95d5870c5c9f8679c5b16882e4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a630f83592cdad1253523a1b760cfe78fef6cd9c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T18:18:41.812Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39834","url":"https://www.cve.org/CVERecord?id=CVE-2025-39834","licence":"CVE Terms of Use","modified":"2026-10-21T12:37:26.260Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39834","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39834","licence":"Public domain","modified":"2026-10-21T13:18:14.880Z"}],"updatedAt":"2026-11-25T22:59:04.739Z","epss":{"score":0.00195,"percentile":0.09627,"date":"2026-12-01T12:00:22.000Z"}}