CVE-2025-71150
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-71150 is a reference count leak vulnerability in the Linux kernel's ksmbd (kernel SMB server) module during session lookup. When a session is found but its state is not SMB2_SESSION_VALID, the code fails to decrement the reference count acquired during the lookup, resulting in a kernel memory leak. The vulnerability was disclosed on January 23, 2026, and affects multiple Linux kernel stable branches. It carries a CVSS v3.1 base score of 5.5 (Medium) (Red Hat Advisory, Feedly).

Technical details

The root cause is a missing call to ksmbd_user_session_put() in the session lookup code path when an invalid (non-SMB2_SESSION_VALID) session is encountered, classified under CWE-Other (improper resource management). The attack vector is local (AV:L), requiring low privileges (PR:L) and no user interaction. A local attacker can repeatedly trigger the invalid session lookup path — for example, by sending SMB2 requests with session IDs that map to sessions in an invalid state — causing the kernel to accumulate unreleased session references over time. No public proof-of-concept exploit code has been identified (Feedly, kernel.org patches).

Impact

Successful exploitation causes gradual kernel memory exhaustion due to unreleased session reference counts in the ksmbd module. There is no confidentiality or integrity impact; the sole consequence is availability degradation. Repeated exploitation by a local low-privileged attacker could lead to denial of service through resource exhaustion and potential system crashes (Feedly).

Indicators of compromise

  • Logs: Kernel logs (dmesg or /var/log/kern.log) showing ksmbd-related warnings or errors, particularly around session state validation or memory allocation failures.
  • System Behavior: Gradual increase in kernel memory usage (observable via /proc/meminfo or tools like smem) without a corresponding increase in workload, potentially indicating a reference count leak.
  • Process: Unusual or repeated SMB2 session setup attempts from local processes interacting with the ksmbd service, especially with session IDs that do not correspond to valid sessions.

Mitigation and workarounds

Patches have been released across multiple Linux kernel stable branches. Users should upgrade to one of the following fixed versions: 5.16 or later, 6.1.160 or later, 6.6.120 or later, 6.12.64 or later, or 6.18.3 or later. Patch commits are available at kernel.org (hashes: 02e06785, 0fb87b28, 8cabcb4d, cafb57f7, e54fb2a4). As a workaround where patching is not immediately possible, restrict local user access to systems running ksmbd and consider disabling the ksmbd service if SMB server functionality is not required (Feedly, kernel.org patches).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management