Skip to content

Commit 81b77c4

Browse files
committed
Merge: nfsd: clear acl_access/acl_default after releasing them
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6512 nfsd: clear acl_access/acl_default after releasing them JIRA: https://issues.redhat.com/browse/RHEL-81523 CVE: CVE-2025-21796 Signed-off-by: Olga Kornievskaia <okorniev@redhat.com> Approved-by: Scott Mayhew <smayhew@redhat.com> Approved-by: Benjamin Coddington <bcodding@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
2 parents 3fa6bed + fa60b1d commit 81b77c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

fs/nfsd/nfs2acl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ static __be32 nfsacld_proc_getacl(struct svc_rqst *rqstp)
8484
fail:
8585
posix_acl_release(resp->acl_access);
8686
posix_acl_release(resp->acl_default);
87+
resp->acl_access = NULL;
88+
resp->acl_default = NULL;
8789
goto out;
8890
}
8991

fs/nfsd/nfs3acl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ static __be32 nfsd3_proc_getacl(struct svc_rqst *rqstp)
7676
fail:
7777
posix_acl_release(resp->acl_access);
7878
posix_acl_release(resp->acl_default);
79+
resp->acl_access = NULL;
80+
resp->acl_default = NULL;
7981
goto out;
8082
}
8183

0 commit comments

Comments
 (0)