From mboxrd@z Thu Jan 1 00:00:00 1970 From: AL-KERNEL To: kernel-cve@kernelcve.org Subject: [CVE-2026-99513][MODERATE 7.0] lockd: Fix use-after-free in nlmsvc_retry_blocked Date: Sat, 21 Nov 2026 17:51:09 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AL-KERNEL-CVE: CVE-2026-99513 X-AL-KERNEL-Priority: MODERATE 7.0 X-AL-KERNEL-Severity: MODERATE 7.0 X-AL-KERNEL-Base-Severity: MODERATE X-AL-KERNEL-KPANIC: YES X-AL-KERNEL-ActionableScore: 4 X-AL-KERNEL-ActionableScore-Lower: unknown X-AL-KERNEL-Commit: 6506c27da6756c0c7590ef60774ee5d35f6a4100 List-Id: CVE: CVE-2026-99513 Priority: MODERATE 7.0 AL-KERNEL base severity: MODERATE KPANIC flag: YES Patch: lockd: Fix use-after-free in nlmsvc_retry_blocked Commit: 6506c27da6756c0c7590ef60774ee5d35f6a4100 Upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6506c27da6756c0c7590ef60774ee5d35f6a4100 Original CVE announcement: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99513 Analysis date: Sat, 21 Nov 2026 17:51:09 -0400 ActionableScore: 4 ActionableScore lower bound: unknown Actionable bucket: Borderline / manual review recommended Manual review required: YES Summary: Concurrent lockd teardown can free a blocked-lock object before retry processing finishes, causing a confirmed slab UAF read and potential kernel crash. ====================================================================== ABOUT THIS REPORT ====================================================================== The original Linux kernel CVE announcement for CVE-2026-99513 is available here: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99513 The original announcement does not normally provide a security severity estimate, CVSS assessment, or enough information to determine whether the reported kernel bug represents a practically relevant security issue. This report was generated by AL-KERNEL, an AI-assisted Linux kernel vulnerability analysis system developed by Alexander Larkin. It combines an autonomous classifier with LLM-assisted technical analysis and a separate ActionableScore mechanism. The purpose of this report is to prioritize Linux kernel CVEs before manual review, identify cases that require prompt investigation, and support automatic closure of issues that are unlikely to have meaningful security impact. Published priority for this report: MODERATE 7.0 Manual review required: YES A detailed explanation of the methodology and priority rules is included at the end of this message. ====================================================================== AL-KERNEL CLASSIFICATION RESULT ====================================================================== CVE-2026-99513 MODERATE https://www.kernelcve.org/list/?q=CVE-2026-99513 CHECK WITH IMPACT FROM ORIG NN MODERATE | AEGIS IMPACT MODERATE_KPANIC AEGIS_AS=6 LEGACY=MODERATE_KPANIC RESULT=SAME (final reconciliation agrees; DECISION: both MODERATE_KPANIC) Maybe valid. Check manually. Hints by AL-KERNEL: The best (paranoid) CVSS is 'AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H';*CWE-416;CWE-362;*CWE-664;Other CVSS 'AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H';BEST CVSS score: '7';DESCR 'A race in nlmsvc_retry_blocked allows the nlm_blocked list reference to be removed after nlm_blocked_lock is released while the lockd thread still uses the block. Concurrent nfsd filesystem unmount or lockd shutdown can free the block and its associated nlm_rqst before nlmsvc_grant_blocked or retry_deferred_block completes, producing a confirmed slab use-after-free read in nlm_async_call. The demonstrated impact is a local kernel crash and denial of service. In a worst case, slab reuse may permit broader confidentiality or integrity impact, but controlled object replacement and an arbitrary write primitive are not established. For the CVSS the PR:L value in the paranoid vector reflects deployments where a restricted service account or delegated operator can initiate nfsd or lockd teardown while a blocked NLM request exists. AC:H reflects the required race window between retry processing and resource teardown. Automated impact decision path. The original SimpleNet classifier selected MODERATE. The primary LLM estimated paranoid CVSS 7 and the production ActionableScore returned 4 with recommendation Borderline / manual review recommended. The production rules then evaluated CVSS thresholds and ActionableScore thresholds. Recorded rule transitions were CVSS and initial triage stage MODERATE to MODERATE_KPANIC because the CVSS score, vector or bug class threshold rule was applied. The legacy KP specialist produced a review artifact and its decision was processed by the applicable KP rules. The legacy FD or DH downgrade specialist has no review artifact for this run. Exact triggered rule markers were INCREASED_TO_MODERATE7_BASED_ON_GUESSCVSS. The independent weaker Aegis shadow evaluated CVSS 3.3 and ActionableScore 6 with primitive class CLASS_B and manual review REQUIRED. Its independently reconciled impact was MODERATE_KPANIC. The shadow agreed with the final production impact and aggregation did not change that impact. The final reported impact is MODERATE_KPANIC.';YES REQUIRES MANUAL CHECK; ,and ActionableScore result is Borderline / manual review recommended (with actual score 4) MAYBE READ DISK INIT LEAK UAF LINUS KPANIC INCREASED_TO_MODERATE7_BASED_ON_GUESSCVSS - - checked ====================================================================== ACTIONABLESCORE ANALYSIS ====================================================================== ActionableScore=4 PrimitiveClass=CLASS_B RealUAF=YES HostAdminRequired=UNKNOWN NamespaceScopedPrivilege=UNKNOWN ImportantCandidate=NO ManualReview=RECOMMENDED AutoDowngradeAllowed=YES RequiresHostUID0=UNKNOWN AuthorizationDecisionBypass=NO ProtectedResourceImpact=NONE B4PendingReview=NO B4PendingConfirmed=NO 1. ActionableScore * Raw base score: 3. * Conservative score: 4. REAL UAF FLOOR 4 raises 3 -> 4 because an active structured block is used after free and host-admin-only triggering is not established. * Raw paranoid score: 3. * Paranoid score: 4. The same floor applies; no additional exploit primitive is supported. * Final recommended bucket: **Borderline / manual review recommended**:: 2. Signal breakdown * +2 — Confirmed UAF: the list reference can be dropped during the unlocked window, freeing `block` and its associated `nlm_rqst` before retry processing. * +1 — Plausible kernel crash/DoS: KASAN confirms an eight-byte post-free read in `nlm_async_call()`. * +0 — No race penalty: concurrency with unmount/shutdown is required, but the evidence does not establish a narrow or materially uncontrollable race. * +0 — No structured-reuse leverage: the stale request is actively consumed, but controlled reclaim, attacker-shaped replacement contents, callback control, or directed read/write is not shown. * +0 — No second lifetime mutation: this is not a repeated put/free of the same dangling reference, so the repeated-release signal and FLOOR 5 do not apply. * +0 — No separate availability, confidentiality, or integrity points; the demonstrated crash and theoretical slab reuse are not separate proven effects. * NEW52/B5-R and NEW53/B3-PENDING do not apply: there is no retry-accumulated OOB write or shared-backing write. 3. Reachability analysis A blocked NLM request supplies the live object, while concurrent nfsd filesystem unmount or lockd shutdown performs the freeing traversal. The evidence does not establish whether one below-host-admin actor can perform the complete request-plus-teardown sequence. Delegated service operation is suggested only as a deployment possibility. Host UID 0, capability scope, namespace reachability, and prior privileged setup therefore remain unknown. No physical hardware prerequisite exists. 4. Primitive and severity reading This is a real race-induced UAF of an active structured `nlm_block`, not fixed stale storage. The stale path reaches normal retry/grant processing and reads the freed associated request. The shown effect is a kernel fault/DoS; useful post-reclaim consumption is unproven. It is CLASS_B rather than CLASS_A. ImportantCandidate is NO because no controlled replacement, write, disclosure, boundary bypass, or repeated lifetime mutation is shown. Auto-downgrade remains allowed, although human review is advisable due to the confirmed active-object UAF. 5. One-sentence report phrase Concurrent lockd teardown can free a blocked-lock object before retry processing finishes, causing a confirmed slab UAF read and potential kernel crash. 6. Manual review advice MANUAL CHECK RECOMMENDED Confirm the complete trigger’s privilege boundary and whether reclaim can produce behavior beyond the demonstrated stale read. 7. Call-site confidence Call-site confidence: high ====================================================================== UPSTREAM PATCH SUMMARY ====================================================================== Patch: lockd: Fix use-after-free in nlmsvc_retry_blocked Commit: 6506c27da6756c0c7590ef60774ee5d35f6a4100 Upstream URL: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6506c27da6756c0c7590ef60774ee5d35f6a4100 Commit description: 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. Fixes: 0e4ac9d ("lockd: handle fl_grant callbacks") Cc: stable@vger.kernel.org Reported-by: Shuangpeng Bai Closes: https://lore.kernel.org/linux-nfs/20260818235808.3458075-1-shuangpeng.kernel@gmail.com/ Reviewed-by: Jeff Layton Link: https://patch.msgid.link/20260822-lockd-retry-blocked-uaf-v3-1-761661eae60c@kernel.org Signed-off-by: Chuck Lever Signed-off-by: Greg Kroah-Hartman Changed files: fs/lockd/svclock.c Diff excerpt: Not included in this email. See the upstream URL for the full patch. Full patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6506c27da6756c0c7590ef60774ee5d35f6a4100 ====================================================================== DETAILED REPORT METHODOLOGY ====================================================================== The original Linux kernel CVE announcement for CVE-2026-99513 can be found here: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99513 The original CVE announcement normally does not include a security-level estimate. In particular, it may not contain a CVSS assessment, an impact level, or enough information to determine whether the reported bug is a practically relevant security issue. One purpose of this parallel CVE list is to provide that missing technical and prioritization information. The original goal of the AL-KERNEL project was to prioritize Linux kernel CVE analysis automatically before manual review. The system can also help identify non-security issues that may be suitable for automatic closure. This report was generated by AL-KERNEL, an AI-assisted Linux kernel vulnerability analysis system developed by Alexander Larkin. The first analysis stage combines an autonomous classifier with additional LLM-based analysis. The autonomous classifier runs locally on a CPU and is based on a backpropagation neural network. Together, these mechanisms produce a technical vulnerability description, identify likely weakness types, estimate CVSS severity, and provide input for ActionableScore. Two CVSS estimates are retained because incomplete kernel vulnerability information often permits more than one defensible interpretation: Conservative CVSS vector: AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H The Best / paranoid CVSS vector: AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H The Best / paranoid CVSS score: 7 The conservative vector represents a lower-impact interpretation. The Best/paranoid vector intentionally represents a plausible upper-bound interpretation and should not automatically be treated as demonstrated real-world impact. CVSS may also need to be adjusted for a particular Linux deployment, because actual reachability, privileges, enabled kernel configuration, hardware, namespaces, exposed device nodes, and other environmental conditions can differ significantly between systems. A separate ActionableScore mechanism evaluates practical remediation urgency. Its analysis may include reachability, attack prerequisites, subsystem exposure, memory-corruption characteristics, denial-of-service reliability, and possible confidentiality, integrity, or privilege-escalation impact. Conservative ActionableScore: unknown Paranoid ActionableScore: 4 The final base severity is taken directly from the second tab-separated field of the AL-KERNEL classification result. ActionableScore does not replace or independently override that final AL-KERNEL decision, and if ActionableScore adjusted impact level of ALKERNEL, then you would see self-readable flags above like INCREASED_TO_HIGH_BASED_ON_ACTIONABLESCOREHIGHEREQTHAN7. For an AL-KERNEL result of MODERATE, this report uses the following additional presentation split: ActionableScore below 5 -> MODERATE REGULAR ActionableScore 5 or more -> MODERATE 7.0 The distinction between MODERATE REGULAR and MODERATE 7.0 makes it possible to identify Moderate issues that should receive manual analysis and fixes before lower-priority MODERATE REGULAR issues. In many cases, MODERATE REGULAR fixes may wait for a later rebase or routine update. There is one override in which MODERATE REGULAR becomes MODERATE 7.0 even when the ActionableScore is below 5. When the AL-KERNEL result contains the KPANIC flag, a MODERATE result is always presented as MODERATE 7.0. The KPANIC flag selected with few regexps without usage of AI at all, so it helps to detect cases when Kernel Crash happens and similar (to filter False-Negative results from the LLM usage). KPANIC indicates that a reliable kernel crash, kernel panic, or similarly serious kernel availability impact was identified by the classification workflow. AL-KERNEL base severity for this report: MODERATE KPANIC detected for this report: YES Published priority for this report (same as in Subject): MODERATE 7.0 These results are intended to support engineering triage. They are machine-generated estimates, and cases marked for manual review should be validated by a human security engineer before final disposition. For more info read docs linked from here: https://kernelcve.org/ (and you can submit you own patch there to generate such a report for non-existant CVE-id yet). Note that in many cases this AI tool selects higher severity, than real is (means you can expect Importants instead of Moderate 7.0 or Moderates 7.0 instead of regular Moderates). If you see such cases, please use reply email interface to add additional manual analyses info to this particular CVE. And please, please, let me know when you see Lows instead of Importants or Important instead of Low (because particular for such cases I need to tune this AI tool to make it better for this one and next similar). My contact email for such notifications is alexanjelausa@gmail.com (and both send reply to CVE record itself too and see "reply" button below for howto reply).