Junglewise Threat Intelligence

CVE-2026-31711: Linux Kernel ksmbd connection leak in SMB server

CVE-2026-31711 · Severity: high · CVSS 7.5 · Published 2026-05-01

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's SMB server (ksmbd) can allow an unauthenticated attacker to cause a permanent denial-of-service condition. By repeatedly triggering specific connection failures, an attacker can exhaust the server's connection pool, eventually causing the server to reject all new legitimate connection attempts. This state persists until the system is rebooted or the affected kernel module is reloaded, disrupting file-sharing services for all users.

Technical details

A resource leak exists in the ksmbd_tcp_new_connection() function within the Linux kernel's SMB server implementation. The ksmbd_kthread_fn() function increments the 'active_num_conn' counter before calling ksmbd_tcp_new_connection(); however, if alloc_transport() fails (returning NULL), the counter is not decremented. An unauthenticated remote attacker can trigger this failure path by inducing memory pressure, for example, by holding open multiple connections with large RFC1002 lengths. Each failure permanently consumes a slot in the 'max_connections' pool. Once the limit is reached, all subsequent connection attempts are rejected. The issue has been patched across multiple stable kernel branches by ensuring the counter is decremented upon transport allocation failure.

Affected products

  • Linux Linux Kernel 5.15.91 to 5.16, 6.1.9 to 6.2, 6.2.1 to 6.6.136, 6.7 to 6.12.84, 6.13 to 6.18.25, 6.19 to 7.0.2

Timeline

  • 2026-04-14: other: Vulnerability fixed in kernel source
  • 2026-05-01: advisory: CVE-2026-31711 published

References

Related threats