{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99513","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.419Z","datePublished":"2026-11-19T14:44:11.822Z","dateUpdated":"2026-11-22T11:08:43.498Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:08:43.498Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nlockd: Fix use-after-free in nlmsvc_retry_blocked\n\nnlmsvc_retry_blocked() examines the block at the head of nlm_blocked\nunder nlm_blocked_lock, then releases the lock before calling\nnlmsvc_grant_blocked() or retry_deferred_block(). The nlm_blocked list\nreference is all that keeps the block alive across that window.\nnlmsvc_grant_blocked() does take one of its own, but not until after\nthe lock has been dropped. Unmounting the nfsd filesystem while a lock\nrequest is still blocked reaches nlmsvc_traverse_blocks(), which drops\nthe list reference and frees the block along with the nlm_rqst hanging\noff it.\n\n  BUG: KASAN: slab-use-after-free in nlm_async_call+0xd6/0x230\n  Read of size 8 at addr ffff88811b04c808 by task lockd/8377\n    nlm_async_call+0xd6/0x230\n    nlmsvc_retry_blocked+0x61c/0x800\n    lockd+0x144/0x1c0\n  Freed by task 8392:\n    nlmsvc_release_block+0x231/0x290\n    nlmsvc_traverse_blocks+0x139/0x1b0\n    nlm_traverse_files+0x1aa/0xa00\n    nlmsvc_free_host_resources+0x12/0x60\n    nlm_shutdown_hosts_net+0x127/0x280\n    lockd_down+0xd5/0x1c0\n\nTake a reference before releasing nlm_blocked_lock and drop it once\nthe retry has run."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - NLM on TCP or UDP carries the attack into lockd() → nlmsvc_retry_blocked. nlmsvc_proc_lock queues the nlm_block, NLMPROC_UNLOCK reaches nlmsvc_notify_blocked and makes b_when due, and nlmsvc_proc_free_all or nlmsvc_proc_cancel frees it in the window after nlmsvc_retry_blocked drops nlm_blocked_lock.\nAC:L - One client sends the blocking NLMPROC_LOCK, the NLMPROC_UNLOCK that makes b_when due, and a concurrent NLMPROC_FREE_ALL or NLMPROC_CANCEL. Those calls run nlmsvc_free_host_resources or nlmsvc_cancel_blocked against the block nlmsvc_grant_blocked is about to use, and the client can repeat the exchange.\nPR:N - lockd_authenticate() accepts RPC_AUTH_NULL and RPC_AUTH_UNIX, and nlm_fopen() sets NFSD_MAY_BYPASS_GSS so check_security_flavor() accepts those flavors. The LOCK uid is only asserted, and nlmsvc_proc_free_all calls nlmsvc_free_host_resources with that same unauthenticated RPC flavor.\nUI:N - The attacker sends NLMPROC_LOCK, NLMPROC_UNLOCK, and NLMPROC_FREE_ALL or NLMPROC_CANCEL. lockd() then calls nlmsvc_retry_blocked from its own kernel thread.\nS:U - The corrupted objects are this host's nlm_block and nlm_rqst in lockd, so the impact remains in the kernel that runs nfsd.\nC:H - nlmsvc_grant_blocked() passes freed block->b_call to nlm_async_call(), which reads nlm_rqst.a_host, and encode_nlm_lock() then copies lock->caller and oh.data for oh.len bytes into NLMPROC_GRANTED_MSG. Reclaiming the nlm_rqst lets those pointers select kernel memory that is sent to the client.\nI:H - nlmsvc_grant_blocked() kref_get()s the freed b_count, stores b_granted, and nlmsvc_unlink_block() calls locks_delete_block() on the file_lock in the freed nlm_rqst before nlmsvc_insert_block() relinks b_list. nlmsvc_grant_release() later kref_put()s a_block, so a reused slab turns those updates into attacker-controlled writes.\nA:H - lockd() dereferences the freed nlm_rqst in nlm_async_call() from nlmsvc_retry_blocked(). That is the slab use-after-free reported by KASAN and it oopses the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/lockd/svclock.c"],"versions":[{"version":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","lessThan":"6506c27da6756c0c7590ef60774ee5d35f6a4100","status":"affected","versionType":"git"},{"version":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","lessThan":"70825b251e5f7855fd7bd93afc0b698154e00e70","status":"affected","versionType":"git"},{"version":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","lessThan":"25d0baa6adb4a0b3f6889d42033ce8df3232bea7","status":"affected","versionType":"git"},{"version":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","lessThan":"f5b7634f0f213299a07b461fb10385c8639a4ab8","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/lockd/svclock.c"],"versions":[{"version":"2.6.22","status":"affected"},{"version":"0","lessThan":"2.6.22","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/6506c27da6756c0c7590ef60774ee5d35f6a4100"},{"url":"https://git.kernel.org/stable/c/70825b251e5f7855fd7bd93afc0b698154e00e70"},{"url":"https://git.kernel.org/stable/c/25d0baa6adb4a0b3f6889d42033ce8df3232bea7"},{"url":"https://git.kernel.org/stable/c/f5b7634f0f213299a07b461fb10385c8639a4ab8"}],"title":"lockd: Fix use-after-free in nlmsvc_retry_blocked","x_generator":{"engine":"bippy-1.2.0"}}}}