CVE-2026-80926: ksmbd: fix use-after-free in oplock break notification

Published Sep 11, 2026
·
Updated

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

ksmbd: fix use-after-free in oplock break notification

smb2oplockbreaknoti() reads opinfo->conn without any lock and dereferences it after two allocations which may sleep. When the durable handle owning the oplock is disconnected, sessionfdcheck() clears opinfo->conn and drops its conn reference under ci->mlock, and the last ksmbdconnput() frees the connection. A break triggered by another connection that races with the teardown can then resurrect the freed connection: ksmbdconnget() is a plain atomicinc, and the queued break work later dereferences the stale conn via ksmbdconnwrite(), a use-after-free reachable by any authenticated client holding a durable batch oplock.

Thread the caller's inode into the notification path instead of taking a new reference on it. Every caller of oplockbreak() already holds a live ksmbdfile (or an explicit ksmbdinodelookuplock() reference, in the parent lease break paths) on the inode that owns the break target's oplock list, so ci cannot be freed during the call, and its lock can be taken without dereferencing opinfo->ofp, which a concurrent close may free. Select and pin the connection under ci->mlock, the same lock sessionfdcheck() and ksmbdreopendurablefd() use to update opinfo->conn, so a concurrent detach either loses the race to the clear or keeps the connection alive until the notification work releases it. Transfer the reference to the work item and release it on allocation failures.

Affected Software

1 affected component
The Linux Kernel Community Linux Kernel

Event History

Sep 11, 2026
CVE Published
via MITRE·07:37 PM
Data Sourced
via MITRE·07:37 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel's ksmbd SMB server are exposed when an authenticated SMB client can hold a durable batch oplock. The vulnerable path involves oplock break notifications during connection teardown.

2

What does an attacker need to trigger the race?

An attacker needs to be an authenticated client holding a durable batch oplock. A break initiated by another connection must race with disconnection of the durable-handle owner, allowing queued work to use a freed connection object.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203