CVE-2026-90156: ksmbd: safely discard unregistered deferred locks

Published Sep 17, 2026
·
Updated

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

ksmbd: safely discard unregistered deferred locks

When vfslockfile() defers a lock, smb2lock() puts its ksmbdlock on rollbacklist before allocating and registering the asynchronous work. If either operation fails, rollback assumes that smblock->conn is initialized and dereferences NULL. The deferred filelock also remains linked into the VFS blocked-lock state while it is freed.

Keep the lock off rollbacklist until async setup succeeds. On setup failures, explicitly unblock and wake the deferred lock before freeing it and its ksmbd wrapper.

Event History

Sep 17, 2026
CVE Published
via MITRE·04:06 PM
Data Sourced
via MITRE·04:06 PM
Description

Frequently Asked Questions

1

What sequence is required to reach the faulty cleanup path?

vfs_lock_file() must defer a lock during smb2_lock(), after which allocation or registration of the asynchronous work must fail. The lock has already been placed on rollback_list before that async setup completes.

2

What can go wrong when asynchronous lock setup fails?

Rollback can dereference smb_lock->conn while it is NULL. The deferred file_lock can also be freed while still linked in the VFS blocked-lock state.

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