CVE-2026-53271

ksmbd: fix NULL-deref of opinfo->conn in oplock/lease break notifiers

Published Jun 25, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix NULL-deref of opinfo->conn in oplock/lease break notifiers

smb2_oplock_break_noti() and smb2_lease_break_noti() read opinfo->conn
into a local with neither READ_ONCE() nor a NULL check. Both run from
oplock_break() after opinfo_get_list() has dropped ci->m_lock, so a
concurrent SMB2 LOGOFF (session_fd_check()) can set op->conn = NULL
under ci->m_lock within that window. ksmbd_conn_r_count_inc(conn) then
writes through NULL at offset 0xc4 -- a remotely triggerable oops.

Guard both reads the way compare_guid_key() already does: read
opinfo->conn with READ_ONCE() and return early if it is NULL, before
allocating the work struct so nothing leaks. A NULL conn means the
client is gone and the break is moot, so return 0; oplock_break() treats
that as success and runs the normal teardown.

Analysis

AI-generated

Technical impact

In the Linux kernel, the SMB server component ksmbd contains a race condition that allows a concurrent SMB2 LOGOFF to clear the opinfo->conn pointer while oplock/lease break notifiers are running. The notifiers read this pointer without a NULL check, causing a null pointer dereference that triggers a kernel oops and system crash. The flaw results in a denial of service; no evidence in the description indicates arbitrary code execution.

Affected Systems

All Linux kernels that incorporate the upstream ksmbd implementation without the patch are affected. No version range is specified, so any build of the kernel that has not applied the referenced commit is vulnerable.

Risk and Exploitability

Exploitation is possible remotely by a malicious SMB client that sequences lease or oplock requests with a LOGOFF to produce the race. The EPSS score of < 1% indicates a very low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. The CVSS score of 5.5 indicates a moderate risk level. Because the flaw causes a kernel oops, an attacker can terminate the system, disrupting availability. There is no confirmed privilege escalation path beyond the crash, but the high impact and lack of mitigations make the risk significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the ksmbd patch and apply the update through your distribution’s package manager.
  • If a kernel update cannot be applied immediately, manually apply the commit that adds NULL checks to ksmbd’s oplock/lease break notifiers—pull the referenced patch and rebuild the kernel.
  • Restrict SMB traffic to trusted sources or disable oplock/lease handling in the SMB server configuration if the feature is not essential.

Generated by OpenCVE AI on August 13, 2026 at 15:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8726-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8727-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-3 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8800-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-4 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-872
Type Values Removed Values Added
Weaknesses CWE-476
CWE-872
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix NULL-deref of opinfo->conn in oplock/lease break notifiers smb2_oplock_break_noti() and smb2_lease_break_noti() read opinfo->conn into a local with neither READ_ONCE() nor a NULL check. Both run from oplock_break() after opinfo_get_list() has dropped ci->m_lock, so a concurrent SMB2 LOGOFF (session_fd_check()) can set op->conn = NULL under ci->m_lock within that window. ksmbd_conn_r_count_inc(conn) then writes through NULL at offset 0xc4 -- a remotely triggerable oops. Guard both reads the way compare_guid_key() already does: read opinfo->conn with READ_ONCE() and return early if it is NULL, before allocating the work struct so nothing leaks. A NULL conn means the client is gone and the break is moot, so return 0; oplock_break() treats that as success and runs the normal teardown.
Title ksmbd: fix NULL-deref of opinfo->conn in oplock/lease break notifiers
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jun 25, 2026, 8:39 AM
Reserved
Jun 9, 2026, 7:44 AM
Status
Analyzed
Published
Jun 25, 2026, 9:16 AM
Modified
Jul 8, 2026, 4:01 AM
Severity
Public date
Jun 25, 2026, 12:00 AM