CVE-2026-99513
published critical CVSS 3.1 · 9.8lockd: Fix use-after-free in nlmsvc_retry_blocked
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 12515c7c98ed26de43276d2f05e3bbf987a957a4 · 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < aa5cb74fdbb5accd0d5e96eea9116b277057eb24 · 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < ae650b72f49cf07b22dcfb538f1362ed1cfa7200 · 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 25d464587df6b0b0f3f34dfbd4b4770a0ef674eb · 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 6506c27da6756c0c7590ef60774ee5d35f6a4100 · 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 70825b251e5f7855fd7bd93afc0b698154e00e70 · 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 25d0baa6adb4a0b3f6889d42033ce8df3232bea7 · 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < f5b7634f0f213299a07b461fb10385c8639a4ab8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.22 (affected) · 0 to < 2.6.22 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-3538 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 12515c7c98ed26de43276d2f05e3bbf987a957a4 (affected · git)0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < aa5cb74fdbb5accd0d5e96eea9116b277057eb24 (affected · git)0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < ae650b72f49cf07b22dcfb538f1362ed1cfa7200 (affected · git)0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 25d464587df6b0b0f3f34dfbd4b4770a0ef674eb (affected · git)0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 6506c27da6756c0c7590ef60774ee5d35f6a4100 (affected · git)0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 70825b251e5f7855fd7bd93afc0b698154e00e70 (affected · git)0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < 25d0baa6adb4a0b3f6889d42033ce8df3232bea7 (affected · git)0e4ac9d93515b27fd7635332d73eae3192ed5d4e to < f5b7634f0f213299a07b461fb10385c8639a4ab8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.22 (affected)0 to < 2.6.22 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- 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
Provider assertions
1Linux · cna
lockd: Fix use-after-free in nlmsvc_retry_blocked
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 966f625263c81a626d216da1f31470c9b4ddf94182707aa36f9103383cdcd3fb
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record