{"id":"CVE-2026-99513","aliases":["CVE-2026-99513"],"related":[],"kind":"vulnerability","state":"published","title":"lockd: Fix use-after-free in nlmsvc_retry_blocked","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-19T14:44:11.822Z","modified":"2026-11-23T08:17:54.003Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","fixed":"12515c7c98ed26de43276d2f05e3bbf987a957a4","status":"affected"},{"type":"git","introduced":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","fixed":"aa5cb74fdbb5accd0d5e96eea9116b277057eb24","status":"affected"},{"type":"git","introduced":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","fixed":"ae650b72f49cf07b22dcfb538f1362ed1cfa7200","status":"affected"},{"type":"git","introduced":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","fixed":"25d464587df6b0b0f3f34dfbd4b4770a0ef674eb","status":"affected"},{"type":"git","introduced":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","fixed":"6506c27da6756c0c7590ef60774ee5d35f6a4100","status":"affected"},{"type":"git","introduced":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","fixed":"70825b251e5f7855fd7bd93afc0b698154e00e70","status":"affected"},{"type":"git","introduced":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","fixed":"25d0baa6adb4a0b3f6889d42033ce8df3232bea7","status":"affected"},{"type":"git","introduced":"0e4ac9d93515b27fd7635332d73eae3192ed5d4e","fixed":"f5b7634f0f213299a07b461fb10385c8639a4ab8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.22","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.22","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/12515c7c98ed26de43276d2f05e3bbf987a957a4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa5cb74fdbb5accd0d5e96eea9116b277057eb24","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae650b72f49cf07b22dcfb538f1362ed1cfa7200","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25d464587df6b0b0f3f34dfbd4b4770a0ef674eb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6506c27da6756c0c7590ef60774ee5d35f6a4100","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70825b251e5f7855fd7bd93afc0b698154e00e70","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25d0baa6adb4a0b3f6889d42033ce8df3232bea7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5b7634f0f213299a07b461fb10385c8639a4ab8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99513","url":"https://www.cve.org/CVERecord?id=CVE-2026-99513","licence":"CVE Terms of Use","modified":"2026-11-23T08:03:45.906Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99513","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99513","licence":"Public domain","modified":"2026-11-23T08:17:54.003Z"}],"updatedAt":"2026-11-25T22:59:52.099Z","epss":{"score":0.00734,"percentile":0.50453,"date":"2026-11-30T12:00:22.000Z"}}