What’s Vulnerable › Vulnerabilities
CVE-2026-99513: lockd: Fix use-after-free in nlmsvc_retry_blocked
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-11-19 · updated 2026-11-23
Description
In the Linux kernel, the following vulnerability has been resolved: lockd: Fix use-after-free in nlmsvc_retry_blocked nlmsvc_retry_blocked() examines the block at the head of nlm_blocked under nlm_blocked_lock, then releases the lock before calling nlmsvc_grant_blocked() or retry_deferred_block(). The nlm_blocked list reference is all that keeps the block alive across that window. nlmsvc_grant_blocked() does take one of its own, but not until after the lock has been dropped. Unmounting the nfsd filesystem while a lock request is still blocked reaches nlmsvc_traverse_blocks(), which drops the list reference and frees the block along with the nlm_rqst hanging off it. BUG: KASAN: slab-use-after-free in nlm_async_call+0xd6/0x230 Read of size 8 at addr ffff88811b04c808 by task lockd/8377 nlm_async_call+0xd6/0x230 nlmsvc_retry_blocked+0x61c/0x800 lockd+0x144/0x1c0 Freed by task 8392: nlmsvc_release_block+0x231/0x290 nlmsvc_traverse_blocks+0x139/0x1b0 nlm_traverse_files+0x1aa/0xa00 nlmsvc_free_host_resources+0x12/0x60 nlm_shutdown_hosts_net+0x127/0x280 lockd_down+0xd5/0x1c0 Take a reference before releasing nlm_blocked_lock and drop it once the retry has run.
Summary
A use-after-free flaw in the Linux kernel's lockd code: nlmsvc_retry_blocked() drops nlm_blocked_lock before taking its own reference to the block, so unmounting the nfsd filesystem while a lock request is still blocked can free the block and the nlm_rqst attached to it, leading to a slab-use-after-free (KASAN-reported in nlm_async_call). The impact is a kernel memory corruption that can crash the system or potentially be exploited for privilege escalation, rated CVSS 9.8 critical. Affected is the Linux kernel, fixed in 7.4-rc1. There is no indication of active exploitation (not in CISA KEV; EPSS about 0.2%). Update to Linux 7.4-rc1 or a later release containing the fix; until then, avoid unmounting nfsd while lock requests are pending.
ثغرة use-after-free في شيفرة lockd في نواة Linux: تُحرِّر الدالة nlmsvc_retry_blocked() القفل nlm_blocked_lock قبل أن تأخذ مرجعها الخاص إلى الكتلة، لذا فإن إلغاء تركيب نظام ملفات nfsd أثناء وجود طلب قفل معلّق قد يؤدي إلى تحرير الكتلة وطلب nlm_rqst المرتبط بها، ما يسبب slab-use-after-free (أبلغ عنها KASAN في nlm_async_call). الأثر هو إفساد لذاكرة النواة قد يؤدي إلى انهيار النظام أو استغلال محتمل لرفع الصلاحيات، بتقييم CVSS 9.8 حرج. المنتج المتأثر هو نواة Linux، وأُصلحت الثغرة في الإصدار 7.4-rc1. لا توجد مؤشرات على استغلال نشط (ليست في CISA KEV؛ احتمال EPSS نحو 0.2%). يُنصح بالترقية إلى Linux 7.4-rc1 أو إصدار لاحق يتضمن الإصلاح، وتجنّب إلغاء تركيب nfsd أثناء وجود طلبات قفل معلّقة إلى حين الترقية.
Affected products
- Linux: 2.6.22 — fixed in 7.4-rc1
How to fix
Upgrade to a fixed version: Linux 7.4-rc1. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/12515c7c98ed26de43276d2f05e3bbf987a957a4
- https://git.kernel.org/stable/c/25d0baa6adb4a0b3f6889d42033ce8df3232bea7
- https://git.kernel.org/stable/c/25d464587df6b0b0f3f34dfbd4b4770a0ef674eb
- https://git.kernel.org/stable/c/6506c27da6756c0c7590ef60774ee5d35f6a4100
- https://git.kernel.org/stable/c/70825b251e5f7855fd7bd93afc0b698154e00e70
- https://git.kernel.org/stable/c/aa5cb74fdbb5accd0d5e96eea9116b277057eb24
- https://git.kernel.org/stable/c/ae650b72f49cf07b22dcfb538f1362ed1cfa7200
- https://git.kernel.org/stable/c/f5b7634f0f213299a07b461fb10385c8639a4ab8
Get alerted when CVE-2026-99513 or the next vulnerability affects your stack