Cloudanix VulnDB

CVE-2025-39830

None

CVSS

—

EPSS

0.2%

Published

Sep 16, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A small bug in Linux network driver code could slowly waste memory on certain hardware when errors occur during setup, and updating the system fixes it.

Exploitation
Other
Attacker needs
Local User
Complexity
Theoretical
Impact
Denial Of Service
Component
OS kernel
Class
Other
Remediation
Patch
Effort
Low
Patch risk
None

What it actually does

Missing kfree of the buddy allocator structure in the error path of hws_pool_buddy_init leads to a memory leak in the mlx5 HWS driver.

Why it matters to the business

Systems using affected MLX5 hardware may experience gradual memory exhaustion over repeated error conditions during pool initialization, increasing operational overhead especially in high-availability or containerized Linux environments.

How an attack unfolds

An attacker would need to trigger repeated error paths in hws_pool_buddy_init on systems with MLX5 NICs; no public exploitation or named threat actors are associated with this leak.

How to fix it

Update Linux kernel to a version containing commit 86d13a6f49cb68aa91bd718b1b627e72e77285c1 or later; for affected packages such as asterisk on Debian 11 apply the 0.5.0 fixed release where available.

How to confirm the fix worked

Confirm presence of the kfree call in hws_pool_buddy_init error handling after applying the patch; review kernel memory usage patterns under mlx5 HWS initialization stress tests.

Typical attack path

  1. Trigger conditions that cause hws_pool_buddy_init to enter its error path
  2. Allocator structure is allocated but not freed due to missing kfree
  3. Repeated triggers accumulate leaked memory until system impact

How to detect it

Review kernel logs and memory accounting for repeated mlx5 HWS pool initialization failures without corresponding frees; correlate with dmesg entries mentioning hws_pool_buddy_init.

What your security team should do

  • Prioritize patching kernel packages containing the mlx5 HWS fix within standard maintenance windows given low EPSS and absence from KEV
  • Monitor memory metrics on systems with MLX5 hardware for unexpected growth correlated with driver initialization errors
  • Apply the exact fixed commit 86d13a6f49cb68aa91bd718b1b627e72e77285c1 when rebuilding from the stable git tree

The record

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, Fix memory leak in hws_pool_buddy_init error path In the error path of hws_pool_buddy_init(), the buddy allocator cleanup doesn't free the allocator structure itself, causing a memory leak. Add the missing kfree() to properly release all allocated memory.

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-r2
Chainguard linux-aws-6.12-headers 0 6.12.60-r2
Chainguard linux-aws-6.12-modules 0 6.12.60-r2
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