CVE-2026-57918

Published Jun 26, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
libnfs through 6.0.2 before 935b8db has an xid integer underflow in READ_IOVEC in rpc_read_from_socket in lib/socket.c during a connection to a crafted NFS server, when the expected pdu size exceeds the absolute pdu size from the xid/record-marker.

Analysis

AI-generated

Technical impact

libnfs through version 6.0.2, before commit 935b8db, contains an xid integer underflow in the READ_IOVEC routine inside rpc_read_from_socket. During a connection to a crafted NFS server, the expected PDU size can exceed the actual size derived from the xid/record marker, causing the integer to underflow. This underflow leads to an out‑of‑bounds memory operation, which may corrupt memory and present a serious risk for code execution or service disruption.

Affected Systems

All releases of the sahlberg libnfs library up to and including version 6.0.2 are affected. The vulnerability is rectified by commit 935b8db; applying this commit or any later release that includes it resolves the issue. Systems running older releases are at risk unless the update is applied.

Risk and Exploitability

The CVSS score of 7.1 indicates moderate‑to‑high severity. The vulnerability is remote; it requires an attacker to control an NFS server and communicate with the vulnerable client. No exploit evidence is currently available and the EPSS score is not reported, but the fault nature suggests real‑’s KEV not yet a known actively exploited weakness.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install a version of libnfs that includes commit 935b8db, or apply the patch manually if no such release is available.
  • Limit libnfs client connections to trusted NFS servers only, blocking any unknown or untrusted endpoints from initiating connections.
  • Segregate systems using libnfs from external networks with firewall or network segmentation until the patch is applied.

Generated by OpenCVE AI on June 26, 2026 at 14:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Sahlberg
Sahlberg libnfs
Vendors & Products Sahlberg
Sahlberg libnfs
Type Values Removed Values Added
Title libnfs Integer Underflow during RPC Read
Type Values Removed Values Added
Title libnfs Integer Underflow during RPC Read
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description libnfs through 6.0.2 before f0b109d has an xid integer underflow in READ_IOVEC in rpc_read_from_socket in lib/socket.c during a connection to a crafted NFS server, when the expected pdu size exceeds the absolute pdu size from the xid/record-marker. libnfs through 6.0.2 before 935b8db has an xid integer underflow in READ_IOVEC in rpc_read_from_socket in lib/socket.c during a connection to a crafted NFS server, when the expected pdu size exceeds the absolute pdu size from the xid/record-marker.
Type Values Removed Values Added
Description libnfs through 6.0.2 before f0b109d has an xid integer underflow in READ_IOVEC in rpc_read_from_socket in lib/socket.c during a connection to a crafted NFS server, when the expected pdu size exceeds the absolute pdu size from the xid/record-marker.
Weaknesses CWE-191
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jun 26, 2026, 12:01 PM
Reserved
Jun 26, 2026, 10:54 AM
Status
Awaiting Analysis
Published
Jun 26, 2026, 11:16 AM
Modified
Oct 25, 2026, 10:10 PM