Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93231 Overview
CVE-2026-93231 is a logic flaw in the Linux kernel lockd subsystem. The bug lives in nlmsvc_match_ip(), the match callback used when releasing Network Lock Manager (NLM) locks by server IP address through /proc/fs/nfsd/unlock_ip. The function receives its two arguments in reversed order, causing a struct sockaddr to be dereferenced as a struct nlm_host and vice versa. As a result, the address comparison practically never matches, and lock release requests fail to free the targeted locks. The defect was introduced in commit 4373ea84c84d when the unlock-by-IP feature was first added.
Critical Impact
NFS administrators using /proc/fs/nfsd/unlock_ip to release server locks will find the operation silently ineffective, leaving stale NLM locks in place and reading garbage memory during the comparison.
Affected Products
- Linux kernel lockd (NFS server-side NLM) subsystem
- Kernels containing commit 4373ea84c84d ("lockd: unlock lockd locks associated with a given server ip") through the fixed stable revisions
- NFS server deployments relying on /proc/fs/nfsd/unlock_ip for failover or administrative lock release
Discovery Timeline
- 2026-09-24 - CVE-2026-93231 published to NVD
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-93231
Vulnerability Analysis
The lockd daemon exposes /proc/fs/nfsd/unlock_ip so administrators can drop all NLM locks held against a specific server IP. The write handler calls nlmsvc_unlock_all_by_ip(), which in turn invokes nlm_traverse_files(server_addr, nlmsvc_match_ip, NULL). The traversal then calls each match callback as match(lockhost, host), where the first argument is the real nlm_host owning the lock and the second argument is the caller-supplied opaque reference, in this case the server sockaddr.
Every other match callback in the subsystem, including nlmsvc_mark_host(), nlmsvc_same_host(), and nlmsvc_is_client(), follows that convention. nlmsvc_match_ip() did not. It executed rpc_cmp_addr(nlm_srcaddr(host), datap), treating the server sockaddr as a struct nlm_host and the lock owner's nlm_host as a sockaddr. The compared memory therefore came from unrelated offsets, so the equality check almost never succeeded and the kernel also read fields past the intended structure.
Root Cause
The root cause is a parameter ordering mistake in nlmsvc_match_ip() dating back to the original commit 4373ea84c84d. The function's signature matched the generic callback prototype, but the body swapped the semantic meaning of the arguments. The misleading parameter names in the typedef masked the error during review.
Attack Vector
This is a local kernel logic defect rather than a remote attack vector. Exploitation requires privileged access to /proc/fs/nfsd/unlock_ip, typically restricted to root on the NFS server. The practical impact is a failure of the lock-release administrative interface and out-of-bounds reads at the offset of h_srcaddr within whatever memory follows the misinterpreted sockaddr. No code execution primitive is documented in the commit message.
The fix swaps the arguments so the comparison correctly reads the lock owner's source address against the requested server address: return rpc_cmp_addr(nlm_srcaddr(datap), (struct sockaddr *)host);. See the kernel git commit b906068 for the exact patch.
Detection Methods for CVE-2026-93231
Indicators of Compromise
- Writes to /proc/fs/nfsd/unlock_ip that complete successfully but leave NLM locks held, visible via /proc/locks or rpcdebug output.
- NFS clients continuing to see NLM_LCK_DENIED responses for files that should have been released after an administrative unlock operation.
- Kernel addresses used with lockd where KASAN or similar sanitizers flag reads at offsets inconsistent with a struct sockaddr.
Detection Strategies
- Audit kernel versions on NFS server hosts and compare against the patched stable revisions referenced in the upstream commits.
- Validate that lock-release operations actually drop locks by issuing a test unlock-by-IP against a controlled client and verifying /proc/locks before and after.
- Monitor process writes to /proc/fs/nfsd/unlock_ip via auditd rules to correlate administrative actions with lock-state outcomes.
Monitoring Recommendations
- Enable auditd watches on /proc/fs/nfsd/unlock_ip to log every unlock-by-IP invocation along with invoking UID and process context.
- Collect nfsstat -s and /proc/locks snapshots on a schedule to track NLM lock counts over time and alert on growth after planned failovers.
- Forward kernel log entries from lockd and nfsd to a centralized log store so administrators can correlate failed lock releases with client complaints.
How to Mitigate CVE-2026-93231
Immediate Actions Required
- Apply the stable kernel update that includes commits 0d72e78, 21bcb60, and b906068.
- Restrict write access to /proc/fs/nfsd/unlock_ip to trusted administrative accounts only.
- Review failover runbooks that depend on unlock-by-IP and plan for alternate recovery steps until the patch is deployed.
Patch Information
The upstream Linux stable tree carries three commits that correct the argument ordering in nlmsvc_match_ip() and clean up the misleading typedef parameter names. Distribution kernels will pick up these fixes through their normal stable backport process. Confirm the kernel package version matches the vendor advisory tied to the stable commits before declaring remediation complete.
Workarounds
- Avoid relying on /proc/fs/nfsd/unlock_ip for operational lock release until the patched kernel is installed; use client-side unmount or server restart as a last resort.
- Where unlock-by-IP is required for failover, stage the kernel update on a non-production NFS server first and validate lock-release behavior end to end.
- Limit exposure of the NFS management plane to a dedicated administrative network segment to reduce the risk of unauthorized writes to the proc interface.
# Verify the running kernel against the fixed stable commits
uname -r
# Confirm restricted access to the NFS unlock interface
ls -l /proc/fs/nfsd/unlock_ip
# Snapshot current NLM lock state before and after an unlock-by-IP test
cat /proc/locks | grep -i nlm
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

