Junglewise Threat Intelligence

CVE-2025-68246: Linux Kernel ksmbd socket leak in connection limit handling

CVE-2025-68246 · Severity: high · CVSS 7.5 · Published 2025-12-16

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability exists in the Linux kernel's ksmbd component, which provides file-sharing services over a network. When the system reaches its limit for connections from a single user, it fails to properly close new connection attempts, leading to a resource leak. An attacker can exploit this to exhaust system resources, potentially causing the server to crash or become unresponsive to legitimate users.

Technical details

A resource leak vulnerability exists in the ksmbd_kthread_fn() function within fs/smb/server/transport_tcp.c of the Linux kernel. When a per-IP connection limit is reached, the code returns -EAGAIN and continues the accept loop without calling sock_release() on the newly accepted socket. This results in a socket leak for every rejected connection attempt from a single IP address. A remote, unauthenticated attacker can exploit this to exhaust the system's file descriptors or memory, leading to a denial-of-service condition. The issue has been resolved in various stable branches including 6.1.159, 6.6.117, 6.12.59, and 6.17.9.

Affected products

  • Linux Linux Kernel 5.15 to 6.17.9

Timeline

  • 2025-11-24: patched: Fixes committed to stable branches.
  • 2025-12-16: disclosed: CVE published.

References

Related threats