CVE-2026-53396: nfsd: fix posix_acl leak and ignored error in nfsd4_create_file

Published Jul 19, 2026
·
Updated

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

nfsd: fix posixacl leak and ignored error in nfsd4createfile

nfsd4createfile() has two bugs in its ACL handling:

The return value of nfsd4acltoattr() 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 NFS4OK. This violates RFC 7530/8881 which require the server to reject unsupported attributes on CREATE.

When startcreating() fails after ACL attributes have been populated in attrs (either via nfsd4acltoattr or via ownership transfer from open->opdpacl/oppacl), the function jumps to outwrite which skips nfsdattrsfree(). The posixacl allocations are leaked. A client can trigger this repeatedly with OPEN(CREATE), ACL attributes, and an invalid filename (e.g., longer than NAMEMAX).

Fix both by capturing the nfsd4acltoattr() return value and by changing the early error paths to jump to out instead of outwrite. Initialize child to ERRPTR(-EINVAL) so that endcreating() is safe to call even if startcreating() was never reached.

Affected Software

2 affected components
Linux Linux kernel
Linux Linux kernel>=6.19<7.1.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel nfsd (nfsd4_create_file) to a version that resolves this vulnerability.

    Fixed in Initialize child to ERR_PTR(-EINVAL) so that end_creating() is safe

Event History

Jul 19, 2026
CVE Published
via MITRE·12:01 PM
Data Sourced
via MITRE·12:01 PM
DescriptionSeverity
Data Sourced
via NVD·12:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which systems are exposed to the memory-leak aspect of this issue?

Systems running an NFS server that accepts NFSv4 OPEN(CREATE) requests with ACL attributes are exposed. A client can repeatedly combine ACL attributes with an invalid filename, such as one longer than NAME_MAX, to trigger leaked POSIX ACL allocations.

2

What access does an attacker need?

The CVSS vector specifies low privileges and no user interaction, with network access. Exploitation requires an attacker to be able to send NFSv4 create requests to the affected NFS server.

3

What happens when ACL conversion fails?

Before the fix, an NFSv4-to-POSIX ACL conversion failure, such as -EINVAL for unsupported ACE types, can result in a file being created without an ACL while the client receives NFS4_OK. The fix returns the conversion error instead, rejecting unsupported attributes as required by the referenced RFC behavior.

4

What is the impact of repeated requests?

Repeated triggering can leak POSIX ACL allocations, which can consume memory and lead to an availability impact. The supplied CVSS vector rates availability impact as high and integrity impact as low.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203