CVE-2025-71150 ksmbd: Fix refcount leak when invalid session is found on session lookup

High 7.5 Published Updated

A reference count leak in the Linux kernel's ksmbd module can lead to resource exhaustion and denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-71150?

CVE-2025-71150 is a high-severity memory corruption vulnerability in Linux kernel, published on 23 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: Fix refcount leak when invalid session is found on session lookup

When a session is found but its state is not SMB2_SESSION_VALID, It indicates that no valid session was found, but it is missing to decrement the reference count acquired by the session lookup, which results in a reference count leak. This patch fixes the issue by explicitly calling ksmbd_user_session_put to release the reference to the session.

Which versions are affected by CVE-2025-71150?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-71150?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-71150 being exploited?

There is no known exploitation of CVE-2025-71150 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-78425, BELL-CVE-2025-71150, DEBIAN-CVE-2025-71150, GHSA-4mf3-frrh-jfqw, ROOT-OS-DEBIAN-12-CVE-2025-71150, ROOT-OS-DEBIAN-13-CVE-2025-71150 and 3 more.

Is CVE-2025-71150 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free