Description
ZDR decoding in libnfs through 6.0.2 before 7613236 has an out-of-bounds write related to lib/libnfs-zdr.c with libnfs_zdr_bytes(), libnfs_zdr_string(), and libnfs_zdr_array(). The caller-supplied maxsize value is not honored.
Published: 2026-10-12
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: Memory corruption / potential code execution
Action: Immediate Patch
AI Analysis

Impact

libnfs includes a ZDR decoding routine that writes beyond the allocated buffer. The caller-supplied maxsize parameter is ignored, allowing an attacker to supply oversized data that overflows the buffer in libnfs_zdr_bytes, libnfs_zdr_string, and libnfs_zdr_array. This out‑of‑bounds write can corrupt memory, potentially leading to a local or remote code execution or crash if the library is used to process untrusted input.

Affected Systems

The vulnerability exists in sahlberg’s libnfs library versions up to 6.0.2, including all builds that incorporate the pre‑commit code. Any software or system that links against libnfs before the commit 7613236 is impacted. Systems using libraries derived from those versions without the patch are at risk.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity. Although the EPSS score is not available and the vulnerability is not listed in KEV, the potential for memory corruption means an attacker with sufficient privileges or control over data processed by libnfs could exploit the flaw. Likely attack vectors include local users submitting crafted ZDR data or remote callers interacting with services that parse ZDR payloads, but exact exploitation conditions depend on how the library is used.

Generated by OpenCVE AI on October 12, 2026 at 04:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libnfs to a version that incorporates commit 7613236 (v6.0.3 or later).
  • Verify that all bundled or external copies of libnfs have been replaced with the patched version.
  • Audit applications that invoke ZDR decoding functions to ensure they only process trusted data or otherwise sandbox the operation.

Generated by OpenCVE AI on October 12, 2026 at 04:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 12 Oct 2026 04:45:00 +0000

Type Values Removed Values Added
First Time appeared Sahlberg
Sahlberg libnfs
Vendors & Products Sahlberg
Sahlberg libnfs

Mon, 12 Oct 2026 03:15:00 +0000

Type Values Removed Values Added
Description ZDR decoding in libnfs through 6.0.2 before 7613236 has an out-of-bounds write related to lib/libnfs-zdr.c with libnfs_zdr_bytes(), libnfs_zdr_string(), and libnfs_zdr_array(). The caller-supplied maxsize value is not honored.
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-12T03:00:30.330Z

Reserved: 2026-10-12T03:00:29.548Z

Link: CVE-2026-108985

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-12T03:17:18.837

Modified: 2026-10-12T03:17:18.837

Link: CVE-2026-108985

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-12T04:30:06Z

Weaknesses