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

Published Jun 25, 2026
·
Updated

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

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

smb2oplockbreaknoti() and smb2leasebreaknoti() read opinfo->conn into a local with neither READONCE() nor a NULL check. Both run from oplockbreak() after opinfogetlist() has dropped ci->mlock, so a concurrent SMB2 LOGOFF (sessionfdcheck()) can set op->conn = NULL under ci->mlock within that window. ksmbdconnrcountinc(conn) then writes through NULL at offset 0xc4 -- a remotely triggerable oops.

Guard both reads the way compareguidkey() already does: read opinfo->conn with READONCE() 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; oplockbreak() treats that as success and runs the normal teardown.

Affected Software

11 affected components
Linux Linux kernel
Linux Linux kernel>=6.6.32<6.6.143
Linux Linux kernel>=6.9<6.12.94
Linux Linux kernel>=6.13<6.18.36
Linux Linux kernel>=6.19<7.0.13
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5
Linux Linux kernel=7.1-rc6

Event History

Jun 25, 2026
CVE Published
via MITRE·08:39 AM
Data Sourced
via MITRE·08:39 AM
Description
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-53271?

CVE-2026-53271 has a risk rating of 52, indicating a moderate level of vulnerability.

2

What type of vulnerability is CVE-2026-53271?

CVE-2026-53271 is a NULL dereference vulnerability found in the Linux kernel's ksmbd.

3

How can I mitigate CVE-2026-53271?

To mitigate CVE-2026-53271, ensure you apply the latest security updates for the Linux kernel that address this issue.

4

Which software is affected by CVE-2026-53271?

CVE-2026-53271 affects the Linux kernel, specifically the ksmbd component used for SMB protocol implementations.

5

When was CVE-2026-53271 published?

CVE-2026-53271 was published on June 25, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203