CVE-2026-99513
lockd: Fix use-after-free in nlmsvc_retry_blocked
What happened?
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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 12515c7c98ed26de43276d2f05e3bbf987a957a4; affected: 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < aa5cb74fdbb5accd0d5e96eea9116b277057eb24; affected: 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < ae650b72f49cf07b22dcfb538f1362ed1cfa7200; affected: 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 25d464587df6b0b0f3f34dfbd4b4770a0ef674eb; affected: 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 6506c27da6756c0c7590ef60774ee5d35f6a4100; affected: 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 70825b251e5f7855fd7bd93afc0b698154e00e70; affected: 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 25d0baa6adb4a0b3f6889d42033ce8df3232bea7; affected: 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < f5b7634f0f213299a07b461fb10385c8639a4ab8 | See vendor advisory |
| LinuxLinux | affected: 2.6.22; unaffected: 0 to < 2.6.22; unaffected: 5.10.275 to ≤ 5.10.*; unaffected: 5.15.226 to ≤ 5.15.*; unaffected: 6.1.193 to ≤ 6.1.*; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.117 to ≤ 6.12.*; unaffected: 6.18.61 to ≤ 6.18.*; unaffected: 7.3.2 to ≤ 7.3.*; unaffected: 7.4-rc1 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99513
- https://git.kernel.org/stable/c/12515c7c98ed26de43276d2f05e3bbf987a957a4
- https://git.kernel.org/stable/c/aa5cb74fdbb5accd0d5e96eea9116b277057eb24
- https://git.kernel.org/stable/c/ae650b72f49cf07b22dcfb538f1362ed1cfa7200
- 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/25d0baa6adb4a0b3f6889d42033ce8df3232bea7
- https://git.kernel.org/stable/c/f5b7634f0f213299a07b461fb10385c8639a4ab8