CVE-2026-53397

Source
https://cve.org/CVERecord?id=CVE-2026-53397
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53397.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-53397
Downstream
Related
Published
2026-07-19T12:01:58.938Z
Modified
2026-07-23T09:59:48.947604840Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
nfsd: fix posix_acl leak on SETACL decode failure
Details

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

nfsd: fix posix_acl leak on SETACL decode failure

nfsaclsvcdecodesetaclargs() and nfs3svcdecodesetaclargs() each call nfsstreamdecodeacl() twice, first for NFSACL and then for NFSDFACL. Each successful call transfers ownership of a freshly allocated posixacl into argp->aclaccess or argp->acldefault. If the first call succeeds but the second fails, the decoder returns false and argp->acl_access is left dangling.

ACLPROC2SETACL.pcrelease was wired to nfssvcreleaseattrstat and ACLPROC3SETACL.pcrelease was wired to nfs3svcreleasefhandle. Both only call fhput() and have no knowledge of the ACL fields on argp. The posixaclrelease() pairs sat at the out: labels inside nfsacldprocsetacl() and nfsd3procsetacl(), but svcprocess() skips pcfunc when pcdecode returns false, so that cleanup is unreachable on decode failure:

svc_process_common()
  pc_decode()                  /* decode_setaclargs: false */
  /* pc_func skipped */
  pc_release()                 /* fh_put only -- ACLs leaked */

The orphaned posix_acl is leaked for the lifetime of the server.

Fix by adding nfsaclsvcreleasesetacl() and nfs3svcreleasesetacl(), which release both argp->aclaccess and argp->acldefault in addition to fhput(), and wiring them as pcrelease for their respective SETACL procedures. pcrelease runs on every path svcprocess() takes after decode, including decode failure, so the posixaclrelease() pairs are removed from the proc functions' out: labels to keep ownership in one place. This matches the existing release_getacl() pattern used by the sibling GETACL procedures.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53397.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a257cdd0e2179630d3201c32ba14d7fcb3c3a055
Fixed
b2eb1ffd511d1b3c3e21122f97cbbccea411e277
Fixed
b94c4be77682aab06d65ca7296149e3bcfb37353
Fixed
887f92ceccf3eacd5f2402db21254d66372fae00
Fixed
1e96239fddcefacf6afe6c498357be68eacbcabc
Fixed
bd69a825485168ef74e815ecb286754b570fdcc7
Fixed
136b416593f1349cf6f72c8e3d18f0f204ee8545
Fixed
a5b42c1e4ff2befaa6b96f7cbf32174751eba083
Fixed
0853ac544c590880d797b04daa33fcb72b6be0e1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53397.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.13
Fixed
5.10.260
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.211
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.177
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.144
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.95
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.38
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53397.json"