Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-68381

ksmbd: pin conn during async oplock break notification
Back to all
CVE

CVE-2026-68381

ksmbd: pin conn during async oplock break notification

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

ksmbd: pin conn during async oplock break notification

smb2oplockbreaknoti() and smb2leasebreaknoti() 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 ksmbdconnwrite() and

ksmbdconnrcountdec().

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/0f72fc9659d7f585460d43c158055df5afdcffb6, https://git.kernel.org/stable/c/14062c74e5b25c27edcff7a2fe0dc701c930b372, https://git.kernel.org/stable/c/6ecb252efa0b413ac3d9979fb4eec247f8fc1258, https://git.kernel.org/stable/c/793e1c7041b93af96ff87e678329bc16aee7ba88, https://git.kernel.org/stable/c/aa5d8f3f96aa11a4a54ce993c11ce8af11c546f9, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68381.json, https://nvd.nist.gov/vuln/detail/CVE-2026-68381, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00457%
EPSS Percentile
0.37836%
Introduced Version
09aeab68033161cb54f194da93e51a11aee6144b,a4261bbc33fbf99b99c80aa3a2c5097611802980,3aa660c059240e0c795217182cf7df32909dd917,0,6.6.84,6.12.20,6.13.8,6.7.0,6.13.0,6.14.0
Fix Available
0f72fc9659d7f585460d43c158055df5afdcffb6,793e1c7041b93af96ff87e678329bc16aee7ba88,aa5d8f3f96aa11a4a54ce993c11ce8af11c546f9,6.6.148,6.12.101,6.14,6.18.42,7.1.6,6.12.101-1~deb12u1,6.12.101-1

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading