HIGH Introduced in 5.18
xfs GroupQuota Bypass
CVE-2026-99131
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
KernelScan AI8.2HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: xfs: fix capability check in xfs An user reported a bug where he managed to evade group's quota by changing a file's gid to a different group id the same user belonged to, even though quotas were enforced on both gids and the file's size was big enough to exceed the quota's hardlimit. Commit eba0549bc7d1 replaced a capable() call by a has_capability_noaudit() to prevent unnecessary selinux audit messages. Turns out that both calls have slightly different semantics even though their documentation seems similar. Where in a nutshell: capable() - Tests the task's effective credentials has_ns_capability_noaudit() - Tests the task's real credentials This most of the time has no practical difference but in some cases like changing attrs (specifically group id in this case) through a NFS client this will allow the quota code to use XFS_QMOPT_FORCE_RES, effectively bypassing quota accounting checks. Using instead ns_capable_noaudit() should fix this issue and prevent selinux audit messages. This also fix the remaining calls to has_capability_noaudit()
02KernelScan AI Analysis
Risk summary
An unauthenticated remote attacker with network access to an NFSv4 export can bypass XFS group quota hard limits by changing a file's group ownership to another group the attacker belongs to. This allows the attacker to fill the entire filesystem, denying service to all users on that volume.
Vulnerability analysis
A previous change replaced the kernel's capable() check with has_capability_noaudit() to silence SELinux audit messages, but the two functions test different credential sets: capable() examines effective credentials while has_capability_noaudit() examines real credentials. When an NFSv4 client sends a SETATTR request to change a file's group, the NFS server (nfsd) adopts the client's asserted credentials as effective credentials via nfsd_setuser(), but the real credentials remain those of the kernel thread. The quota code incorrectly consulted the real credentials, which lack CAP_FOWNER, causing it to skip the hard-limit enforcement (XFS_QMOPT_FORCE_RES) and allow the group change even when the destination group is over quota. The fix restores the correct semantics by using ns_capable_noaudit() against the init user namespace, which checks effective credentials without generating audit logs. The vulnerability is reachable from any network client that can mount the NFS export; AUTH_SYS authentication (the default) performs no verification of the client's asserted uid/gid/groups, so no server-side account or privilege is required.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 5.18 | 6.1.191 | 29f994db0447 |
| 6.12 | 5.18 | 6.12.115 | 87881f816ab7 |
| 6.18 | 5.18 | 6.18.59 | 19a1a22029ad |
| 6.6 | 5.18 | 6.6.161 | e84bfb080164 |
| 7.2 | 5.18 | 7.2.13 | 7809ac0161c7 |
| mainline | 5.18 | 7.3 | e2f62a9744eb |
| cip/6.12 | 5.18 | 6.12.117-cip35 | 87881f816ab7 |
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.117-cip35 |
| 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) |