Description
In the Linux kernel, the following vulnerability has been resolved:

SUNRPC: Bound-check xdr_buf_to_bvec() stores before writing

xdr_buf_to_bvec() writes a bio_vec into the caller's array before
testing whether that slot is in range, and the head branch performs
the store with no check at all. When the caller's budget is exactly
used up, the next store lands one element past the end of the array.
The overflow label returns count - 1, which masks the surplus store
but cannot undo it.

rq_bvec, the array passed by nfsd_vfs_write(), is allocated to
exactly rq_maxpages entries with no slack. The OOB store can land in
adjacent slab memory; the bv_len and bv_offset fields written there
are derived from client-supplied RPC payload sizes.

Move the in-range check ahead of the store in the head, page-loop,
and tail branches. With the check at the top of each sequence, count
is incremented only after a successful store, so the overflow label
can return count directly.
Published: 2026-08-15
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from an out‑of‑bounds write in the SUNRPC helper function xdr_buf_to_bvec(). The function stores a bio_vec element before checking array bounds, so a carefully crafted RPC request can write beyond the end of the buffer. The overwritten fields are part of adjacent slab structures and contain lengths and offsets derived from client data. In kernel space, such corruption can lead to arbitrary code execution or a crash, effectively allowing an attacker to gain privileges or disrupt service. Identified as a bounds‑check failure.

Affected Systems

All Linux kernel releases that include the old implementation of SUNRPC, i.e., kernel versions prior to the security commit that introduced the in‑range check. The flaw sits in the generic kernel code used by NFS server (nfsd) and RPC services. Any system running the kernel before the patch is potentially vulnerable.

Risk and Exploitability

The flaw is exercised via the network by sending malicious RPC traffic to an exposed SUNRPC/NFS service. The attack can be performed remotely and does not require local privileges. The EPSS score of < 1% indicates a very low probability of exploitation in the wild, but the vulnerability is not present in the CISA KEV list, and the kernel crash or escalation potential is significant. The CVSS score of 9.8 highlights a high severity. Because the patch simply moves a bounds check, the exploit path is straightforward once a suitable RPC payload can reach the victim. Until a kernel update is applied, containment through firewall rules blocking unwanted RPC access or enforcing SELinux/AppArmor profiles can reduce risk.

Generated by OpenCVE AI on August 22, 2026 at 08:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to include the security fix that moves the bounds check in xdr_buf_to_bvec().
  • Restrict exposure of the SUNRPC/NFS interface by configuring firewall rules or enabling SELinux/AppArmor enforcement to limit the RPC client’s ability to send crafted requests.
  • Monitor logs for anomalous NFS traffic and consider temporarily disabling NFS services until a secure kernel is installed.

Generated by OpenCVE AI on August 22, 2026 at 08:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Important


Mon, 17 Aug 2026 09:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 15 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Bound-check xdr_buf_to_bvec() stores before writing xdr_buf_to_bvec() writes a bio_vec into the caller's array before testing whether that slot is in range, and the head branch performs the store with no check at all. When the caller's budget is exactly used up, the next store lands one element past the end of the array. The overflow label returns count - 1, which masks the surplus store but cannot undo it. rq_bvec, the array passed by nfsd_vfs_write(), is allocated to exactly rq_maxpages entries with no slack. The OOB store can land in adjacent slab memory; the bv_len and bv_offset fields written there are derived from client-supplied RPC payload sizes. Move the in-range check ahead of the store in the head, page-loop, and tail branches. With the check at the top of each sequence, count is incremented only after a successful store, so the overflow label can return count directly.
Title SUNRPC: Bound-check xdr_buf_to_bvec() stores before writing
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:41:40.504Z

Reserved: 2026-08-09T03:40:39.913Z

Link: CVE-2026-72217

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:40.493

Modified: 2026-08-17T06:18:22.683

Link: CVE-2026-72217

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72217 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T08:30:17Z

Weaknesses