illumos NFSv3 File-Handle Length Checks Left a Kernel Write Open
An NFS server parses file handles supplied by clients. The illumos NFSv3 decoder checked whether two variable-length components fit inside the total handle, but it did not also enforce the maximum size of each destination buffer. A malicious handle could therefore pass the aggregate length test and overflow kernel memory during the copy.
The fix for illumos issue 18612 adds a separate check against NFS_FH3MAXDATA for both the primary and extended file-handle data. The public security description maps the defect to CVE-2026-113880 and says a remote attacker can corrupt kernel memory. This is a server-side parsing bug, not a problem limited to a client library.
The vulnerable operation is two bounds in one
Network protocols commonly prefix variable data with a length. Safe parsing needs at least two comparisons. The declared length must fit in the packet, and it must fit in the fixed destination object. The original xdr_inline_decode_nfs_fh3() code covered the first condition with fhsize < dsize. It then copied dsize bytes into fh3_data or fh3_xdata.
When dsize is larger than the destination but still smaller than the remaining packet, the length test succeeds. The copy can move past the field boundary. In a kernel NFS server, that gives remote input influence over memory adjacent to the file-handle structure. The fix rejects the oversized component before bcopy() runs.
The issue is distinct from ordinary malformed-packet handling. A server may log a short or invalid request without damaging state. This path reaches a copy after an incomplete validation, so a crash or more serious memory corruption becomes possible. The exact exploit outcome depends on the surrounding kernel build and memory layout.
Who has the relevant reachability
The attack surface is the NFS server process on an illumos-based host. A client that can send crafted NFSv3 requests needs network reach to the RPC service. An internet-facing export is the clearest exposure, but a shared storage network or a compromised workstation can also supply packets.
NFS exports often carry databases, backups, virtual-machine disks, and source repositories. The immediate security impact is to the file server's kernel. Availability problems can affect every client that depends on the export. If the corruption produces code execution, the attacker may gain privileges in the storage host, which is a much larger boundary than any single share.
The vendor commit title also mentions NFSv4, and the patch updates nfs4_xdr.c. The CVE description centers on NFSv3 file-handle decoding. Defenders should apply the complete illumos issue 18612 fix rather than infer that only one protocol needs a test.
Detect, patch, and reduce reach
Update to an illumos distribution release that includes commit c440d1a5. Record the host build or package version before and after the change. Restart the affected storage service according to the distribution's maintenance procedure, then verify that the patch is present in the running kernel and NFS modules.
Review exports and network controls. Restrict NFS to required clients, remove broad subnet access, and avoid exposing file services directly to the internet. If the server is internet-reachable, search network logs for abnormal NFS traffic, kernel panics, and unexpected reboots. Preserve crash dumps and RPC metadata when available.
The absence of a crash does not prove that the bug was never reached. After patching, test an authorized client with normal mounts and representative read/write operations. Add a negative test for malformed file handles in a lab environment if the storage team has a safe harness. The objective is to verify both rejection and normal operation without sending hostile traffic to production.
Top comments (0)