Linux
lockd, nfsd: RCU-protect nlmsvc_ops dispatch
In the Linux kernel, the following vulnerability has been resolved: lockd, nfsd: RCU-protect nlmsvc_ops dispatch nlmsvc_ops is published by nfsd_lockd_init() and cleared by nfsd_lockd_shutdown() 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 nlmsvc_ops as __rcu, publish via rcu_assign_pointer(), clear via RCU_INIT_POINTER() + synchronize_rcu(). Add a struct module *owner field to nlmsvc_binding and pin the module across indirect calls with try_module_get/module_put. When the binding is torn down, fall back to fput() to avoid leaking struct file references.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cc2f0d79b21be69b891cbd1899daf2a1fdf9df87
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 43943532c105ea8fe26039a1347cfda4ac0fcadc
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6e7495972039f212e336e552b58cac9dd54611c3
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 836ce2b99bcce6d68c58edd04efbc5cd1fd581af
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 3c461a1820088fb5889d73a6522369bde45527a9
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 641e5e20852359b8c31149be4598884e30652f60
Fixed in cc2f0d79b21be69b891cbd1899daf2a1fdf9df87, 43943532c105ea8fe26039a1347cfda4ac0fcadc, 6e7495972039f212e336e552b58cac9dd54611c3, 836ce2b99bcce6d68c58edd04efbc5cd1fd581af, 3c461a1820088fb5889d73a6522369bde45527a9, 641e5e20852359b8c31149be4598884e30652f60
- 2.6.12
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.2.4, 7.3
Mitigation
Upgrade Linux to cc2f0d79b21be69b891cbd1899daf2a1fdf9df87 or 43943532c105ea8fe26039a1347cfda4ac0fcadc or 6e7495972039f212e336e552b58cac9dd54611c3 or 836ce2b99bcce6d68c58edd04efbc5cd1fd581af or 3c461a1820088fb5889d73a6522369bde45527a9 or 641e5e20852359b8c31149be4598884e30652f60 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.