CRITICAL Introduced in 2.6.13
nfsd SetAcl Bypass
CVE-2026-89672
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
KernelScan AI6.9MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: nfsd: gate nfs2 setacl by argp->mask The NFSACL v2 SETACL path shares the decoder convention used by its v3 sibling: nfsaclsvc_decode_setaclargs() fills in argp->acl_access only when NFS_ACL is set in the request mask and argp->acl_default only when NFS_DFACL is set, leaving the other pointer NULL because the argument buffer is zeroed up to pc_argzero before decode. nfsacld_proc_setacl() then hands both pointers to set_posix_acl() unconditionally. set_posix_acl(idmap, dentry, type, NULL) is the VFS "remove this ACL type" operation, so an omitted arm is indistinguishable from an explicit request to delete that ACL. A SETACL carrying only NFS_ACL silently strips the directory's default ACL; mask=0 strips both. This is the same defect just fixed in nfsd3_proc_setacl(); apply the same remedy. Gate each set_posix_acl() call on its mask bit and initialize error to 0 so that a request with neither bit set leaves the on-disk ACLs untouched and returns success. The out_drop_lock path and the unconditional posix_acl_release() in nfsaclsvc_release_setacl() already tolerate the skipped arms.
02KernelScan AI Analysis
Risk summary
An NFS client with access to an export can send a crafted NFSACL v2 SETACL request that silently strips access or default ACLs from files and directories, because the server ignores the request mask and unconditionally applies both ACL operations. This can remove security controls the client did not intend to modify, potentially exposing protected data or weakening access restrictions. Any device running an NFS server with the NFSACL extension enabled is affected.
Vulnerability analysis
The NFS server's NFSACL v2 SETACL handler unconditionally applies both access and default ACL operations regardless of which ACL types the client actually requested via the request mask. When a mask bit is absent the corresponding ACL pointer is NULL, and the VFS treats a NULL ACL as a deletion request, so a client sending a partial SETACL silently strips the unrequested ACL type. The fix gates each ACL modification on its corresponding mask bit and initializes the return value to success, so a request that omits a mask bit leaves that ACL untouched. The attack surface is network-based: any NFS client that can reach the server's export and has permission to modify ACLs on the target file or directory can trigger this behavior.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 2.6.13 | 5.10.273 | d00a2f81ba7c |
| 5.15 | 2.6.13 | 5.15.224 | 760e7a4f92f5 |
| 6.1 | 2.6.13 | 6.1.191 | 54ff9c81d6b7 |
| 6.12 | 2.6.13 | 6.12.109 | e41d173d9dc7 |
| 6.18 | 2.6.13 | 6.18.50 | f951b22dbeec |
| 6.6 | 2.6.13 | 6.6.157 | 8e4422b05f41 |
| 7.2 | 2.6.13 | 7.2.4 | 37eea38e7898 |
| mainline | 2.6.13 | 7.3 | a3a7e20ed66d |
| cip/6.12 | 2.6.13 | 6.12.111-cip32 | e41d173d9dc7 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |