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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-06-25T08:39:56.489Z
- **Modified:** 2026-07-08T04:01:39.257Z

## Who should check

- Anyone running Linux \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< 945a86b21b40fb17183f5b27461baa6f03e2467f; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 1ff58dcfcab434ebb51649da33774fbb8e1f7b67; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< e735dbd489e3ea02be78dba991056fe1138be51e; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 75e33deda658c1ab3a9336cbdb1436536f9b3660; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< b003086d76968298f22e7cf62239833b5a3a06b1; \>= 6.6.32, \< 6.6.143
- Anyone running Linux 6.9

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

## Affected and fixed versions

- Linux: \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< 945a86b21b40fb17183f5b27461baa6f03e2467f; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 1ff58dcfcab434ebb51649da33774fbb8e1f7b67; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< e735dbd489e3ea02be78dba991056fe1138be51e; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 75e33deda658c1ab3a9336cbdb1436536f9b3660; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< b003086d76968298f22e7cf62239833b5a3a06b1; \>= 6.6.32, \< 6.6.143 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.143 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53271. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53271.md
Affected: Linux >= 8df4bcdb0a4232192b2445256c39b787d58ef14d, < 945a86b21b40fb17183f5b27461baa6f03e2467f; >= c8efcc786146a951091588e5fa7e3c754850cb3c, < 1ff58dcfcab434ebb51649da33774fbb8e1f7b67; >= c8efcc786146a951091588e5fa7e3c754850cb3c, < e735dbd489e3ea02be78dba991056fe1138be51e; >= c8efcc786146a951091588e…
Fixed in: Linux 945a86b21b40fb17183f5b27461baa6f03e2467f, Linux 1ff58dcfcab434ebb51649da33774fbb8e1f7b67, Linux 75e33deda658c1ab3a9336cbdb1436536f9b3660, Linux 6.6.143

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53271 being exploited?

There is no confirmed exploitation: CVE-2026-53271 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-53271?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-53271?

Linux \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< 945a86b21b40fb17183f5b27461baa6f03e2467f; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 1ff58dcfcab434ebb51649da33774fbb8e1f7b67; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< e735dbd489e3ea02be78dba991056fe1138be51e; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 75e33deda658c1ab3a9336cbdb1436536f9b3660; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< b003086d76968298f22e7cf62239833b5a3a06b1; \>= 6.6.32, \< 6.6.143; Linux 6.9.

### Is there a fix for CVE-2026-53271?

Yes. Fixed in Linux 945a86b21b40fb17183f5b27461baa6f03e2467f, Linux 1ff58dcfcab434ebb51649da33774fbb8e1f7b67, Linux 75e33deda658c1ab3a9336cbdb1436536f9b3660, Linux 6.6.143. Upgrade Linux to 6.6.143 or later.

### How do I check if I'm affected by CVE-2026-53271?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53271>

HTML: <https://flawdb.com/CVE-2026-53271> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53271>
