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

ksmbd: fix use-after-free in same_client_has_lease()

same_client_has_lease() returns an opinfo pointer from ci->m_op_list
after dropping ci->m_lock without taking a reference.

smb_grant_oplock() then dereferences that pointer in copy_lease() and
when checking breaking_cnt. A concurrent close can remove the old lease
from ci->m_op_list and drop the last reference before the caller uses
the returned pointer, leading to a use-after-free.

Take a reference when same_client_has_lease() selects an existing lease,
drop any previous match while scanning, and release the returned
reference in smb_grant_oplock() after copying the lease state.
Published: 2026-08-15
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A use‑after‑free flaw in the ksmbd SMB server module causes the function same_client_has_lease() to return a pointer to a lease structure after releasing a lock and without taking a reference. When a client concurrently closes, the lease can be freed while another function dereferences the stale pointer, corrupting kernel memory. This flaw can allow an attacker to trigger arbitrary kernel memory corruption, potentially leading to privilege escalation or complete system takeover. The weakness maps to CWE‑416: Use‑After‑Free.

Affected Systems

The vulnerability exists in the Linux kernel, affecting all distributions that ship the vfs or ksmbd code unchanged. No specific Linux kernel version range is listed in the advisory.

Risk and Exploitability

The advisory does not provide an EPSS score or CVSS score, but the nature of a kernel use‑after‑free strongly suggests a high exploitability. The vulnerability can be triggered by a client that establishes an SMB lease and performs an out‑of‑order close on the same connection, implying a remote attack vector from an SMB client. Because the flaw is in kernel code, a successful exploit would grant the attacker root privileges. The advisory states the vulnerability is not listed in CISA KEV; however, the potential impact warrants immediate action.

Generated by OpenCVE AI on August 15, 2026 at 12:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to the latest stable release that includes the ksmbd use‑after‑free fix.
  • Restrict SMB traffic to trusted hosts and consider disabling the SMBv1 protocol or the ksmbd service until the patch is applied.
  • Enable kernel hardening features such as KASLR and signed module enforcement to raise the bar for exploitation.
  • Monitor system logs for abnormal SMB or kernel activity and apply any interim mitigations released by the Linux community.

Generated by OpenCVE AI on August 15, 2026 at 12:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in same_client_has_lease() same_client_has_lease() returns an opinfo pointer from ci->m_op_list after dropping ci->m_lock without taking a reference. smb_grant_oplock() then dereferences that pointer in copy_lease() and when checking breaking_cnt. A concurrent close can remove the old lease from ci->m_op_list and drop the last reference before the caller uses the returned pointer, leading to a use-after-free. Take a reference when same_client_has_lease() selects an existing lease, drop any previous match while scanning, and release the returned reference in smb_grant_oplock() after copying the lease state.
Title ksmbd: fix use-after-free in same_client_has_lease()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-15T05:57:26.967Z

Reserved: 2026-08-09T03:40:39.936Z

Link: CVE-2026-72492

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:23.533

Modified: 2026-08-15T06:22:23.533

Link: CVE-2026-72492

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T12:15:03Z

Weaknesses

No weakness.