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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-25T08:39:56.489Z
- Modified: 2026-07-08T04:01:39.257Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8df4bcdb0a4232192b2445256c39b787d58ef14d before 945a86b21b40fb17183f5b27461baa6f03e2467f; from c8efcc786146a951091588e5fa7e3c754850cb3c before 1ff58dcfcab434ebb51649da33774fbb8e1f7b67; from c8efcc786146a951091588e5fa7e3c754850cb3c before e735dbd489e3ea02be78dba991056fe1138be51e; from c8efcc786146a951091588e5fa7e3c754850cb3c before 75e33deda658c1ab3a9336cbdb1436536f9b3660; from c8efcc786146a951091588e5fa7e3c754850cb3c before b003086d76968298f22e7cf62239833b5a3a06b1; from 6.6.32 before 6.6.143; 6.9 (not affected: before 6.9; from 6.6.143 up to 6.6.*; from 6.12.94 up to 6.12.*; from 6.18.36 up to 6.18.*; from 7.0.13 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.6.32 before 6.6.143; from 6.9 before 6.12.94; from 6.13 before 6.18.36; from 6.19 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/945a86b21b40fb17183f5b27461baa6f03e2467f> (patch)
- <https://git.kernel.org/stable/c/1ff58dcfcab434ebb51649da33774fbb8e1f7b67> (patch)
- <https://git.kernel.org/stable/c/e735dbd489e3ea02be78dba991056fe1138be51e> (patch)
- <https://git.kernel.org/stable/c/75e33deda658c1ab3a9336cbdb1436536f9b3660> (patch)
- <https://git.kernel.org/stable/c/b003086d76968298f22e7cf62239833b5a3a06b1> (patch)

## Sources

- CVE List: [CVE-2026-53271](https://www.cve.org/CVERecord?id=CVE-2026-53271), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-53271](https://nvd.nist.gov/vuln/detail/CVE-2026-53271), Public domain, modified 2026-07-08

---

Page: https://cve.day/CVE-2026-53271 · Whole record: https://cve.day/CVE-2026-53271.json · Rebuilt by cve.day 2026-11-25T22:59:26.344Z
