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

nfsd: fix posix_acl leak and ignored error in nfsd4_create_file

nfsd4_create_file() has two bugs in its ACL handling:

The return value of nfsd4_acl_to_attr() is silently discarded. When
the NFSv4-to-POSIX ACL conversion fails (e.g., -EINVAL for
unsupported ACE types), the file is created without any ACL and the
client receives NFS4_OK. This violates RFC 7530/8881 which require
the server to reject unsupported attributes on CREATE.

When start_creating() fails after ACL attributes have been populated
in attrs (either via nfsd4_acl_to_attr or via ownership transfer from
open->op_dpacl/op_pacl), the function jumps to out_write which skips
nfsd_attrs_free(). The posix_acl allocations are leaked. A client
can trigger this repeatedly with OPEN(CREATE), ACL attributes, and an
invalid filename (e.g., longer than NAME_MAX).

Fix both by capturing the nfsd4_acl_to_attr() return value and by
changing the early error paths to jump to out instead of out_write.
Initialize child to ERR_PTR(-EINVAL) so that end_creating() is safe
to call even if start_creating() was never reached.
Published: 2026-07-19
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s NFSv4 server contains two defects in the nfsd4_create_file routine. First, when a client requests an ACL that the kernel cannot translate to a POSIX ACL, the failure from nfsd4_acl_to_attr() is silently discarded and the server creates the file without any ACL, violating RFC 7530/8881 and allowing unintended access. Second, on certain error paths the kernel allocates a posix_acl structure but never frees it; a client can trigger this repeatedly by issuing CREATE requests with unsupported ACL entries or overly long filenames, leading to a memory leak that can exhaust kernel memory over time. Together, these flaws result in improper access control and the potential for denial‑of‑service through resource exhaustion.

Affected Systems

All Linux distributions that ship a Linux kernel with an active NFSv4 server are potentially affected. The issue is present in any kernel that implements nfsd4_create_file; no specific release is singled out in the advisory, so any deployment of the Linux kernel that processes NFSv4 CREATE requests may be vulnerable.

Risk and Exploitability

The vulnerability has a CVSS score of 7.1 and an EPSS score below 1 %, indicating a relatively low probability of exploitation but still worth addressing promptly. It is not listed in CISA KEV. A remote NFSv4 client can trigger the flaw simply by issuing specially crafted CREATE operations containing unsupported ACL entries or excessively long filenames. The attack does not require elevated privileges on the server; any network path to the NFSv4 service can be used. Successful exploitation results in files created without the intended ACL and, if repeated, drains kernel memory and may degrade performance or cause a service outage.

Generated by OpenCVE AI on July 30, 2026 at 22:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel patch that addresses the ACL conversion and posix_acl leak in nfsd4_create_file, directly fixing the CWE‑772 flaw.
  • If a kernel upgrade cannot be performed immediately, disable NFSv4 ACL support on the server—for example, export filesystems with the "noacl" option or configure the NFS server to reject CREATE requests that include ACL attributes, thereby preventing the memory‑leak path.
  • Implement monitoring to detect repeated NFS4_CREATE errors and enforce a maximum filename length; if abnormal memory consumption or a rise in CREATE failures is observed, restart the NFS service or mitigate by limiting ACL requests.

Generated by OpenCVE AI on July 30, 2026 at 22:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 21 Jul 2026 00:15:00 +0000

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

None

threat_severity

Important


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sun, 19 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nfsd: fix posix_acl leak and ignored error in nfsd4_create_file nfsd4_create_file() has two bugs in its ACL handling: The return value of nfsd4_acl_to_attr() is silently discarded. When the NFSv4-to-POSIX ACL conversion fails (e.g., -EINVAL for unsupported ACE types), the file is created without any ACL and the client receives NFS4_OK. This violates RFC 7530/8881 which require the server to reject unsupported attributes on CREATE. When start_creating() fails after ACL attributes have been populated in attrs (either via nfsd4_acl_to_attr or via ownership transfer from open->op_dpacl/op_pacl), the function jumps to out_write which skips nfsd_attrs_free(). The posix_acl allocations are leaked. A client can trigger this repeatedly with OPEN(CREATE), ACL attributes, and an invalid filename (e.g., longer than NAME_MAX). Fix both by capturing the nfsd4_acl_to_attr() return value and by changing the early error paths to jump to out instead of out_write. Initialize child to ERR_PTR(-EINVAL) so that end_creating() is safe to call even if start_creating() was never reached.
Title nfsd: fix posix_acl leak and ignored error in nfsd4_create_file
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-05T12:35:35.518Z

Reserved: 2026-06-09T07:44:35.402Z

Link: CVE-2026-53396

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-53396 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T22:30:06Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime