CVE-2026-57918: CWE-191 Integer Underflow (Wrap or Wraparound) in sahlberg libnfs
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-57918 in libnfs (up to 6.0.2) is an integer underflow (CWE-191) in the READ_IOVEC function of rpc_read_from_socket in lib/socket.c. It is triggered during a connection to a crafted NFS server when the expected protocol data unit (PDU) size is larger than the absolute PDU size calculated from the xid/record-marker, causing an xid integer underflow. This can lead to impacts on confidentiality, integrity, and availability as indicated by the CVSS vector.
Potential Impact
Successful exploitation of this integer underflow vulnerability could lead to high impact on confidentiality and integrity, and a low impact on availability. The vulnerability allows a remote attacker with no privileges and requiring user interaction to potentially manipulate data or cause unexpected behavior in libnfs when communicating with a malicious NFS server.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround has been documented at this time. Users should monitor vendor communications for patches or updates addressing this vulnerability.
CVE-2026-57918: CWE-191 Integer Underflow (Wrap or Wraparound) in sahlberg libnfs
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.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-57918 in libnfs (up to 6.0.2) is an integer underflow (CWE-191) in the READ_IOVEC function of rpc_read_from_socket in lib/socket.c. It is triggered during a connection to a crafted NFS server when the expected protocol data unit (PDU) size is larger than the absolute PDU size calculated from the xid/record-marker, causing an xid integer underflow. This can lead to impacts on confidentiality, integrity, and availability as indicated by the CVSS vector.
Potential Impact
Successful exploitation of this integer underflow vulnerability could lead to high impact on confidentiality and integrity, and a low impact on availability. The vulnerability allows a remote attacker with no privileges and requiring user interaction to potentially manipulate data or cause unexpected behavior in libnfs when communicating with a malicious NFS server.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround has been documented at this time. Users should monitor vendor communications for patches or updates addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-06-26T10:54:57.765Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3e5c034853345fc1b7bab6
Added to database: 06/26/2026, 11:01:23 UTC
Last enriched: 07/03/2026, 23:06:36 UTC
Last updated: 08/10/2026, 00:41:17 UTC
Views: 68
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.