CVE-2026-53271
ksmbd: fix NULL-deref of opinfo->conn in oplock/lease break notifiers
Reported by linux · Published June 25, 2026
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.
EPSS 0.16% · 5.4th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-azure-6.18 | Chainguard | 6.18.38-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 8df4bcdb0a4232192b2445256c39b787d58ef14d, c8efcc786146a951091588e5fa7e3c754850cb3c, c8efcc786146a951091588e5fa7e3c754850cb3c |
| Linux | Linux | 6.9, 0, 6.6.143 |
| chainguard | linux-azure-6.18 | 0 |
| linux | linux_kernel | 6.9, 6.9, 6.9 |
| Linux | Linux | 7.1, 6.12.94, 6.18.36 |
| chainguard | linux-gcp-6.18 | 0 |
| chainguard | linux-qemu-melange | 0 |
| chainguard | linux-qemu-6.18 | 0 |
Timeline
- Jun 24, 2026 CVE Published
- Jun 26, 2026 EPSS Score (8 in total, the first dated here)
- Jun 26, 2026 Coalition ESS Score
- Jun 29, 2026 Security Advisory (64 in total, the first dated here)
- Aug 11, 2026 Distribution Patch (63 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-53271
vulnetix vdb fixes CVE-2026-53271
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-53271/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart