Cloudanix VulnDB

CVE-2025-39834

None

CVSS

—

EPSS

0.2%

Published

Sep 16, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A coding mistake in Linux network driver software can waste small amounts of memory when it receives unexpected data, and doing this repeatedly might eventually make the computer run poorly or stop working.

Exploitation
Local Privilege
Attacker needs
High Privilege
Complexity
Theoretical
Impact
Other
Component
OS kernel
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

A memory leak occurs in the error handling path of hws_action_get_shared_stc_nic when an invalid stc_type is provided, as allocated memory for shared_stc is not freed before returning.

Why it matters to the business

Repeated triggering of the error path in systems using affected Linux kernel versions with mlx5 hardware can gradually exhaust kernel memory, leading to performance degradation or instability over time, especially in high-throughput network environments.

How an attack unfolds

An attacker with the ability to invoke the affected function through kernel interfaces supplies an invalid stc_type to force the allocation without subsequent free; named actors such as VMSCAPE have been associated with related Linux kernel privilege escalation attempts though this specific flaw shows low exploit maturity.

How to fix it

Upgrade the Linux kernel to a fixed version containing commit 051fd8576a2e4e95d5870c5c9f8679c5b16882e4; for listed Debian packages apply openssh updates to 1:3.7.1p2 where applicable.

How to confirm the fix worked

Confirm the presence of the correcting commit in the running kernel source or binary; exercise the error path with invalid stc_type inputs and verify no memory leak occurs via kernel memory accounting tools.

Typical attack path

  1. Gain local access or control over a process interacting with mlx5 HWS interfaces
  2. Supply crafted invalid stc_type values to trigger the leaky error path
  3. Repeat to accumulate unreleased memory allocations

How to detect it

Review kernel logs and dmesg output for mlx5 HWS error paths; correlate with system memory usage metrics and look for patterns matching known Linux kernel container escape attempts by listed threat actors.

What your security team should do

  • Prioritize kernel updates on systems with mlx5 NICs given the 406 days since publication and rising EPSS trend
  • Audit container and host environments for exposure to related kernel privilege escalation techniques
  • Establish monitoring for anomalous kernel memory growth

The record

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 packages

Ecosystem Package Introduced Fixed
Chainguard hyperv-daemons-6.12 0 6.12.60-r2
Chainguard linux-aws-6.12-boot-installed 0 6.12.60-r2
Chainguard linux-aws-6.12-fips-boot-installed 0 6.12.60-r1
Chainguard linux-aws-6.12-headers 0 6.12.60-r2
Chainguard linux-aws-6.12-modules 0 6.12.60-r1
Chainguard linux-azure-6.12-boot-installed 0 6.12.60-r2
Chainguard linux-azure-6.12-fips-boot-installed 0 6.12.60-r2
Chainguard linux-azure-6.12-headers 0 6.12.60-r2
Chainguard linux-azure-6.12-modules 0 6.12.60-r2
Chainguard linux-gcp-6.12-boot-installed 0 6.12.60-r2
Chainguard linux-gcp-6.12-fips-boot-installed 0 6.12.60-r2
Chainguard linux-gcp-6.12-headers 0 6.12.60-r2
Chainguard linux-gcp-6.12-modules 0 6.12.60-r2
Chainguard linux-qemu-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-qemu-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-qemu-6.12-headers 0 6.12.63-r0
Chainguard linux-qemu-6.12-modules 0 6.12.63-r0
Chainguard linux-vmware-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-vmware-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-vmware-6.12-headers 0 6.12.63-r0
Chainguard linux-vmware-6.12-modules 0 6.12.63-r0
Debian:13 linux 0 No fix
Debian:14 linux 0 6.16.5-1
Linux Kernel 6.12.0 6.16.5
SUSE:Linux Enterprise Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_5 0 1-150700.1.3.1
SUSE:Real Time Module 15 SP7 kernel-rt 0 6.4.0-150700.7.19.1
SUSE:Real Time Module 15 SP7 kernel-source-rt 0 6.4.0-150700.7.19.1
SUSE:Real Time Module 15 SP7 kernel-syms-rt 0 6.4.0-150700.7.19.1
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.6.1.160000.2.4
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.6.1

Related vulnerabilities