{"id":"CVE-2026-89671","aliases":["CVE-2026-89671"],"related":[],"kind":"vulnerability","state":"published","title":"nfsd: gate nfs3 setacl by argp->mask","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: gate nfs3 setacl by argp->mask\n\nnfsd3_proc_setacl() calls set_posix_acl() unconditionally for both\nACL_TYPE_ACCESS and ACL_TYPE_DEFAULT, passing argp->acl_access and\nargp->acl_default verbatim. The NFSv3 ACL decoder only populates\nthose pointers when the corresponding mask bit is set:\n\n    nfs3svc_decode_setaclargs()\n      if (args->mask & NFS_ACL)    decode into acl_access\n      if (args->mask & NFS_DFACL)  decode into acl_default\n      /* otherwise the pointer stays NULL (pc_argzero) */\n\n    nfsd3_proc_setacl()\n      set_posix_acl(.., ACL_TYPE_ACCESS,  argp->acl_access)\n      set_posix_acl(.., ACL_TYPE_DEFAULT, argp->acl_default)\n\nset_posix_acl(idmap, dentry, type, NULL) is the VFS \"remove this\nACL type\" operation. A NULL pointer that means \"the client did not\nsend this arm\" is therefore indistinguishable from \"the client\nasked to remove this ACL\". A SETACL with mask=NFS_ACL silently\ndrops the directory's default ACL; mask=0 drops both.\n\nThe sibling nfsd3_proc_getacl() already consults argp->mask before\ntouching each arm; mirror that in setacl.\n\nFix by wrapping each set_posix_acl() call in the matching mask bit\ncheck and initializing error to 0 before inode_lock so that a\nrequest with neither bit set leaves the on-disk ACLs untouched and\nreturns nfs_ok. The out_drop_lock path and the unconditional\nposix_acl_release() at out: are preserved; both NULL-tolerate the\nskipped arms.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: gate nfs3 setacl by argp->mask\n\nnfsd3_proc_setacl() calls set_posix_acl() unconditionally for both\nACL_TYPE_ACCESS and ACL_TYPE_DEFAULT, passing argp->acl_access and\nargp->acl_default verbatim. The NFSv3 ACL decoder only populates\nthose pointers when the corresponding mask bit is set:\n\n    nfs3svc_decode_setaclargs()\n      if (args->mask & NFS_ACL)    decode into acl_access\n      if (args->mask & NFS_DFACL)  decode into acl_default\n      /* otherwise the pointer stays NULL (pc_argzero) */\n\n    nfsd3_proc_setacl()\n      set_posix_acl(.., ACL_TYPE_ACCESS,  argp->acl_access)\n      set_posix_acl(.., ACL_TYPE_DEFAULT, argp->acl_default)\n\nset_posix_acl(idmap, dentry, type, NULL) is the VFS \"remove this\nACL type\" operation. A NULL pointer that means \"the client did not\nsend this arm\" is therefore indistinguishable from \"the client\nasked to remove this ACL\". A SETACL with mask=NFS_ACL silently\ndrops the directory's default ACL; mask=0 drops both.\n\nThe sibling nfsd3_proc_getacl() already consults argp->mask before\ntouching each arm; mirror that in setacl.\n\nFix by wrapping each set_posix_acl() call in the matching mask bit\ncheck and initializing error to 0 before inode_lock so that a\nrequest with neither bit set leaves the on-disk ACLs untouched and\nreturns nfs_ok. The out_drop_lock path and the unconditional\nposix_acl_release() at out: are preserved; both NULL-tolerate the\nskipped arms.","source":"cvelist"}],"published":"2026-09-11T19:45:56.604Z","modified":"2026-10-30T13:20:25.420Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a257cdd0e2179630d3201c32ba14d7fcb3c3a055","fixed":"beeb33152873ad40692bd255b562966f8ba43dbd","status":"affected"},{"type":"git","introduced":"a257cdd0e2179630d3201c32ba14d7fcb3c3a055","fixed":"3be1d8611dae4829e4608007db29f4a8748c37b2","status":"affected"},{"type":"git","introduced":"a257cdd0e2179630d3201c32ba14d7fcb3c3a055","fixed":"68a80b26efdff1d09f8ae1773c6a915abb9e191d","status":"affected"},{"type":"git","introduced":"a257cdd0e2179630d3201c32ba14d7fcb3c3a055","fixed":"b3bff820d068ea59767d4e91a3258231a879da5f","status":"affected"},{"type":"git","introduced":"a257cdd0e2179630d3201c32ba14d7fcb3c3a055","fixed":"ff99ed007f065198fd723152405c22aa558f700b","status":"affected"},{"type":"git","introduced":"a257cdd0e2179630d3201c32ba14d7fcb3c3a055","fixed":"453d7198a0ab07a12d46e0575861ac7b932da17e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.13","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.109","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/beeb33152873ad40692bd255b562966f8ba43dbd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3be1d8611dae4829e4608007db29f4a8748c37b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68a80b26efdff1d09f8ae1773c6a915abb9e191d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3bff820d068ea59767d4e91a3258231a879da5f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff99ed007f065198fd723152405c22aa558f700b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/453d7198a0ab07a12d46e0575861ac7b932da17e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-16T19:25:43.543Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89671","url":"https://www.cve.org/CVERecord?id=CVE-2026-89671","licence":"CVE Terms of Use","modified":"2026-10-30T12:32:36.627Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89671","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89671","licence":"Public domain","modified":"2026-10-30T13:20:25.420Z"}],"updatedAt":"2026-11-25T22:59:38.107Z","epss":{"score":0.00545,"percentile":0.47146,"date":"2026-12-02T12:00:21.000Z"}}