CVE-2026-89709: lockd, nfsd: RCU-protect nlmsvc_ops dispatch

Published Sep 11, 2026
·
Updated

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

lockd, nfsd: RCU-protect nlmsvcops dispatch

nlmsvcops is published by nfsdlockdinit() and cleared by nfsdlockdshutdown() with plain stores, while lockd dereferences it unguarded from dispatch sites in fs/lockd/svcsubs.c. The pointer targets nfsd's .rodata and the fopen/fclose callbacks live in nfsd's .text, so a stale load after rmmod nfsd results in either a NULL deref or a module-text use-after-free.

Declare nlmsvcops as rcu, publish via rcuassignpointer(), clear via RCUINITPOINTER() + synchronizercu(). Add a struct module owner field to nlmsvcbinding and pin the module across indirect calls with trymoduleget/moduleput. When the binding is torn down, fall back to fput() to avoid leaking struct file references.

Affected Software

1 affected component
Linux Linux kernel

Event History

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

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel with both lockd and nfsd involved are exposed when nfsd's lockd integration is initialized and nfsd can subsequently be unloaded. The failure occurs when lockd dispatches through a stale nlmsvc_ops pointer after nfsd module removal.

2

What conditions are needed to trigger the vulnerability?

The relevant condition is a race between lockd dispatch activity and nfsd shutdown or module removal. A stale pointer can lead to a NULL dereference or an indirect call into nfsd module text after that module has been unloaded.

3

How can I tell whether a system may already be affected?

Look for kernel crashes consistent with a NULL pointer dereference or use-after-free involving lockd dispatch paths during or after removal of the nfsd module. The described stale pointer is nlmsvc_ops, and the affected dispatch code is in fs/lockd/svcsubs.c.

4

What does the fix change?

The fix RCU-protects publication and clearing of nlmsvc_ops, waits for active readers during teardown, and pins the owning module around indirect callback calls. It also uses fput() when a binding is torn down to avoid leaking struct file references.

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