Skip to main content
Vulnerability Database/CVE-2026-85231

CVE-2026-85231: libtirpc RPCSEC_GSS DoS Vulnerability

CVE-2026-85231 is a denial of service flaw in libtirpc that allows authenticated attackers to exhaust system resources through oversized RPCSEC_GSS requests. This article covers technical details, affected systems, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-85231 Overview

CVE-2026-85231 is a denial-of-service vulnerability in libtirpc, the transport-independent RPC library used by many Linux services. The flaw lets an authenticated remote attacker send oversized wrapped data requests to a Remote Procedure Call (RPC) service configured with RPCSEC_GSS (Remote Procedure Call Security-Generic Security Service) integrity or privacy. The library allocates memory based on attacker-supplied size fields without upper bounds, triggering unbounded memory allocation. Resource exhaustion causes the RPC service to become unstable or terminate. The weakness is tracked under [CWE-770: Allocation of Resources Without Limits or Throttling].

Critical Impact

An authenticated attacker can crash RPCSEC_GSS-protected RPC services, including NFS deployments relying on libtirpc, by exhausting host memory.

Affected Products

  • libtirpc (transport-independent RPC library)
  • RPC services configured with RPCSEC_GSS integrity (krb5i) or privacy (krb5p)
  • Linux distributions shipping affected libtirpc builds (see Red Hat CVE-2026-85231 Advisory)

Discovery Timeline

  • 2026-10-16 - CVE-2026-85231 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-85231

Vulnerability Analysis

The vulnerability lives in the RPCSEC_GSS wrapped-data processing path of libtirpc. When a client submits a request under GSS integrity or privacy, the server unwraps the token and reads a length prefix describing the wrapped payload. The library trusts this length and allocates a buffer sized to match before validating against any protocol- or deployment-level ceiling.

An authenticated attacker can submit requests declaring extremely large payload sizes. The receiver attempts to allocate the requested buffer, consuming memory until the kernel out-of-memory killer terminates the service or the host becomes unresponsive. Repeated requests amplify the effect across concurrent worker threads.

Because RPCSEC_GSS is often enabled on NFSv4 deployments to meet encryption and integrity requirements, the attack surface includes storage servers that must accept authenticated client sessions. Successful exploitation disrupts file service for all clients bound to the affected export.

Root Cause

The root cause is missing validation of attacker-controlled length fields prior to memory allocation inside the RPCSEC_GSS unwrap routine. libtirpc does not enforce a maximum wrapped-data size, so an authenticated peer controls allocator input directly.

Attack Vector

Exploitation requires network reachability to the RPC endpoint and valid GSS credentials sufficient to establish an authenticated context. Once a context is active, the attacker transmits crafted wrapped payloads with oversized length declarations. No user interaction is required and the attack completes in a single request-response cycle per allocation.

The vulnerability affects availability only. Confidentiality and integrity of RPC traffic are not impacted.

Detection Methods for CVE-2026-85231

Indicators of Compromise

  • Repeated out-of-memory killer events terminating rpc.svcgssd, nfsd, or other RPC daemons linked against libtirpc
  • Sudden spikes in resident memory on hosts exposing RPCSEC_GSS endpoints without corresponding workload increases
  • Authenticated RPC sessions issuing unusually large wrapped data units followed by connection resets

Detection Strategies

  • Instrument RPC services with memory-usage telemetry and alert on per-process RSS growth that exceeds historical baselines
  • Correlate kernel: Out of memory log entries with active GSS session identifiers to attribute abusive clients
  • Monitor NFS and RPC service restarts occurring outside maintenance windows

Monitoring Recommendations

  • Forward /var/log/messages, journalctl output for rpcbind, nfs-server, and rpc-gssd into a centralized log platform
  • Track per-client RPC request rates and payload sizes at the network layer using flow records or packet brokers
  • Review Kerberos ticket issuance for principals exhibiting anomalous RPC traffic patterns

How to Mitigate CVE-2026-85231

Immediate Actions Required

  • Inventory hosts running libtirpc and identify services configured with RPCSEC_GSS integrity (krb5i) or privacy (krb5p)
  • Apply vendor-supplied libtirpc updates as soon as they are published for your distribution
  • Restrict RPC endpoints to trusted network segments and enforce firewall rules limiting source addresses
  • Revoke or rotate Kerberos credentials for principals that no longer require RPC access

Patch Information

Track distribution advisories for fixed libtirpc package versions. Red Hat publishes affected package status and errata links on the Red Hat CVE-2026-85231 Advisory page, with upstream discussion in Red Hat Bug Report #2478512. Restart nfs-server, rpcbind, and any application services linked against libtirpc after upgrading to load the patched library.

Workarounds

  • Downgrade RPCSEC_GSS from krb5p/krb5i to krb5 where regulatory requirements allow, reducing exposure to the wrapped-data code path
  • Apply per-process memory limits using systemd MemoryMax= or cgroup v2 controls to bound allocator damage
  • Place rate limiting and connection quotas on RPC ports at the network boundary to slow abusive clients
bash
# Example: constrain nfs-server memory usage via systemd drop-in
sudo systemctl edit nfs-server.service
# Add the following lines:
# [Service]
# MemoryMax=4G
# MemoryHigh=3G
sudo systemctl daemon-reload
sudo systemctl restart nfs-server

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.