Junglewise Threat Intelligence

CVE-2025-39929: Linux Kernel memory leak in SMB client smbd_negotiate

CVE-2025-39929 · Severity: medium · CVSS 5.5 · Published 2025-10-04

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A memory leak vulnerability was identified in the Linux kernel's SMB client when using SMB Direct (RDMA) connections. This issue occurs when the system fails to properly release memory during a failed connection negotiation. Over time, this could lead to memory exhaustion, potentially causing system instability or a denial of service.

Technical details

A memory leak (CWE-401) exists in the Linux kernel's SMB client implementation, specifically within the 'smbdirect_recv_io' component. The vulnerability is located in the 'smbd_negotiate()' function in 'fs/smb/client/smbdirect.c' (or 'fs/cifs/smbdirect.c' in older versions). When a receive operation fails during the SMB Direct negotiation phase, the kernel fails to call 'put_receive_buffer()', leaving allocated objects in the kmem cache. An attacker with local access could potentially trigger this error path repeatedly to exhaust system memory. Patches have been released for various stable kernel branches including 6.1.154, 6.6.108, 6.12.49, and 6.16.9.

Affected products

  • Linux Linux Kernel 4.16 to 6.16.9

Timeline

  • 2025-10-04: disclosed
  • 2025-10-04: advisory

References

Related threats