# CVE-2026-99131: xfs: fix capability check in xfs

- Severity: High 8.2 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-10-28T10:34:45.102Z
- Modified: 2026-10-31T13:17:56.757Z
- Assigned by: Linux

## Description

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()

(As written by CVE List.)

## Affected

- Linux Linux: from eba0549bc7d100691c13384b774346b8aa9cf9a9 before 29f994db0447104a7a52fb6495193c80007cb66a; from eba0549bc7d100691c13384b774346b8aa9cf9a9 before e84bfb08016496ec5ce09a5ef9c813f23c060781; from eba0549bc7d100691c13384b774346b8aa9cf9a9 before 87881f816ab721d8a727cba20c36b9c71b489c8e; from eba0549bc7d100691c13384b774346b8aa9cf9a9 before 19a1a22029ad3ae3604c763af6bd1195cb73648f; from eba0549bc7d100691c13384b774346b8aa9cf9a9 before 7809ac0161c7c5f52ed348fb1ec683b2b454a83e; from eba0549bc7d100691c13384b774346b8aa9cf9a9 before e2f62a9744ebad3bcb6347a648e615026e9efeff; 5.18 (not affected: before 5.18; from 6.1.191 up to 6.1.*; from 6.6.161 up to 6.6.*; from 6.12.115 up to 6.12.*; from 6.18.59 up to 6.18.*; from 7.2.13 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/29f994db0447104a7a52fb6495193c80007cb66a>
- <https://git.kernel.org/stable/c/e84bfb08016496ec5ce09a5ef9c813f23c060781>
- <https://git.kernel.org/stable/c/87881f816ab721d8a727cba20c36b9c71b489c8e>
- <https://git.kernel.org/stable/c/19a1a22029ad3ae3604c763af6bd1195cb73648f>
- <https://git.kernel.org/stable/c/7809ac0161c7c5f52ed348fb1ec683b2b454a83e>
- <https://git.kernel.org/stable/c/e2f62a9744ebad3bcb6347a648e615026e9efeff>

## Sources

- CVE List: [CVE-2026-99131](https://www.cve.org/CVERecord?id=CVE-2026-99131), CVE Terms of Use, modified 2026-10-31
- NVD: [CVE-2026-99131](https://nvd.nist.gov/vuln/detail/CVE-2026-99131), Public domain, modified 2026-10-31

---

Page: https://cve.day/CVE-2026-99131 · Whole record: https://cve.day/CVE-2026-99131.json · Rebuilt by cve.day 2026-11-25T22:59:47.572Z
