Vulnerability DatabaseCVE-2026-108985

CVE-2026-108985: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2026-108985 is an out-of-bounds write vulnerability in the ZDR (eXternal Data Representation) decoding routines of libnfs, an NFS client library maintained by Ronnie Sahlberg. The flaw exists in lib/libnfs-zdr.c within the functions libnfs_zdr_bytes(), libnfs_zdr_string(), and libnfs_zdr_array(), where the caller-supplied maxsize parameter is never enforced, allowing writes beyond allocated buffer boundaries. It affects libnfs through version 6.0.2 (all commits prior to 7613236464317bee2d9636f087f995148de4db27). Disclosed on October 12, 2026, it carries a CVSS v3.1 base score of 7.1 (High) (GitHub Advisory, Feedly).

Technical details

The root cause is classified as CWE-787 (Out-of-bounds Write). In the affected ZDR decode functions, the wire-supplied length field is read from the network buffer and used directly in memcpy() operations into caller-supplied or dynamically allocated buffers without first verifying that the length does not exceed the maxsize bound passed by the caller. Protocol-defined limits such as NFS4_FHSIZE and NFS4_OPAQUE_LIMIT, which are passed as maxsize by the generated decoders, were silently ignored. The fix introduces a libnfs_zdr_size_ok() helper that enforces a hard upper bound for any positive maxsize value before any copy or allocation occurs, while treating 0 and ~0 as unlimited to preserve compatibility with existing rpcgen-generated code (GitHub Commit, GitHub Advisory). The vulnerability was reported by Jinpyo Lee of the Tobabz Team.

Impact

Successful exploitation can result in heap or stack memory corruption due to out-of-bounds writes, potentially leading to arbitrary code execution or application crash (denial of service). The integrity impact is rated Low and availability impact is rated High, with no confidentiality impact assessed. Applications and services that use libnfs to process NFS protocol messages — including embedded systems, NAS devices, and media players — are at risk if they process attacker-controlled NFS responses (GitHub Advisory, Feedly).

Exploitability

As of the disclosure date, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). Exploitation requires user interaction — a user or application must connect to and process responses from a malicious or compromised NFS server. The EPSS score is 0.0, indicating very low current probability of exploitation, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (GitHub Advisory). No threat actor attribution has been reported.

Exploitation steps

  1. Set up a malicious NFS server: Deploy a rogue NFS server that responds to NFS protocol requests with crafted ZDR-encoded messages containing length fields that exceed the maxsize bounds expected by the client (e.g., a field declared as NFS4_FHSIZE bytes but with a wire length far exceeding that limit).
  2. Lure the victim client: Induce a user or application running a vulnerable version of libnfs (≤ 6.0.2) to mount or connect to the malicious NFS server — this may involve DNS spoofing, ARP poisoning, or social engineering.
  3. Trigger the vulnerable decode path: When the libnfs client processes the server's response, the ZDR decoder calls libnfs_zdr_bytes(), libnfs_zdr_string(), or libnfs_zdr_array() with the oversized length, which is passed directly to memcpy() without checking against maxsize.
  4. Achieve out-of-bounds write: The oversized memcpy() writes attacker-controlled data beyond the allocated buffer boundary, corrupting adjacent heap or stack memory.
  5. Achieve code execution or crash: Depending on memory layout and exploit precision, the attacker may redirect control flow to execute arbitrary code, or cause the application to crash (GitHub Commit, GitHub Advisory).

Indicators of compromise

  • Network: Unexpected or unsolicited NFS server responses containing abnormally large field lengths in ZDR-encoded messages; NFS traffic originating from untrusted or unknown IP addresses.
  • Process: Application crashes or segmentation faults in processes using libnfs (e.g., nfs-client, media players, or NAS management daemons) when connecting to NFS shares.
  • Logs: Crash dumps or core files associated with libnfs-linked binaries; error logs referencing libnfs-zdr.c or ZDR decode failures; unexpected process termination events in system logs (/var/log/syslog, dmesg).
  • File System: Presence of core dump files (e.g., core.*) in application working directories following NFS operations against untrusted servers.

Mitigation and workarounds

Upgrade libnfs to a version that includes commit 7613236464317bee2d9636f087f995148de4db27 or later (any version after 6.0.2 containing this fix). As a network-level workaround, restrict NFS traffic using firewall rules to allow connections only to trusted, known-good NFS servers. If NFS functionality is not required, disable or remove libnfs-dependent services. Input validation at the network boundary to reject oversized NFS protocol messages can also reduce exposure (GitHub Commit, GitHub Advisory).

Community reactions

The vulnerability was reported to the libnfs maintainer by Jinpyo Lee of the Tobabz Team, who identified that the maxsize bound was never enforced in the ZDR decoder. The fix was committed by Ronnie Sahlberg with detailed commentary explaining the design intent for 0 and ~0 as unlimited values. Social media activity was limited to automated CVE tracking posts on Bluesky and Mastodon/infosec.exchange shortly after disclosure (GitHub Commit).

Additional resources


Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-108985HIGH7.1
  • Linux Debian logoLinux Debian
  • libnfs
NoNoOct 12, 2026
CVE-2026-98385HIGH7
  • Linux Debian logoLinux Debian
  • linux
NoYesOct 12, 2026
CVE-2026-108978MEDIUM5.5
  • Linux Debian logoLinux Debian
  • rlottie
NoNoOct 11, 2026
CVE-2026-108735MEDIUM5.3
  • Linux Debian logoLinux Debian
  • miniflux
NoNoOct 11, 2026
CVE-2026-108981LOW3.6
  • Linux Debian logoLinux Debian
  • libnginx-mod-http-cache-purge
NoNoOct 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management