nfsd: check nfsd4_acl_to_attr() return value in nfsd4_create()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c0cbe70742f4a70893cd6e5f6b10b6e89b6db95b · < 430ed49a16cf9ca249d0fb51490582090bc4848b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfsd: check nfsd4_acl_to_attr() return value in nfsd4_create()
nfsd4_create() stores the return value of nfsd4_acl_to_attr() in status, but the switch(create->cr_type) block unconditionally overwrites it in every branch. ACL translation errors are silently discarded, and the CREATE proceeds without the requested ACL.
Add an early exit check after nfsd4_acl_to_attr(), matching the pattern already used in nfsd4_setattr().
[ cel: prefer NFS4ERR_BADTYPE over NFS4ERR_ATTRNOTSUPP ]
From the CVE record · Linux
The Linux kernel’s nfsd4_create() discards errors from ACL translation. When ACL translation fails during an NFS CREATE request, the operation can proceed without the requested ACL. The input does not specify authentication requirements or additional user interaction.
Administrators running Linux kernels with the affected nfsd code should check their kernel vendor’s advisory; affected versions were not provided.